Mercurial > public > mercurial-scm > hg
diff mercurial/fileset.py @ 37257:f290f130d7fc
fileset: use context-returning revpair()
Differential Revision: https://phab.mercurial-scm.org/D3011
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 31 Mar 2018 23:26:07 -0700 |
parents | 7c0f40f4f7bf |
children | 5f2dc1b71cf1 |
line wrap: on
line diff
--- a/mercurial/fileset.py Sat Mar 31 23:31:28 2018 -0700 +++ b/mercurial/fileset.py Sat Mar 31 23:26:07 2018 -0700 @@ -513,9 +513,7 @@ revspec = getstring(r, reverr) if not revspec: raise error.ParseError(reverr) - basenode, node = scmutil.revpairnodes(repo, [baserevspec, revspec]) - basectx = repo[basenode] - ctx = repo[node] + basectx, ctx = scmutil.revpair(repo, [baserevspec, revspec]) return getset(mctx.switch(ctx, _buildstatus(ctx, x, basectx=basectx)), x) @predicate('subrepo([pattern])')