##// END OF EJS Templates
cmdutil: have walkchangerevs utilize common function to build revs
Yuya Nishihara -
r24063:c98fa0ca default
parent child Browse files
Show More
@@ -1473,14 +1473,7 b' def walkchangerevs(repo, match, opts, pr'
1473 function on each context in the window in forward order.'''
1473 function on each context in the window in forward order.'''
1474
1474
1475 follow = opts.get('follow') or opts.get('follow_first')
1475 follow = opts.get('follow') or opts.get('follow_first')
1476
1476 revs = _logrevs(repo, opts)
1477 if opts.get('rev'):
1478 revs = scmutil.revrange(repo, opts.get('rev'))
1479 elif follow:
1480 revs = repo.revs('reverse(:.)')
1481 else:
1482 revs = revset.spanset(repo)
1483 revs.reverse()
1484 if not revs:
1477 if not revs:
1485 return []
1478 return []
1486 wanted = set()
1479 wanted = set()
General Comments 0
You need to be logged in to leave comments. Login now