"Set the range to all revisions."
self.start = 1
self.end = len(metadata)
+ def select_tip(self, metadata):
+ "Set the range to the tip revision."
+ self.start = len(metadata)
+ self.end = None
def __contains__(self, i):
"Does the spec contain the given revno?"
return i >= self.start and (self.end is None or i <= self.end)
metadata = History(arg)
ctx.resolve(metadata)
if ctx.is_empty():
- ctx.select_all(metadata)
+ ctx.select_tip(metadata)
with backend.lifter(arg):
for item in metadata:
if item.revno in ctx:
echo "Second comment" | src $TESTOPTS commit - testfile1 >/dev/null
check "commit with -"
-# FIXME: test fails for unknown reasons
-#src $TESTOPTS cat testfile1 | diff -u testfile1 -
-#check "content check after second commit"
+src $TESTOPTS cat testfile1 | diff -u testfile1 -
+check "content check after second commit"
cat >testfile2 <<EOF
= testfile1 =================================================================