aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-23 10:08:04 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-23 10:08:04 -0400
commit678d074ba2d20c22255abdcc8c41f3c0e2ec2c2a (patch)
tree798e22a36be1c810c6376e02d2d5df7d64c3e868 /becommands
parent0cdbb498a29d32b5d2d0a182079ed6cd5ddb7641 (diff)
downloadbugseverywhere-678d074ba2d20c22255abdcc8c41f3c0e2ec2c2a.tar.gz
Added bugdir setting comparision to libbe.diff.
Renamed libbe.diff.diff -> bug_diffs, since it doesn't compare bugdirs. Load comments before bug comparision so cmp_comments will see them. Use .settings_properties rather than static lists to create attribute lists for change_lines(). Removed trailing endline from becommands/diff.py output.
Diffstat (limited to 'becommands')
-rw-r--r--becommands/diff.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/becommands/diff.py b/becommands/diff.py
index 491261e..13402c0 100644
--- a/becommands/diff.py
+++ b/becommands/diff.py
@@ -37,7 +37,6 @@ def execute(args, test=False):
Modified bug reports:
a:cm: Bug A
status: open -> closed
- <BLANKLINE>
"""
parser = get_parser()
options, args = parser.parse_args(args)
@@ -53,7 +52,7 @@ def execute(args, test=False):
print "This directory is not revision-controlled."
else:
old_bd = bd.duplicate_bugdir(revision)
- r,m,a = diff.diff(old_bd, bd)
+ r,m,a = diff.bug_diffs(old_bd, bd)
optbugs = []
if options.all == True:
@@ -68,7 +67,9 @@ def execute(args, test=False):
for bug in optbugs:
print bug.uuid
else :
- print diff.diff_report((r,m,a), bd).encode(bd.encoding)
+ rep = diff.diff_report((r,m,a), old_bd, bd).encode(bd.encoding)
+ if len(rep) > 0:
+ print rep
bd.remove_duplicate_bugdir()
def get_parser():