Mercurial > public > mercurial-scm > hg-stable
diff hgext/extdiff.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 | df2399663392 |
children | a90131b85fd8 |
line wrap: on
line diff
--- a/hgext/extdiff.py Fri May 13 12:57:27 2011 -0500 +++ b/hgext/extdiff.py Fri May 13 14:06:28 2011 -0500 @@ -123,10 +123,10 @@ msg = _('cannot specify --rev and --change at the same time') raise util.Abort(msg) elif change: - node2 = cmdutil.revsingle(repo, change, None).node() + node2 = scmutil.revsingle(repo, change, None).node() node1a, node1b = repo.changelog.parents(node2) else: - node1a, node2 = cmdutil.revpair(repo, revs) + node1a, node2 = scmutil.revpair(repo, revs) if not revs: node1b = repo.dirstate.p2() else: