Mercurial > public > mercurial-scm > hg
diff mercurial/revset.py @ 44582:482a6aac1f15
revset: allow repo.revs('%d', wdirrev)
Otherwise we can't write repo.revs('null:%d', subset.max()) to build
a smartset covering the range {null .. tip} + {wdir} if subset includes
wdir.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 21 Mar 2020 13:27:47 +0900 |
parents | 9d2b2df2c2ba |
children | 967e2e81f762 |
line wrap: on
line diff
--- a/mercurial/revset.py Thu Mar 19 16:06:24 2020 +0100 +++ b/mercurial/revset.py Sat Mar 21 13:27:47 2020 +0900 @@ -2108,7 +2108,8 @@ except (TypeError, ValueError): # i18n: "rev" is a keyword raise error.ParseError(_(b"rev expects a number")) - repo.changelog.node(l) # check that the rev exists + if l not in _virtualrevs: + repo.changelog.node(l) # check that the rev exists return subset & baseset([l])