aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/assign.py
diff options
context:
space:
mode:
Diffstat (limited to 'becommands/assign.py')
-rw-r--r--becommands/assign.py12
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