Submitter | phabricator |
---|---|
Date | April 1, 2018, 4:31 p.m. |
Message ID | <differential-rev-PHID-DREV-wixrnjvc7qs2z7a46axp-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/30124/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/tests/autodiff.py b/tests/autodiff.py --- a/tests/autodiff.py +++ b/tests/autodiff.py @@ -40,9 +40,9 @@ else: raise error.Abort(b'--git must be yes, no or auto') - node1, node2 = scmutil.revpairnodes(repo, []) - m = scmutil.match(repo[node2], pats, opts) - it = patch.diff(repo, node1, node2, match=m, opts=diffopts, + ctx1, ctx2 = scmutil.revpair(repo, []) + m = scmutil.match(ctx2, pats, opts) + it = patch.diff(repo, ctx1.node(), ctx2.node(), match=m, opts=diffopts, losedatafn=losedatafn) for chunk in it: ui.write(chunk)