24 Commits

Author SHA1 Message Date
Jason Ziglar
8327e1bee3 Add test for init_submodules() and update_submodules() 2017-03-22 11:23:17 -04:00
Guille -bisho-
802976535a Add support for GIT_DIFF_SHOW_BINARY
Adding the binary diff flag GIT_DIFF_SHOW_BINARY to pygit2.
libgit2 0.23.0 already supports this constant to be used in diff
flags and produces properly formated binary diffs.
2015-09-23 16:30:19 -07:00
Carlos Martín Nieto
3091c7aa87 Remove mistaken submodule in the tree
The path test/data/testrepo was mistakenly added as a submodule and the
error was not caught before merging. Remove this path as it should not
exist on the repo.
2015-04-28 01:55:20 +02:00
Patrick Steinhardt
d35ecf945a Add tests for submodules. 2015-03-06 17:48:29 +01:00
Carlos Martín Nieto
1361b2cce9 Add Repository.expand_id()
As we allow users of the library to use short strings, we must expand
them. This is however only available through a function in C. Expose
that function from the repository to allow python code to get a full id
from a short hex string.
2015-02-06 01:17:19 +01:00
Victor Garcia
9955b3e67a implementing merge with default options 2013-12-04 18:23:13 +01:00
Nico von Geyso
a89d55a0f3 added notes in testreop 2013-03-11 20:48:57 +01:00
Nico von Geyso
da4abb78cb added test data for diff.find_similiar 2013-03-04 18:37:45 +01:00
Nico von Geyso
270fa59e5b added bye.txt and new to testrepo i18n branch 2013-02-17 17:30:34 +01:00
Nico von Geyso
3bf32f707a added remote 'origin' to emptyrepo.tar 2013-02-16 21:56:00 +01:00
Nico von Geyso
401e5c9aaf added remote 'origin' to testrepo.tar 2013-02-16 19:47:31 +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
J. David Ibáñez
af1c6ca10d Merge remote-tracking branch 'cholin/repo_state' 2012-11-16 16:55:34 +01:00
Nico von Geyso
1bbb7b549f Added empty test repository 2012-11-01 16:17:29 +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
Martin Lenders
e126b09380 Implement dictionary-like behaviour for Config 2012-06-08 18:34:54 +02:00
Petr Hosek
c06e10e67e Support for diff merge operation added 2012-05-29 17:41:07 +01: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 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
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
Dave Borowitz
e077abe1a6 Add Tag class.
Change-Id: Ia7240e96dd6da69d373f385bde67e8d3aa70f7b1
2010-11-12 13:22:10 -08:00
Dave Borowitz
a2b0f45368 Add simple repository tests.
Change-Id: I128ac826f1c673002bc6f17696691e5a4bd7f0fd
2010-11-12 13:19:57 -08:00