Exemple #1
0
 def testIsMergePoint(self):
     "Test merge point detection."
     current = bisect.BisectCurrent()
     self.assertRevno(5)
     assert not current.is_merge_point()
     current.switch(2)
     assert current.is_merge_point()
Exemple #2
0
 def testReset(self):
     "Test resetting the working tree to a non-bisected state."
     current = bisect.BisectCurrent()
     current.switch(4)
     current.reset()
     self.assertRevno(5)
     assert not os.path.exists(bisect.bisect_rev_path)
Exemple #3
0
 def testShowLogSubtree(self):
     "Test that a subtree's log can be shown."
     current = bisect.BisectCurrent()
     current.switch(self.subtree_rev)
     current.show_rev_log()
Exemple #4
0
 def testSwitchVersions(self):
     "Test switching versions."
     current = bisect.BisectCurrent()
     self.assertRevno(5)
     current.switch(4)
     self.assertRevno(4)
Exemple #5
0
 def testShowLog(self):
     "Test that the log can be shown."
     # Not a very good test; just makes sure the code doesn't fail,
     # not that the output makes any sense.
     bisect.BisectCurrent().show_rev_log()