mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
fix paging of mercurial log command
This commit is contained in:
@@ -106,10 +106,13 @@ def collectChangesets(repo, path, startNode, endNode):
|
|||||||
|
|
||||||
return ctxs
|
return ctxs
|
||||||
|
|
||||||
|
|
||||||
def stripChangesets(ctxs, start, limit):
|
def stripChangesets(ctxs, start, limit):
|
||||||
if limit < 0:
|
if limit < 0:
|
||||||
ctxs = ctxs[start]
|
ctxs = ctxs[start:]
|
||||||
|
else:
|
||||||
|
limit = limit + start
|
||||||
|
if limit > len(ctxs):
|
||||||
|
ctxs = ctxs[start:]
|
||||||
else:
|
else:
|
||||||
ctxs = ctxs[start:limit]
|
ctxs = ctxs[start:limit]
|
||||||
return ctxs
|
return ctxs
|
||||||
|
|||||||
Reference in New Issue
Block a user