aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/upgrade.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-15 18:35:41 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-15 18:35:41 -0500
commit03011f286420d8e091052019ee41eba021041e61 (patch)
treefcf389e28c1142d61015bf37134925d4b209ba25 /becommands/upgrade.py
parent137f084f2931a0e2e1fa3076beadac17b88ef6b6 (diff)
downloadbugseverywhere-03011f286420d8e091052019ee41eba021041e61.tar.gz
Moved libbe.cmdutil.bug_summary() to libbe.bug.Bug.string().
This seems like a natual place for a function that only operates on Bugs.
Diffstat (limited to 'becommands/upgrade.py')
-rw-r--r--becommands/upgrade.py3
1 files changed, 1 insertions, 2 deletions
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