##// END OF EJS Templates
merge: consistently use repo.wopener.audit instead of creating a new auditor
Mads Kiilerich -
r18328:2fee5119 default
parent child Browse files
Show More
@@ -7,7 +7,7 b''
7
7
8 from node import nullid, nullrev, hex, bin
8 from node import nullid, nullrev, hex, bin
9 from i18n import _
9 from i18n import _
10 import error, scmutil, util, filemerge, copies, subrepo
10 import error, util, filemerge, copies, subrepo
11 import errno, os, shutil
11 import errno, os, shutil
12
12
13 class mergestate(object):
13 class mergestate(object):
@@ -360,7 +360,7 b' def applyupdates(repo, action, wctx, mct'
360 if f != fd and move:
360 if f != fd and move:
361 moves.append(f)
361 moves.append(f)
362
362
363 audit = scmutil.pathauditor(repo.root)
363 audit = repo.wopener.audit
364
364
365 # remove renamed files after safely stored
365 # remove renamed files after safely stored
366 for f in moves:
366 for f in moves:
@@ -393,7 +393,7 b' def applyupdates(repo, action, wctx, mct'
393 overwrite)
393 overwrite)
394 continue
394 continue
395 f2, fd, flags, move = a[2:]
395 f2, fd, flags, move = a[2:]
396 repo.wopener.audit(fd)
396 audit(fd)
397 r = ms.resolve(fd, wctx, mctx)
397 r = ms.resolve(fd, wctx, mctx)
398 if r is not None and r > 0:
398 if r is not None and r > 0:
399 unresolved += 1
399 unresolved += 1
@@ -443,7 +443,7 b' def applyupdates(repo, action, wctx, mct'
443 repo.ui.warn(" %s\n" % nf)
443 repo.ui.warn(" %s\n" % nf)
444 elif m == "e": # exec
444 elif m == "e": # exec
445 flags = a[2]
445 flags = a[2]
446 repo.wopener.audit(f)
446 audit(f)
447 util.setflags(repo.wjoin(f), 'l' in flags, 'x' in flags)
447 util.setflags(repo.wjoin(f), 'l' in flags, 'x' in flags)
448 ms.commit()
448 ms.commit()
449 repo.ui.progress(_('updating'), None, total=numupdates, unit=_('files'))
449 repo.ui.progress(_('updating'), None, total=numupdates, unit=_('files'))
General Comments 0
You need to be logged in to leave comments. Login now