changeset 15853:fbb68b382040

commands: no need to rename merge and phases on import
author Martin Geisler <mg@aragost.com>
date Fri, 13 Jan 2012 11:38:49 +0100
parents d4253fb38323
children 2260e6ed09c3
files mercurial/commands.py
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jan 13 11:34:09 2012 +0100
+++ b/mercurial/commands.py	Fri Jan 13 11:38:49 2012 +0100
@@ -14,11 +14,11 @@
 import archival, changegroup, cmdutil, hbisect
 import sshserver, hgweb, hgweb.server, commandserver
 import match as matchmod
-import merge as mergemod
+import merge
 import minirst, revset, fileset
 import dagparser, context, simplemerge
 import random, setdiscovery, treediscovery, dagutil
-import phases as phasesmod
+import phases
 
 table = {}
 
@@ -2623,8 +2623,8 @@
             try:
                 # ui.forcemerge is an internal variable, do not document
                 repo.ui.setconfig('ui', 'forcemerge', opts.get('tool', ''))
-                stats = mergemod.update(repo, ctx.node(), True, True, False,
-                                        ctx.p1().node())
+                stats = merge.update(repo, ctx.node(), True, True, False,
+                                     ctx.p1().node())
             finally:
                 ui.setconfig('ui', 'forcemerge', '')
             # drop the second merge parent
@@ -4238,7 +4238,7 @@
     """
     # search for a unique phase argument
     targetphase = None
-    for idx, name in enumerate(phasesmod.phasenames):
+    for idx, name in enumerate(phases.phasenames):
         if opts[name]:
             if targetphase is not None:
                 raise util.Abort(_('only one phase can be specified'))
@@ -4262,9 +4262,9 @@
             nodes = [ctx.node() for ctx in repo.set('%lr', revs)]
             if not nodes:
                 raise util.Abort(_('empty revision set'))
-            phasesmod.advanceboundary(repo, targetphase, nodes)
+            phases.advanceboundary(repo, targetphase, nodes)
             if opts['force']:
-                phasesmod.retractboundary(repo, targetphase, nodes)
+                phases.retractboundary(repo, targetphase, nodes)
         finally:
             lock.release()
 
@@ -4655,7 +4655,7 @@
         raise util.Abort(_('no files or directories specified; '
                            'use --all to remerge all files'))
 
-    ms = mergemod.mergestate(repo)
+    ms = merge.mergestate(repo)
     m = scmutil.match(repo[None], pats, opts)
     ret = 0
 
@@ -5352,7 +5352,7 @@
     st.insert(3, renamed)
     st.insert(4, copied)
 
-    ms = mergemod.mergestate(repo)
+    ms = merge.mergestate(repo)
     st.append([f for f in ms if ms[f] == 'u'])
 
     subs = [s for s in ctx.substate if ctx.sub(s).dirty()]