diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-19 08:59:18 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-19 08:59:18 -0500 |
commit | e86d95647ba1dbd451fc06d0a25407e1e39cb023 (patch) | |
tree | 04f0edf42e0a89f0b9e0a5b9a87bd6c3cd413e61 | |
parent | a3b0c3e2b90c392279208416eb6a603dae4a9b7a (diff) | |
download | bugseverywhere-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.py | 3 |
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): |