Mercurial > public > mercurial-scm > hg
diff tests/autodiff.py @ 14319:b33f3e35efb0
scmutil: move revsingle/pair/range from cmdutil
This allows users at levels below the command layer to avoid import loops.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 13 May 2011 14:06:28 -0500 |
parents | e451e599fbcf |
children | a90131b85fd8 |
line wrap: on
line diff
--- a/tests/autodiff.py Fri May 13 12:57:27 2011 -0500 +++ b/tests/autodiff.py Fri May 13 14:06:28 2011 -0500 @@ -1,7 +1,7 @@ # Extension dedicated to test patch.diff() upgrade modes # # -from mercurial import cmdutil, patch, util +from mercurial import cmdutil, scmutil, patch, util def autodiff(ui, repo, *pats, **opts): diffopts = patch.diffopts(ui, opts) @@ -28,7 +28,7 @@ else: raise util.Abort('--git must be yes, no or auto') - node1, node2 = cmdutil.revpair(repo, []) + node1, node2 = scmutil.revpair(repo, []) m = cmdutil.match(repo, pats, opts) it = patch.diff(repo, node1, node2, match=m, opts=diffopts, losedatafn=losedatafn)