fix paging of mercurial log command

This commit is contained in:
Sebastian Sdorra
2012-06-16 13:30:05 +02:00
parent 6567b9319b
commit e2889a6fee

View File

@@ -106,12 +106,15 @@ def collectChangesets(repo, path, startNode, endNode):
return ctxs
def stripChangesets(ctxs, start, limit):
if limit < 0:
ctxs = ctxs[start]
ctxs = ctxs[start:]
else:
ctxs = ctxs[start:limit]
limit = limit + start
if limit > len(ctxs):
ctxs = ctxs[start:]
else:
ctxs = ctxs[start:limit]
return ctxs
# change log methods