merge: consistently use repo.wopener.audit instead of creating a new auditor
authorMads Kiilerich <mads@kiilerich.com>
Wed, 09 Jan 2013 00:01:33 +0100
changeset 18328 2fee5119099b
parent 18327 4aecdb91443c
child 18329 eb6ca96f4dd0
merge: consistently use repo.wopener.audit instead of creating a new auditor
mercurial/merge.py
--- a/mercurial/merge.py	Wed Jan 09 00:01:33 2013 +0100
+++ b/mercurial/merge.py	Wed Jan 09 00:01:33 2013 +0100
@@ -7,7 +7,7 @@
 
 from node import nullid, nullrev, hex, bin
 from i18n import _
-import error, scmutil, util, filemerge, copies, subrepo
+import error, util, filemerge, copies, subrepo
 import errno, os, shutil
 
 class mergestate(object):
@@ -360,7 +360,7 @@
             if f != fd and move:
                 moves.append(f)
 
-    audit = scmutil.pathauditor(repo.root)
+    audit = repo.wopener.audit
 
     # remove renamed files after safely stored
     for f in moves:
@@ -393,7 +393,7 @@
                                  overwrite)
                 continue
             f2, fd, flags, move = a[2:]
-            repo.wopener.audit(fd)
+            audit(fd)
             r = ms.resolve(fd, wctx, mctx)
             if r is not None and r > 0:
                 unresolved += 1
@@ -443,7 +443,7 @@
                 repo.ui.warn(" %s\n" % nf)
         elif m == "e": # exec
             flags = a[2]
-            repo.wopener.audit(f)
+            audit(f)
             util.setflags(repo.wjoin(f), 'l' in flags, 'x' in flags)
     ms.commit()
     repo.ui.progress(_('updating'), None, total=numupdates, unit=_('files'))