##// END OF EJS Templates
log: fix crash on empty revision with --copies switch...
Yuya Nishihara -
r37794:141017c7 default
parent child Browse files
Show More
@@ -3477,8 +3477,8 b' def log(ui, repo, *pats, **opts):'
3477 getrenamed = None
3477 getrenamed = None
3478 if opts.get('copies'):
3478 if opts.get('copies'):
3479 endrev = None
3479 endrev = None
3480 if opts.get('rev'):
3480 if revs:
3481 endrev = scmutil.revrange(repo, opts.get('rev')).max() + 1
3481 endrev = revs.max() + 1
3482 getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
3482 getrenamed = templatekw.getrenamedfn(repo, endrev=endrev)
3483
3483
3484 ui.pager('log')
3484 ui.pager('log')
@@ -656,6 +656,9 b' log copies, execute bit set'
656 6
656 6
657 #endif
657 #endif
658
658
659 log copies, empty set
660
661 $ hg log --copies -r '0 and not 0'
659
662
660 log -p d
663 log -p d
661
664
General Comments 0
You need to be logged in to leave comments. Login now