diff --git a/mercurial/fileset.py b/mercurial/fileset.py --- a/mercurial/fileset.py +++ b/mercurial/fileset.py @@ -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])')