Adjust Bzr._vcs_revision_id for 1-indexed revision ids.
authorW. Trevor King <wking@drexel.edu>
Mon, 14 Dec 2009 01:24:21 +0000 (20:24 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 14 Dec 2009 01:24:21 +0000 (20:24 -0500)
libbe/storage/vcs/bzr.py

index 7d84415f939c285974c5cb3f2349fbe02efd3037..04cc6c1c4d0ee52bdd871767ee55045ebda08ca6 100644 (file)
@@ -120,7 +120,7 @@ class Bzr(base.VCS):
         if index >= current_revision or index < -current_revision:
             return None
         if index >= 0:
-            return str(index+1) # bzr commit 0 is the empty tree.
+            return str(index) # bzr commit 0 is the empty tree.
         return str(current_revision+index+1)
 
 \f