diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-23 14:24:36 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-23 14:24:36 -0400 |
commit | 60e13a0a2f4f8cad3f6b0217e1e8c4e9ac7e9d6a (patch) | |
tree | c990b0b40b8d2dd81040b4a57eb309f55c4786d3 | |
parent | 45cc50d7ce0b5c32a2936d6eb87a3002670924bc (diff) | |
download | bugseverywhere-60e13a0a2f4f8cad3f6b0217e1e8c4e9ac7e9d6a.tar.gz |
"be diff" now compares agains the last commit (for versioning VCSs).
This is the default behaviour of most of the VCSs own diff commands.
-rw-r--r-- | becommands/diff.py | 2 |
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) |