Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 23955:8a29897d42d2 stable
log: use rev() to build revset of --follow option from numeric revision
startrev can be -1.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 10 Jan 2015 13:14:00 +0900 |
parents | 9994f45ba714 |
children | 6156edaa82aa |
comparison
equal
deleted
inserted
replaced
23954:310222feb9a8 | 23955:8a29897d42d2 |
---|---|
1779 if pats: | 1779 if pats: |
1780 # follow() revset interprets its file argument as a | 1780 # follow() revset interprets its file argument as a |
1781 # manifest entry, so use match.files(), not pats. | 1781 # manifest entry, so use match.files(), not pats. |
1782 opts[fpats[followfirst]] = list(match.files()) | 1782 opts[fpats[followfirst]] = list(match.files()) |
1783 else: | 1783 else: |
1784 opts[fnopats[followdescendants][followfirst]] = str(startrev) | 1784 op = fnopats[followdescendants][followfirst] |
1785 opts[op] = 'rev(%d)' % startrev | |
1785 else: | 1786 else: |
1786 opts['_patslog'] = list(pats) | 1787 opts['_patslog'] = list(pats) |
1787 | 1788 |
1788 filematcher = None | 1789 filematcher = None |
1789 if opts.get('patch') or opts.get('stat'): | 1790 if opts.get('patch') or opts.get('stat'): |