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()
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)
def testShowLogSubtree(self): "Test that a subtree's log can be shown." current = bisect.BisectCurrent() current.switch(self.subtree_rev) current.show_rev_log()
def testSwitchVersions(self): "Test switching versions." current = bisect.BisectCurrent() self.assertRevno(5) current.switch(4) self.assertRevno(4)
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()