projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa491e5
)
Adjust Hg._vcs_revision_id for 1-indexed revision ids.
author
W. Trevor King
<wking@drexel.edu>
Mon, 14 Dec 2009 01:09:51 +0000
(20:09 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Mon, 14 Dec 2009 01:09:51 +0000
(20:09 -0500)
libbe/storage/vcs/hg.py
patch
|
blob
|
history
diff --git
a/libbe/storage/vcs/hg.py
b/libbe/storage/vcs/hg.py
index 776d9868ed153bf23ef6729ed8dc42c97a5342bd..7e0643b574e280f8d71bb79c2df7f7d830081bd9 100644
(file)
--- 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)