diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-13 20:09:51 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-13 20:09:51 -0500 |
commit | 7dc16313f3426640830a79be914be9dc01d08849 (patch) | |
tree | 3c3107984279900d48e5c714cd0359ec0f7fd3a6 /libbe/storage/vcs/hg.py | |
parent | fa491e55c00363009985dadca264bc23fd0fc76d (diff) | |
download | bugseverywhere-7dc16313f3426640830a79be914be9dc01d08849.tar.gz |
Adjust Hg._vcs_revision_id for 1-indexed revision ids.
Diffstat (limited to 'libbe/storage/vcs/hg.py')
-rw-r--r-- | libbe/storage/vcs/hg.py | 2 |
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) |