J. David Ibáñez
f09a02a2ee
Use UTF-8 encoding in all Python files
2011-08-24 07:42:05 +02:00
J. David Ibáñez
fd5aab4e56
tests: minor coding style fix, use 4 spaces indent
2011-08-24 07:32:21 +02:00
J. David Ibáñez
d863a8ea17
Remove broken test with Python 3
...
Now all tests pass with Python 3.
2011-08-24 07:30:09 +02:00
J. David Ibáñez
b84b79acd8
Fix running the tests with Python 3
...
Now "python3 setup.py test" works.
2011-08-24 00:07:20 +02:00
J. David Ibáñez
ae1d178d7a
Fix most unit tests with Python 3
2011-08-21 00:54:57 +02:00
J. David Ibáñez
ef9a5f6e55
Merge branch 'python3'
2011-08-19 21:59:31 +02:00
J. David Ibáñez
585ce44c21
tests: fix last test for Python 2
2011-08-19 21:38:48 +02:00
J. David Ibáñez
8137dc84b5
Support 'tree[name]' where name is a text string
2011-08-19 08:49:46 +02:00
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
4e9a34b870
Fix segfault on Repository_write
...
This likely fixes issue #44
2011-08-18 01:26:09 +02:00
J. David Ibáñez
3805909cd0
Merge remote branch 'erik/v0.14.0-tz'
2011-08-16 23:38:15 +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
Erik van Zijst
11997d8a85
Added support for commit_time_offset
...
Signed-off-by: Erik van Zijst <erik.van.zijst@gmail.com>
2011-08-16 16:49:41 +10: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