From 60e13a0a2f4f8cad3f6b0217e1e8c4e9ac7e9d6a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 23 Jul 2009 14:24:36 -0400 Subject: [PATCH] "be diff" now compares agains the last commit (for versioning VCSs). This is the default behaviour of most of the VCSs own diff commands. --- becommands/diff.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.26.2