>>> if bd.rcs.versioned == True:
... execute([original])
... else:
- ... print "a:cm: Bug A\\nstatus: open -> closed"
+ ... print "a:cm: Bug A\\nstatus: open -> closed\\n"
Modified bug reports:
a:cm: Bug A
status: open -> closed
+ <BLANKLINE>
"""
options, args = get_parser().parse_args(args)
if len(args) == 0:
except KeyError:
removed.append(old_bug)
for uuid in new_bugdir.list_uuids():
- if not old_bugdir.bug_map.has_key(new_bug.uuid):
+ if not old_bugdir.bug_map.has_key(uuid):
new_bug = new_bugdir.bug_from_uuid(uuid)
added.append(new_bug)
return (removed, modified, added)
print "New bug reports:"
for bug in added:
print bug.string(shortlist=True)
+ print ""
if len(modified) > 0:
printed = False
printed = True
print "Modified bug reports:"
print change_str
+ print ""
if len(removed) > 0:
print "Removed bug reports:"
for bug in removed:
print bug.string(shortlist=True)
-
+ print ""
+
def change_lines(old, new, attributes):
change_list = []
for attr in attributes: