aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/depend.py
diff options
context:
space:
mode:
Diffstat (limited to 'becommands/depend.py')
-rw-r--r--becommands/depend.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/becommands/depend.py b/becommands/depend.py
index 48e1527..977edae 100644
--- a/becommands/depend.py
+++ b/becommands/depend.py
@@ -18,22 +18,22 @@ from libbe import cmdutil, bugdir
import os, copy
__desc__ = __doc__
-def execute(args, test=False):
+def execute(args, manipulate_encodings=True):
"""
>>> from libbe import utility
>>> bd = bugdir.simple_bug_dir()
>>> bd.save()
>>> os.chdir(bd.root)
- >>> execute(["a", "b"], test=True)
+ >>> execute(["a", "b"], manipulate_encodings=False)
Blocks on a:
b
- >>> execute(["a"], test=True)
+ >>> execute(["a"], manipulate_encodings=False)
Blocks on a:
b
- >>> execute(["--show-status", "a"], test=True) # doctest: +NORMALIZE_WHITESPACE
+ >>> execute(["--show-status", "a"], manipulate_encodings=False) # doctest: +NORMALIZE_WHITESPACE
Blocks on a:
b closed
- >>> execute(["-r", "a", "b"], test=True)
+ >>> execute(["-r", "a", "b"], manipulate_encodings=False)
"""
parser = get_parser()
options, args = parser.parse_args(args)
@@ -47,7 +47,8 @@ def execute(args, test=False):
help()
raise cmdutil.UsageError("Too many arguments.")
- bd = bugdir.BugDir(from_disk=True, manipulate_encodings=not test)
+ bd = bugdir.BugDir(from_disk=True,
+ manipulate_encodings=manipulate_encodings)
bugA = bd.bug_from_shortname(args[0])
if len(args) == 2:
bugB = bd.bug_from_shortname(args[1])