From 510c9f33393c1f222ee56732c026f229ed8ae49d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 23 Nov 2008 09:50:56 -0500 Subject: Go back to lazy bug loading to get execution speed back up. Fixes bug b3c6da51-3a30-42c9-8c75-587c7a1705c5 --- becommands/remove.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'becommands/remove.py') diff --git a/becommands/remove.py b/becommands/remove.py index 7ba5e23..6fddb1f 100644 --- a/becommands/remove.py +++ b/becommands/remove.py @@ -28,7 +28,7 @@ def execute(args): closed >>> execute (["b"]) Removed bug b - >>> bd.load() + >>> bd._clear_bugs() >>> try: ... bd.bug_from_shortname("b") ... except KeyError: @@ -38,7 +38,7 @@ def execute(args): options, args = get_parser().parse_args(args) if len(args) != 1: raise cmdutil.UserError("Please specify a bug id.") - bd = bugdir.BugDir(loadNow=True) + bd = bugdir.BugDir(from_disk=True) bug = bd.bug_from_shortname(args[0]) bd.remove_bug(bug) bd.save() -- cgit