diff options
author | W. Trevor King <wking@drexel.edu> | 2008-11-23 09:50:56 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-11-23 09:50:56 -0500 |
commit | 510c9f33393c1f222ee56732c026f229ed8ae49d (patch) | |
tree | ba51973a3fd3eb5893d413f6c8b5a721867d26dc /becommands/assign.py | |
parent | 333fc7968794deff9aa7a7a91d72cf17763df855 (diff) | |
download | bugseverywhere-510c9f33393c1f222ee56732c026f229ed8ae49d.tar.gz |
Go back to lazy bug loading to get execution speed back up.
Fixes bug b3c6da51-3a30-42c9-8c75-587c7a1705c5
Diffstat (limited to 'becommands/assign.py')
-rw-r--r-- | becommands/assign.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/becommands/assign.py b/becommands/assign.py index 2cdcf4c..b01c66a 100644 --- a/becommands/assign.py +++ b/becommands/assign.py @@ -27,17 +27,17 @@ def execute(args): True >>> execute(["a"]) - >>> bd.load() - >>> bd.bug_from_shortname("a").assigned == bd.rcs.get_user_id() + >>> bd._clear_bugs() + >>> bd.bug_from_shortname("a").assigned == bd.user_id True >>> execute(["a", "someone"]) - >>> bd.load() + >>> bd._clear_bugs() >>> print bd.bug_from_shortname("a").assigned someone >>> execute(["a","none"]) - >>> bd.load() + >>> bd._clear_bugs() >>> bd.bug_from_shortname("a").assigned is None True """ @@ -48,10 +48,10 @@ def execute(args): if len(args) > 2: help() raise cmdutil.UserError("Too many arguments.") - bd = bugdir.BugDir(loadNow=True) + bd = bugdir.BugDir(from_disk=True) bug = bd.bug_from_shortname(args[0]) if len(args) == 1: - bug.assigned = bug.rcs.get_user_id() + bug.assigned = bd.user_id elif len(args) == 2: if args[1] == "none": bug.assigned = None |