Mercurial > hg > mercurial-source
changeset 30822:49d5434d68fb
revset: extract function that creates range set from computed revisions
So we can pass m=0 to _makerangeset() even if the revision 0 is hidden.
Hidden revisions are filtered by spanset.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 01 Oct 2016 20:11:48 +0900 |
parents | d24e03da24b5 |
children | 69b61d0bb008 |
files | mercurial/revset.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -366,8 +366,9 @@ if not m or not n: return baseset() - m, n = m.first(), n.last() - + return _makerangeset(repo, subset, m.first(), n.last(), order) + +def _makerangeset(repo, subset, m, n, order): if m == n: r = baseset([m]) elif n == node.wdirrev: