##// END OF EJS Templates
graphlog: pass changesets to revset.match() in changelog order...
Patrick Mezard -
r16406:4aa4f50c default
parent child Browse files
Show More
@@ -409,7 +409,11 b' def getlogrevs(repo, pats, opts):'
409 return [], None, None
409 return [], None, None
410 expr, filematcher = _makelogrevset(repo, pats, opts, revs)
410 expr, filematcher = _makelogrevset(repo, pats, opts, revs)
411 if expr:
411 if expr:
412 revs = revsetmod.match(repo.ui, expr)(repo, revs)
412 # Evaluate revisions in changelog order for performance
413 # reasons but preserve the original sequence order in the
414 # filtered result.
415 matched = set(revsetmod.match(repo.ui, expr)(repo, sorted(revs)))
416 revs = [r for r in revs if r in matched]
413 return revs, expr, filematcher
417 return revs, expr, filematcher
414
418
415 def generate(ui, dag, displayer, showparents, edgefn, getrenamed=None,
419 def generate(ui, dag, displayer, showparents, edgefn, getrenamed=None,
General Comments 0
You need to be logged in to leave comments. Login now