From 52da11569b268908278aec65de2c0b2c4037502c Mon Sep 17 00:00:00 2001 From: Aaron Bentley Date: Thu, 26 May 2005 14:46:51 +0000 Subject: [PATCH] Fixed bzr 'revlib' handling --- libbe/bzr.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libbe/bzr.py b/libbe/bzr.py index c653b2a..fd6d4a6 100644 --- a/libbe/bzr.py +++ b/libbe/bzr.py @@ -55,12 +55,15 @@ def lookup_revision(revno): return invoke_client("lookup-revision", str(revno)).rstrip('\n') def export(revno, revision_dir): - invoke_client("export", str(revno), revision_dir) + invoke_client("export", "-r", str(revno), revision_dir) def find_or_make_export(revno): revision_id = lookup_revision(revno) home = os.path.expanduser("~") - revision_dir = os.path.join(home, ".bzrrevs", revision_id) + revision_root = os.path.join(home, ".bzrrevs") + if not os.path.exists(revision_root): + os.mkdir(revision_root) + revision_dir = os.path.join(revision_root, revision_id) if not os.path.exists(revision_dir): export(revno, revision_dir) return revision_dir -- 2.26.2