aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-09-06 15:06:20 +0300
committerGuido Günther <agx@sigxcpu.org>2013-09-10 09:16:13 +0200
commitb9b9eeaa6b5b8d4974826f33eedb1ba5d65843de (patch)
tree344434e7f10d23efade0b5738dad47a8eae62ec9 /tests
parent39f581ee6e2a5f37f07fd61f2288d5686959d0c4 (diff)
GitRepository.list_tree: add 'paths' option
Change-Id: I9331fec6fcd0e58dad7cb4a571a683e09ce08011 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index 5f0e3dd2..3ea0356f 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -800,8 +800,11 @@ def test_make_tree():
>>> head
[['100644', 'blob', '19af7398c894bc5e86e17259317e4db519e9241f', 'testfile']]
>>> head.append(['100644', 'blob', '19af7398c894bc5e86e17259317e4db519e9241f', 'testfile2'])
- >>> repo.make_tree(head)
+ >>> newtree = repo.make_tree(head)
+ >>> newtree
'745951810c9e22fcc6de9b23f05efd6ab5512123'
+ >>> repo.list_tree(newtree, recurse=False, paths='testfile')
+ [['100644', 'blob', '19af7398c894bc5e86e17259317e4db519e9241f', 'testfile']]
"""