Mercurial > hg-stable
diff tests/autodiff.py @ 14322:a90131b85fd8
scmutil: drop aliases in cmdutil for match functions
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 13 May 2011 14:58:24 -0500 |
parents | b33f3e35efb0 |
children | 35c2cc322ba8 |
line wrap: on
line diff
--- a/tests/autodiff.py Fri May 13 14:48:48 2011 -0500 +++ b/tests/autodiff.py Fri May 13 14:58:24 2011 -0500 @@ -1,7 +1,7 @@ # Extension dedicated to test patch.diff() upgrade modes # # -from mercurial import cmdutil, scmutil, patch, util +from mercurial import scmutil, patch, util def autodiff(ui, repo, *pats, **opts): diffopts = patch.diffopts(ui, opts) @@ -29,7 +29,7 @@ raise util.Abort('--git must be yes, no or auto') node1, node2 = scmutil.revpair(repo, []) - m = cmdutil.match(repo, pats, opts) + m = scmutil.match(repo, pats, opts) it = patch.diff(repo, node1, node2, match=m, opts=diffopts, losedatafn=losedatafn) for chunk in it: