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
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
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
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
Julien Miotte
2093281110
Adding a test on IndexEntry 'mode' new attribute.
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
Julien Miotte
30078270bb
Adding a test on Tree objects iteration.
2011-07-11 22:27:03 +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
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
f55b001db9
Fix index iterator test
2011-05-11 17:18:23 +02:00
Jared Flatow
b7fe1f90d0
added script to obviate nasty memory leak in Index_getitem
2011-05-10 08:18:35 -07:00
Jared Flatow
9dfc40e3f3
added iterator to index objects
2011-05-10 08:18:35 -07:00
David Versmisse
bed8c13757
Add the "getters" Repository.path and Repository.workdir
2011-04-29 09:21:01 +02:00
David Versmisse
858adab759
Implement the References (part II)
2011-04-28 10:25:37 +02:00
David Versmisse
aac4cf1b86
Implement the References (part I)
2011-04-15 11:09:20 +02:00
J. David Ibáñez
713b14d2ee
Support updating reference in create_commit
2011-04-11 19:23:48 +02:00
J. David Ibáñez
6f2b864619
Change API to create Git objects
...
Do not allow to create commits, trees, blobs and tags directly from the
constructor. For instance, now calling "Commit(...)" raises an error.
Instead use the create methods of the repository object:
Before Now
----------------------------- -----------------------------
commit = Commit(repo, ...) sha = repo.create_commit(...)
tag = Tag(repo, ...) sha = repo.create_tag(...)
Most often you won't need to get the object just created, but if you
do just call "repo[sha]" afterwards. (Methods to create blobs and trees
are still missing, just like before.)
Similarly the method that creates a tree object from the index file does
not return the tree object anymore, but just its SHA:
Before Now
----------------------------- -----------------------------
tree = index.create_tree() sha = index.create_tree()
2011-04-11 18:44:49 +02:00
J. David Ibáñez
43ea66b738
Add support for the time offset of the signature
2011-04-08 17:03:41 +02:00
J. David Ibáñez
7947c5396c
tests: remove unneeded calls to Index.read
...
Since libgit2's commit 3bdc0d4c8c3a5 the index file is automatically
read when opened.
2011-04-08 16:35:20 +02:00
Sarath Lakshman
014388c995
Add unit test for method create_tree() from Index class
2011-04-07 14:07:48 +05:30
J. David Ibáñez
08d3dcc82e
Update unit tests
2011-04-05 12:37:26 +02:00
J. David Ibáñez
8bbc75148f
Add the parents param to the Commit init method
...
And fix unit tests for the commit object.
2011-04-05 11:22:56 +02:00
J. David Ibáñez
c411fd8203
Make pygit2 build against new libgit2 API
...
There is an small change to the API, the 'tag.target_type' getter has
been removed, just use 'tag.target.type' instead.
2011-03-15 15:29:55 +01:00
J. David Ibáñez
a1e79ded4e
Merge remote branch 'davidv/index'
2011-03-03 19:52:32 +01:00
J. David Ibáñez
8da3f16da7
Merge remote branch 'john/add-commit-attributes' into revwalk
...
Conflicts:
pygit2.c
test/test_commit.py
2011-03-03 16:24:30 +01:00
John Szakmeister
2acf49c6f7
Support adding parents to a commit.
2011-02-27 07:01:33 -05:00
John Szakmeister
fd327d76e0
Uncomment a few tests.
2011-02-27 06:31:53 -05:00
John Szakmeister
3fc9a840a1
Add the parents attribute to commit.
...
Only support getting the attribute for now.
2011-02-26 16:31:15 -05:00
John Szakmeister
3b403247d1
Add a test for the sha of a commit.
2011-02-26 16:14:14 -05:00
J. David Ibáñez
7e8d2bb19d
Implement Commit.tree getter
...
We need this to be able to make an equivalent to "git log -- path"
2011-02-23 17:08:25 +01:00
J. David Ibañez
0032573ca8
Add more unit tests for revision walking
...
Signed-off-by: J. David Ibañez <jdavid@itaapy.com>
2011-02-21 13:19:25 +01:00
J. David Ibañez
fc4f82cc68
Complete support for revision walk
...
Signed-off-by: J. David Ibañez <jdavid@itaapy.com>
2011-02-14 13:18:12 +01:00
J. David Ibañez
296f521496
Start support for revision walking
2011-02-11 18:03:33 +01:00
David Versmisse
cde5b8b614
Add a default value for "stage" (0) in Index.add
2011-02-11 12:12:49 +01:00
J. David Ibañez
83a78dac5f
Fix unit tests for Python 2.5
2011-02-09 16:30:15 +01:00
J. David Ibañez
f643037b79
Add unit tests for the index file
2011-02-08 18:22:09 +01:00
J. David Ibañez
fe1540f546
Add index test case for a non-bare repo
2011-02-07 13:28:39 +01:00
J. David Ibañez
8c08923309
Start support for the index file
2011-02-07 12:39:57 +01:00
Dave Borowitz
673a045a30
Add KeyError assert to test_repository.
...
Change-Id: Ifd29be456c61fdd476a3298b1ead110283d2424e
2010-11-12 13:28:48 -08:00
Dave Borowitz
520556e552
Add assertRaisesWithArg for better KeyError/IndexError testing.
...
Change-Id: Iadc9075e8e705579e4c0daf49fe7110db55e87c0
2010-11-12 13:28:48 -08:00
Dave Borowitz
e077abe1a6
Add Tag class.
...
Change-Id: Ia7240e96dd6da69d373f385bde67e8d3aa70f7b1
2010-11-12 13:22:10 -08:00
Dave Borowitz
33d775a1d7
Add Blob class.
...
Change-Id: I8c448be4947c2090c4378d62cc3d935483fcf055
2010-11-12 13:22:10 -08:00
Dave Borowitz
35f094b57b
Add Tree and TreeEntry classes, with tests.
...
Change-Id: Idadd5fc59b85506260a1f57b5e7488aed590bfa1
2010-11-12 13:22:08 -08:00
Dave Borowitz
3fa91b901d
Return None for sha of in-memory objects.
...
Change-Id: Ieb1f332184bf747f4f8b12f12fec9e3570f74b10
2010-11-12 13:20:00 -08:00