Show More
@@ -999,12 +999,13 b' def walkchangerevs(repo, match, opts, pr' | |||
|
999 | 999 | |
|
1000 | 1000 | if not len(repo): |
|
1001 | 1001 | return [] |
|
1002 | ||
|
1003 | if follow: | |
|
1004 | defrange = '%s:0' % repo['.'].rev() | |
|
1002 | if opts.get('rev'): | |
|
1003 | revs = scmutil.revrange(repo, opts.get('rev')) | |
|
1004 | elif follow: | |
|
1005 | revs = repo.revs('reverse(:.)') | |
|
1005 | 1006 | else: |
|
1006 | defrange = '-1:0' | |
|
1007 | revs = scmutil.revrange(repo, opts.get('rev') or [defrange]) | |
|
1007 | revs = list(repo) | |
|
1008 | revs.reverse() | |
|
1008 | 1009 | if not revs: |
|
1009 | 1010 | return [] |
|
1010 | 1011 | wanted = set() |
@@ -1392,7 +1393,7 b' def getgraphlogrevs(repo, pats, opts):' | |||
|
1392 | 1393 | revs = scmutil.revrange(repo, opts['rev']) |
|
1393 | 1394 | else: |
|
1394 | 1395 | if follow and len(repo) > 0: |
|
1395 |
revs = |
|
|
1396 | revs = repo.revs('reverse(:.)') | |
|
1396 | 1397 | else: |
|
1397 | 1398 | revs = list(repo.changelog) |
|
1398 | 1399 | revs.reverse() |
General Comments 0
You need to be logged in to leave comments.
Login now