From 03011f286420d8e091052019ee41eba021041e61 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 15 Nov 2008 18:35:41 -0500 Subject: Moved libbe.cmdutil.bug_summary() to libbe.bug.Bug.string(). This seems like a natual place for a function that only operates on Bugs. --- becommands/upgrade.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'becommands/upgrade.py') diff --git a/becommands/upgrade.py b/becommands/upgrade.py index 8f7c3a4..f5b12ef 100644 --- a/becommands/upgrade.py +++ b/becommands/upgrade.py @@ -18,7 +18,6 @@ import os.path import errno from libbe import bugdir, rcs, cmdutil -from libbe.bug import Bug def execute(args): options, args = get_parser().parse_args(args) @@ -26,7 +25,7 @@ def execute(args): for uuid in root.list_uuids(): old_bug = OldBug(root.bugs_path, uuid) - new_bug = Bug(root.bugs_path, None) + new_bug = root.get_bug(uuid) new_bug.uuid = old_bug.uuid new_bug.summary = old_bug.summary new_bug.creator = old_bug.creator -- cgit