aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
Diffstat (limited to 'libbe')
-rw-r--r--libbe/storage/vcs/hg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbe/storage/vcs/hg.py b/libbe/storage/vcs/hg.py
index 776d986..7e0643b 100644
--- a/libbe/storage/vcs/hg.py
+++ b/libbe/storage/vcs/hg.py
@@ -112,6 +112,8 @@ class Hg(base.VCS):
return self._vcs_revision_id(-1)
def _vcs_revision_id(self, index, style='id'):
+ if index > 0:
+ index -= 1
args = ['identify', '--rev', str(int(index)), '--%s' % style]
kwargs = {'expect': (0,255)}
status,output,error = self._u_invoke_client(*args, **kwargs)