(list(extra), list(missing))
assert not extra and not missing, assert_msg
+ @staticmethod
+ def ls_tree(repo, treeish):
+ """List contents (blobs) in a git treeish"""
+ objs = repo.list_tree(treeish, True)
+ blobs = [obj[3] for obj in objs if obj[1] == 'blob']
+ return set(blobs)
+
@classmethod
def _check_repo_state(cls, repo, current_branch, branches, files=None):
"""Check that repository is clean and given branches exist"""
"""Test case setup"""
super(ImportOrigTestBase, self).setup()
- @staticmethod
- def ls_tree(repo, treeish):
- """List contents (blobs) in a git treeish"""
- objs = repo.list_tree(treeish, True)
- blobs = [obj[3] for obj in objs if obj[1] == 'blob']
- return set(blobs)
-
@classmethod
def check_tree(cls, repo, treeish, filelist):
"""Check the contents (list of files) in a git treeish"""