aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/rcs.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-29 15:49:45 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-29 15:49:45 -0400
commit22a38de80ee11ada710bc6766798ca608f938307 (patch)
treed0c3dcb844ce9c88213ef7b70c8545abd7c77559 /libbe/rcs.py
parent59f6dd7c96df1cb33ad9b409574cab1c26b12243 (diff)
downloadbugseverywhere-22a38de80ee11ada710bc6766798ca608f938307.tar.gz
Corrected some problems with revision_id() before an initial commit.
Diffstat (limited to 'libbe/rcs.py')
-rw-r--r--libbe/rcs.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbe/rcs.py b/libbe/rcs.py
index d979df0..fdbb01a 100644
--- a/libbe/rcs.py
+++ b/libbe/rcs.py
@@ -860,6 +860,15 @@ class RCS_commit_TestCase(RCSTestCase):
self.failUnlessEqual(self.rcs.revision_id(i), None)
self.failUnlessEqual(self.rcs.revision_id(-i-1), None)
+ def test_revision_id_as_committed(self):
+ """Check revision id before first commit"""
+ if not self.rcs.versioned:
+ self.failUnlessEqual(self.rcs.revision_id(5), None)
+ return
+ committed_revisions = []
+ for path in self.test_files:
+ self.failUnlessEqual(self.rcs.revision_id(0), None)
+
class RCS_duplicate_repo_TestCase(RCSTestCase):
"""Test cases for RCS.duplicate_repo method."""