fileset: use context-returning revpair()
authorMartin von Zweigbergk <martinvonz@google.com>
Sat, 31 Mar 2018 23:26:07 -0700
changeset 37259 f290f130d7fc
parent 37258 3c7c13e75663
child 37260 f654105f1517
fileset: use context-returning revpair() Differential Revision: https://phab.mercurial-scm.org/D3011
mercurial/fileset.py
--- 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])')