fix wrong file history view in mercurial

This commit is contained in:
Sebastian Sdorra
2011-11-15 21:15:25 +01:00
parent c609df47ef
commit 391df01345

View File

@@ -131,11 +131,15 @@ def printChangesetsForPath(repo, path):
rev = os.environ['SCM_REVISION']
if len(rev) <= 0:
rev = "tip"
fctxs = repo[rev].filectx(path)
maxRev = fctxs.rev()
revs = []
for i in fctxs.filelog():
fctx = fctxs.filectx(i)
revs.append(fctx.changectx())
if fctx.rev() <= maxRev:
revs.append(fctx.changectx())
# reverse changesets
revs.reverse()