Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 14321:003d63bb4fa5
scmutil: drop some aliases in cmdutil
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 13 May 2011 14:48:48 -0500 |
parents | 3438417a6657 |
children | a90131b85fd8 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Fri May 13 14:07:16 2011 -0500 +++ b/mercurial/cmdutil.py Fri May 13 14:48:48 2011 -0500 @@ -12,12 +12,9 @@ import match as matchmod import subrepo -expandpats = scmutil.expandpats match = scmutil.match matchall = scmutil.matchall matchfiles = scmutil.matchfiles -addremove = scmutil.addremove -dirstatecopy = scmutil.dirstatecopy def parsealiases(cmd): return cmd.lstrip("^").split("|") @@ -270,7 +267,8 @@ targets[abstarget] = abssrc # fix up dirstate - dirstatecopy(ui, repo, wctx, abssrc, abstarget, dryrun=dryrun, cwd=cwd) + scmutil.dirstatecopy(ui, repo, wctx, abssrc, abstarget, + dryrun=dryrun, cwd=cwd) if rename and not dryrun: wctx.remove([abssrc], not after) @@ -341,7 +339,7 @@ return res - pats = expandpats(pats) + pats = scmutil.expandpats(pats) if not pats: raise util.Abort(_('no source or destination specified')) if len(pats) == 1: @@ -1135,7 +1133,7 @@ # extract addremove carefully -- this function can be called from a command # that doesn't support addremove if opts.get('addremove'): - addremove(repo, pats, opts) + scmutil.addremove(repo, pats, opts) return commitfunc(ui, repo, message, match(repo, pats, opts), opts)