aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
Diffstat (limited to 'becommands')
-rw-r--r--becommands/diff.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/becommands/diff.py b/becommands/diff.py
index 4b319ca..07b3b1c 100644
--- a/becommands/diff.py
+++ b/becommands/diff.py
@@ -52,6 +52,8 @@ def execute(args, manipulate_encodings=True):
if bd.rcs.versioned == False:
print "This directory is not revision-controlled."
else:
+ if revision == None: # get the most recent revision
+ revision = bd.rcs.revision_id(-1)
old_bd = bd.duplicate_bugdir(revision)
r,m,a = diff.bug_diffs(old_bd, bd)