Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.py @ 30043: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 | 1b5931604a5a |
children | 69b61d0bb008 |
line wrap: on
line diff
--- a/mercurial/revset.py Mon Sep 12 13:37:14 2016 +0200 +++ b/mercurial/revset.py Sat Oct 01 20:11:48 2016 +0900 @@ -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: