aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-05-26 14:46:51 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-05-26 14:46:51 +0000
commit52da11569b268908278aec65de2c0b2c4037502c (patch)
tree4e54ebcae8be9c1df27a2f7a678743e3ff7f625a /libbe
parenta2c9b6f19c4e8669fa328757211b68fcd0243cf7 (diff)
downloadbugseverywhere-52da11569b268908278aec65de2c0b2c4037502c.tar.gz
Fixed bzr 'revlib' handling
Diffstat (limited to 'libbe')
-rw-r--r--libbe/bzr.py7
1 files 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