Show More
@@ -52,6 +52,9 b' generatorset = smartset.generatorset' | |||||
52 | spanset = smartset.spanset |
|
52 | spanset = smartset.spanset | |
53 | fullreposet = smartset.fullreposet |
|
53 | fullreposet = smartset.fullreposet | |
54 |
|
54 | |||
|
55 | # revisions not included in all(), but populated if specified | |||
|
56 | _virtualrevs = (node.nullrev, node.wdirrev) | |||
|
57 | ||||
55 | # Constants for ordering requirement, used in getset(): |
|
58 | # Constants for ordering requirement, used in getset(): | |
56 | # |
|
59 | # | |
57 | # If 'define', any nested functions and operations MAY change the ordering of |
|
60 | # If 'define', any nested functions and operations MAY change the ordering of | |
@@ -1847,7 +1850,7 b' def rev(repo, subset, x):' | |||||
1847 | except (TypeError, ValueError): |
|
1850 | except (TypeError, ValueError): | |
1848 | # i18n: "rev" is a keyword |
|
1851 | # i18n: "rev" is a keyword | |
1849 | raise error.ParseError(_("rev expects a number")) |
|
1852 | raise error.ParseError(_("rev expects a number")) | |
1850 |
if l not in repo.changelog and l not in |
|
1853 | if l not in repo.changelog and l not in _virtualrevs: | |
1851 | return baseset() |
|
1854 | return baseset() | |
1852 | return subset & baseset([l]) |
|
1855 | return subset & baseset([l]) | |
1853 |
|
1856 |
General Comments 0
You need to be logged in to leave comments.
Login now