aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set_root.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-05-18 18:37:17 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-05-18 18:37:17 +0000
commit53f5cced06f25dc49cedf1a3fb181201b727a521 (patch)
tree17283c382777c33216bb2d533a1bc72dfb80cc01 /becommands/set_root.py
parent52ba04aec5b23244aa2c15ab666024d7b9e0015f (diff)
downloadbugseverywhere-53f5cced06f25dc49cedf1a3fb181201b727a521.tar.gz
Normalized paths before use in rel_filename
Diffstat (limited to 'becommands/set_root.py')
-rw-r--r--becommands/set_root.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/becommands/set_root.py b/becommands/set_root.py
index ad20b8e..14286e0 100644
--- a/becommands/set_root.py
+++ b/becommands/set_root.py
@@ -20,6 +20,7 @@ from libbe import bugdir, cmdutil, rcs
def execute(args):
"""
>>> from libbe import tests
+ >>> import os
>>> dir = tests.Dir()
>>> try:
... bugdir.tree_root(dir.name)
@@ -32,7 +33,8 @@ def execute(args):
>>> bd = bugdir.tree_root(dir.name)
>>> bd.root = dir.name
>>> dir = tests.arch_dir()
- >>> execute([dir.name])
+ >>> os.chdir(dir.name)
+ >>> execute('.')
Using Arch for revision control.
Directory initialized.
>>> bd = bugdir.tree_root(dir.name+"/{arch}")