J. David Ibáñez
500a148398
tests: fix syntax error on octal literals for Py 3
2011-08-19 00:44:48 +02:00
J. David Ibáñez
60f50d9f08
Support 'index[path]' where path is a text string
...
Encode text strings to UTF-8.
2011-08-19 00:31:37 +02:00
J. David Ibáñez
323d2e23cd
Fix revision walker
2011-08-16 22:56:45 +02:00
J. David Ibáñez
5cc4ba23d4
tests: replace xrange by range
...
This fixes one test with Python 3.
2011-08-16 22:54:05 +02:00
J. David Ibáñez
18846c1b55
Now Commit.message returns a text string
2011-08-15 23:16:31 +02:00
J. David Ibáñez
caccfb4006
Return text strings for hex-sha (like Object.sha)
2011-08-15 22:57:20 +02:00
J. David Ibáñez
7f6568038a
Fix blob unit tests
2011-08-15 22:26:53 +02:00
J. David Ibáñez
81bfabea73
Use byte strings for raw-sha and text for hex-sha
...
As suggested by Douglas Morrison in issue 43:
https://github.com/libgit2/pygit2/issues/43
(Unit tests still broken.)
2011-08-13 23:22:17 +02:00
J. David Ibáñez
7950ee1116
Use Python 3 string literals for the unit tests
...
Now unit tests are broken.
2011-08-13 22:48:23 +02:00
J. David Ibáñez
aaa3d533a8
Drop support for Python 2.5
...
It still compiles and probably works fine. But unit tests do not run and
official support for Python 2.5 has been dropped.
2011-08-13 22:05:43 +02:00
J. David Ibáñez
7035598c73
Fix warning in 'Commit_get_message_encoding'
2011-08-13 21:50:51 +02:00
J. David Ibáñez
b634a19bd4
Update to latest changes in libgit2
...
Commit.message_short removed, Commit.message_encoding added
2011-08-13 20:36:37 +02:00
J. David Ibáñez
7b8ae0e10c
Python 3, now pygit2 builds
...
Tests do not yet pass.
2011-08-10 22:52:42 +02:00
Petr Viktorin
bfd20dc4b4
Somewhat better test coverage
...
- create_repository
- IndexEntry.path
- Correct SHAs in Index iteration
- Opening a bare index & attempting to add to it
- Walker.reset
- Walker.push
- Walker.sort
2011-08-08 23:42:01 +02:00
J. David Ibáñez
7f7a512e66
Fix issue #39 , add missing Py_INCREF
2011-08-05 12:52:43 +02:00
J. David Ibáñez
7545cdf9f3
Updato use new 'git_signature_new' prototype
2011-08-04 10:29:45 +02:00
J. David Ibáñez
28b1debfa7
Merge remote branch 'julien/status_doc'
2011-07-29 10:54:02 +02:00
J. David Ibáñez
61124f42db
Merge remote branch 'julien/status3'
2011-07-29 10:52:54 +02:00
Julien Miotte
60e1562cd1
Adding an example in the documentation for reading the status.
2011-07-28 11:52:55 +02:00
Julien Miotte
1c9602e58e
Following PEP7 recommendations on function definition style.
v0.14.0
2011-07-28 11:26:02 +02:00
Julien Miotte
561a01d5fc
New test for Repository.status().
2011-07-27 18:39:12 +02:00
Julien Miotte
d313af21a0
Adding a DirtyRepoTestCase to be able to test Repository.status().
...
Also, adding a dirty repository in the data directory.
2011-07-27 18:39:12 +02:00
Julien Miotte
f4e75e5b6f
New Repository method: status().
...
Using git2's status methods to be able to read the status of a
repository. The returned status is a dictionnary with file paths as keys
and status flags as values.
2011-07-27 18:39:12 +02:00
J. David Ibáñez
cf19555adf
Merge remote branch 'julien/cosmetic'
2011-07-21 12:39:39 +02:00
J. David Ibáñez
d4ca441c5b
Documentation: we have an index iterator now
2011-07-21 12:36:12 +02:00
Julien Miotte
d6a3014208
According to PEP7, restricting lines to 79 chars, fixing code structure.
2011-07-21 12:15:50 +02:00
Julien Miotte
b62fcc8877
Purely cosmetic, alining all PyTypeObjects comments.
2011-07-21 12:15:17 +02:00
Julien Miotte
802015246d
Small improvements of the documentation (commit and iterable trees)
2011-07-21 12:13:37 +02:00
J. David Ibáñez
d55ea4c102
Reuse the function 'git_oid_to_py_str'
2011-07-20 15:29:58 +02:00
J. David Ibáñez
dafe4b11b2
Fix coding style
...
- do not use tabs
- remove trailing white spaces
- lines are 79 chars max.
2011-07-20 15:05:17 +02:00
J. David Ibáñez
cd83372230
Merge remote branch 'byron/repo_write_improved' into repo_write
2011-07-18 22:45:46 +02:00
Sebastian Thiel
d0bc776121
Repository.write implemented
...
Implemented Repository write function, using odb write streams
Added simple test
2011-07-18 17:02:26 +02:00
J. David Ibáñez
a139335098
Fix memory leak in 'wrap_index_entry' (issue #18 )
2011-07-14 22:01:40 +02:00
J. David Ibáñez
7b6c6a7a4c
Update to libgit2 v0.14.0
2011-07-14 12:05:09 +02:00
Julien Miotte
2093281110
Adding a test on IndexEntry 'mode' new attribute.
2011-07-12 18:53:29 +02:00
Julien Miotte
d484edb293
Adding a new 'mode' attribute to IndexEntry objects.
...
This new attribute gives use read access on IndexEntry's mode.
2011-07-12 18:53:29 +02:00
J. David Ibáñez
9740fc44cd
Merge remote branch 'julien/tree_iter'
2011-07-12 17:13:15 +02:00
J. David Ibáñez
855359ae2a
Merge commit 'byron/repo_write_improved~2'
2011-07-12 16:09:43 +02:00
Julien Miotte
30078270bb
Adding a test on Tree objects iteration.
2011-07-11 22:27:03 +02:00
Julien Miotte
0eb75de425
Making the Tree object iterable.
...
By copying IndexIter functions, this gives us the ability to iterate of
TreeEntries of a Tree object.
2011-07-11 22:27:03 +02:00
Sebastian Thiel
a0975f78d5
Fixed memory leaks
...
Repository_read would not free the odb object after using it.
Object_read_raw didn't close the odb object after usage
2011-07-08 17:11:56 +02:00
Sebastian Thiel
cf37c15059
allow 20 byte sha strings
...
Adjusted py_str_to_git_oid to allow 20 byte binary strings. This improves usability to other clients which already store their shas as binary strings, increasing overall performance as they won't have to convert them into hex beforehand, which would have to be converted back to binary form by libgit2 in turn.
Adjusted tests to accept binary shas.
2011-07-08 17:05:33 +02:00
J. David Ibáñez
516d5f2a8e
Merge pull request #24 from gitpython-developers/test_fixes
...
Fixed reference tests on linux
2011-07-08 03:31:55 -07:00
Sebastian Thiel
84cb4616b7
Fixed reference tests, they were dependent on the order of the file-system, which in fact is undetermined. Sorting them to assure order
2011-07-08 11:04:28 +02:00
J. David Ibáñez
eedd975bc8
Fix compilation warnings, remove unused variables
v0.13.0
2011-06-25 18:53:22 +02:00
J. David Ibáñez
215893328c
Fix issue #22 , pygit2 compiles again with Python 2.5
2011-06-25 18:46:07 +02:00
J. David Ibáñez
7e8da54569
Update to libgit2 v0.13.0
2011-06-20 16:04:52 +02:00
Carlos Martín Nieto
64b20305e6
Use newer API
2011-06-16 22:48:42 +02:00
J. David Ibáñez
f8e61de973
Optimize index iterator, refactor code
v0.12.0
2011-05-11 18:03:50 +02:00
J. David Ibáñez
f55b001db9
Fix index iterator test
2011-05-11 17:18:23 +02:00