From: W. Trevor King Date: Tue, 19 Jan 2010 13:59:18 +0000 (-0500) Subject: Work around the extra output of `tla file-find` to get path. X-Git-Tag: 1.0.0~59^2~47^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e86d95647ba1dbd451fc06d0a25407e1e39cb023;p=be.git 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 --- 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):