mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fix wrong file history view in mercurial
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user