##// END OF EJS Templates
clfilter: remove any explicit revision number from default cmdutil range...
Pierre-Yves David -
r17676:f87683a1 default
parent child Browse files
Show More
@@ -999,12 +999,13 b' def walkchangerevs(repo, match, opts, pr'
999
999
1000 if not len(repo):
1000 if not len(repo):
1001 return []
1001 return []
1002
1002 if opts.get('rev'):
1003 if follow:
1003 revs = scmutil.revrange(repo, opts.get('rev'))
1004 defrange = '%s:0' % repo['.'].rev()
1004 elif follow:
1005 revs = repo.revs('reverse(:.)')
1005 else:
1006 else:
1006 defrange = '-1:0'
1007 revs = list(repo)
1007 revs = scmutil.revrange(repo, opts.get('rev') or [defrange])
1008 revs.reverse()
1008 if not revs:
1009 if not revs:
1009 return []
1010 return []
1010 wanted = set()
1011 wanted = set()
@@ -1392,7 +1393,7 b' def getgraphlogrevs(repo, pats, opts):'
1392 revs = scmutil.revrange(repo, opts['rev'])
1393 revs = scmutil.revrange(repo, opts['rev'])
1393 else:
1394 else:
1394 if follow and len(repo) > 0:
1395 if follow and len(repo) > 0:
1395 revs = scmutil.revrange(repo, ['.:0'])
1396 revs = repo.revs('reverse(:.)')
1396 else:
1397 else:
1397 revs = list(repo.changelog)
1398 revs = list(repo.changelog)
1398 revs.reverse()
1399 revs.reverse()
General Comments 0
You need to be logged in to leave comments. Login now