aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-19 08:59:18 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-19 08:59:18 -0500
commite86d95647ba1dbd451fc06d0a25407e1e39cb023 (patch)
tree04f0edf42e0a89f0b9e0a5b9a87bd6c3cd413e61
parenta3b0c3e2b90c392279208416eb6a603dae4a9b7a (diff)
downloadbugseverywhere-e86d95647ba1dbd451fc06d0a25407e1e39cb023.tar.gz
Work around the extra output of `tla file-find` to get path.
Example output: * build pristine tree for ...--patch-1 * from import revision: ...--base-0 * patching for revision: ...--patch-1 ./{arch}/++pristine-trees/...--patch-1/./.be/unlikely id
-rw-r--r--libbe/storage/vcs/arch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbe/storage/vcs/arch.py b/libbe/storage/vcs/arch.py
index b7f4d36..f9b01fd 100644
--- a/libbe/storage/vcs/arch.py
+++ b/libbe/storage/vcs/arch.py
@@ -303,7 +303,8 @@ class Arch(base.VCS):
status,output,error = \
self._invoke_client(
'file-find', '--unescaped', path, revision)
- relpath = output.rstrip('\n')
+ relpath = output.rstrip('\n').splitlines()[-1]
+ print >> sys.stderr, 'getting', relpath
return base.VCS._vcs_get_file_contents(self, relpath)
def _vcs_path(self, id, revision):