Example #1
0
 def test_orphaned_overflow(self):
     client = GitClient(self.local_path)
     # this failed when passing all ref ids to git log
     self.assertFalse(client._is_commit_in_orphaned_subtree(self.last_version))
Example #2
0
 def test_is_commit_in_orphaned_subtree(self):
     client = GitClient(self.local_path)
     self.assertTrue(client._is_commit_in_orphaned_subtree(self.dangling_version))
     self.assertFalse(client._is_commit_in_orphaned_subtree(self.no_br_tag_version))
     self.assertFalse(client._is_commit_in_orphaned_subtree(self.diverged_branch_version))