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