From: W. Trevor King Date: Thu, 23 Jul 2009 18:24:36 +0000 (-0400) Subject: "be diff" now compares agains the last commit (for versioning VCSs). X-Git-Tag: 1.0.0~62^2~46^2~9^2~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60e13a0a2f4f8cad3f6b0217e1e8c4e9ac7e9d6a;p=be.git "be diff" now compares agains the last commit (for versioning VCSs). This is the default behaviour of most of the VCSs own diff commands. --- 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)