def execute(args):
"""
>>> from libbe import tests
+ >>> import os
>>> dir = tests.Dir()
>>> try:
... bugdir.tree_root(dir.name)
>>> 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}")
return invoke_client("tree-root", dirname).rstrip('\n')
def rel_filename(filename, root):
+ filename = os.path.realpath(filename)
+ root = os.path.realpath(root)
assert(filename.startswith(root))
return filename[len(root)+1:]