190 Commits

Author SHA1 Message Date
Valentin Haenel
a41f59deb3 tests for keyword arg init_repository 2013-02-28 20:05:19 +01:00
Nico von Geyso
1b5bf479ff added functionality to checkout from index 2013-02-17 17:30:34 +01:00
Nico von Geyso
b828eb926f added functionality to checkout from HEAD 2013-02-17 17:30:34 +01:00
Nico von Geyso
db5e1443b6 added tests for Repo.checkout() 2013-02-17 17:30:34 +01:00
Nico von Geyso
270fa59e5b added bye.txt and new to testrepo i18n branch 2013-02-17 17:30:34 +01:00
J. David Ibáñez
826409b3db tests: add remote to the test suite 2013-02-17 17:30:34 +01:00
Nico von Geyso
0823621bb4 renamed remote_create() to create_remote() 2013-02-16 21:58:42 +01:00
Nico von Geyso
9c9e0f9755 added tests for remote.fetch() 2013-02-16 21:56:34 +01:00
Nico von Geyso
3bf32f707a added remote 'origin' to emptyrepo.tar 2013-02-16 21:56:00 +01:00
Nico von Geyso
4873529129 added setter for remote fetchspec 2013-02-16 20:47:45 +01:00
Nico von Geyso
ee32acdf39 added remote fetchspec getter 2013-02-16 19:51:18 +01:00
Nico von Geyso
d150937068 added functionality to set remote urls 2013-02-16 19:47:31 +01:00
Nico von Geyso
ffaf0d5ada added functionality to rename remotes 2013-02-16 19:47:31 +01:00
Nico von Geyso
bc2bb9fc26 added assertRaisesAssign test function 2013-02-16 19:47:31 +01:00
Nico von Geyso
c1e645ea1a moved remote tests to test_remote.py 2013-02-16 19:47:31 +01:00
Nico von Geyso
401e5c9aaf added remote 'origin' to testrepo.tar 2013-02-16 19:47:31 +01:00
Nico von Geyso
14a6734921 Added basic remote support
* new Repository methods implemented:
   * remotes to list all existing remotes
   * remote_create to create a new remote entry
* New Class Remote added
2013-02-15 18:08:38 +01:00
richo
4551cb078a Add tests for hash 2013-02-15 03:28:53 +11:00
richo
927b29d70e Add tests for Repository.hashfile 2013-02-15 03:28:52 +11:00
Nico von Geyso
21229cb298 fix error message text 2013-02-01 15:19:54 +01:00
richo
3058181e14 Implement Iterator protocol on Repository
Uses a stupid implementation that builds a list in memory and returns
it's iterator.
2013-01-04 13:51:23 +11:00
Nico von Geyso
a511f299bb fixex api changes of libgit2 in 64c5112 2012-11-28 18:10:07 +01:00
delanne
0406841533 - thanks to Martin R. Hufsky for the patch for git_diff_find_similar
- I updated the unittest (they failed with the patch), and added a short unittest which emulates --find-copies-harder
2012-11-26 12:18:57 +01:00
Nico von Geyso
3e0c6f521d new config file has to exist (change in libgit2 - see 270160b) 2012-11-19 23:14:27 +01:00
Nico von Geyso
b2359200bb revlog iteration will start with last commit, not the first one 2012-11-19 23:11:18 +01:00
J. David Ibáñez
af1c6ca10d Merge remote-tracking branch 'cholin/repo_state' 2012-11-16 16:55:34 +01:00
J. David Ibáñez
40751b62b3 style: remove tabs and trailing white-space 2012-11-14 18:08:08 +01:00
J. David Ibáñez
81078e2cf7 Merge remote-tracking branch 'delanne/diff_opts' 2012-11-11 19:52:56 +01:00
delanne
783025d327 Fix: "The opt variable is not used in the loop" 2012-11-09 14:55:20 +01:00
delanne
1b7e61145e Merge remote-tracking branch 'upstream/master' into diff_opts 2012-11-05 13:38:43 +01:00
Nico von Geyso
2da04cab2d Merge branch 'master' into create_reference_refactoring 2012-11-04 21:45:41 +01:00
Nico von Geyso
929b775241 added Index_remove 2012-11-04 12:54:10 +01:00
Nico von Geyso
225f7bd175 added Index_remove 2012-11-04 12:53:32 +01:00
Nico von Geyso
7dbd08edc2 added in Repository: is_empty, is_bare, head_is_orphaned and head_is_detached 2012-11-01 16:17:51 +01:00
Nico von Geyso
1bbb7b549f Added empty test repository 2012-11-01 16:17:29 +01:00
Nico von Geyso
971fc2f101 fixed config test for config.set_multivar
config files have different priorities and only the highest one gets evaluated for set_multivar
2012-11-01 15:18:07 +01:00
Nico von Geyso
f1a72fb2e8 fixed index_add and index_get for current development branch of libgit2 2012-11-01 15:17:52 +01:00
delanne
0b537bf780 - add option flags for tree.diff
- add a testcase test_diff_tree_opts
 - update testrepo.git
 - update existing testcases
2012-10-31 12:11:18 +01:00
W. Trevor King
c36bbf518c test_config: tell Nose that foreach_test_wrapper() is not a test
Signed-off-by: W. Trevor King <wking@tremily.us>
2012-10-25 14:37:43 -04:00
Nico von Geyso
e1acdb48bc use latest development of libgit2 - changed GitError to ValueError
For already existing references a ValueError is raised (see sry/pygit2/error.c:41)
2012-10-12 11:51:08 +02:00
Nico von Geyso
682fb1fd13 merged create_reference and create_reference_symbolic and added force-Option
To be more pythonic: merged methods create_reference and create_reference_symbolic
and added force-Option. To make a new symbolic reference you have provide symbolic=True
as an additional parameter. If force=True references will although be overridden.
Otherwise an exception is raised if the references exists.

Examples:

  # normal reference
    repo.create_reference('refs/heads/foo', repo.head.hex)

  # override reference with new value
    repo.create_reference('refs/heads/foo', repo.head.hex, force=True)

  # symbolic reference
    repo.create_reference('refs/tags/foo', 'refs/heads/master', symbolic = True)
2012-10-09 13:13:36 +02:00
J. David Ibáñez
ad8103bc48 Fix reference test case
Now git_reference_lookup says "foo" is an invalid reference name
(returns GITERR_REFERENCE instead of GIT_ENOTFOUND).
2012-10-03 14:08:27 +02:00
J. David Ibáñez
5251343ee7 Merge remote-tracking branch 'wking/revparse' 2012-09-25 15:10:55 +02:00
J. David Ibáñez
1be3e8301d Get a useful traceback when importing pygit2 fails 2012-09-22 19:07:15 +02:00
J. David Ibáñez
a72fab5a76 Merge remote-tracking branch 'bendavis/git_tree_entry_bypath' 2012-09-21 16:52:38 +02:00
J. David Ibáñez
6654716eb3 Merge remote-tracking branch 'wking/kwargs-signature' 2012-09-19 20:34:43 +02:00
W. Trevor King
36ae908de2 test: use Signature(encoding=...) in test_commit and test_signature.
Correct tests now that the default name encoding is ASCII.
2012-09-17 14:52:30 -04:00
Ridge Kennedy
bc0c0e17a8 Add Blob.size 2012-09-16 22:56:36 +12:00
J. David Ibáñez
430f4dc343 Fix typo in repository test 2012-09-14 14:04:02 +02:00
W. Trevor King
0238fb72df repository: add Repository.revparse_single().
This provides access to libgit2's 'git_revparse_single'.
2012-09-13 17:09:12 -04:00