Show More
@@ -296,14 +296,15 def applyupdates(repo, action, wctx, mct | |||
|
296 | 296 | if f != fd and move: |
|
297 | 297 | moves.append(f) |
|
298 | 298 | |
|
299 | audit = scmutil.pathauditor(repo.root) | |
|
300 | ||
|
299 | 301 | # remove renamed files after safely stored |
|
300 | 302 | for f in moves: |
|
301 | 303 | if os.path.lexists(repo.wjoin(f)): |
|
302 | 304 | repo.ui.debug("removing %s\n" % f) |
|
305 | audit(f) | |
|
303 | 306 | os.unlink(repo.wjoin(f)) |
|
304 | 307 | |
|
305 | audit_path = scmutil.pathauditor(repo.root) | |
|
306 | ||
|
307 | 308 | numupdates = len(action) |
|
308 | 309 | for i, a in enumerate(action): |
|
309 | 310 | f, m = a[:2] |
@@ -313,7 +314,7 def applyupdates(repo, action, wctx, mct | |||
|
313 | 314 | continue |
|
314 | 315 | if m == "r": # remove |
|
315 | 316 | repo.ui.note(_("removing %s\n") % f) |
|
316 |
audit |
|
|
317 | audit(f) | |
|
317 | 318 | if f == '.hgsubstate': # subrepo states need updating |
|
318 | 319 | subrepo.submerge(repo, wctx, mctx, wctx, overwrite) |
|
319 | 320 | try: |
@@ -340,6 +341,7 def applyupdates(repo, action, wctx, mct | |||
|
340 | 341 | if (move and repo.dirstate.normalize(fd) != f |
|
341 | 342 | and os.path.lexists(repo.wjoin(f))): |
|
342 | 343 | repo.ui.debug("removing %s\n" % f) |
|
344 | audit(f) | |
|
343 | 345 | os.unlink(repo.wjoin(f)) |
|
344 | 346 | elif m == "g": # get |
|
345 | 347 | flags = a[2] |
@@ -354,6 +356,7 def applyupdates(repo, action, wctx, mct | |||
|
354 | 356 | f2, fd, flags = a[2:] |
|
355 | 357 | if f: |
|
356 | 358 | repo.ui.note(_("moving %s to %s\n") % (f, fd)) |
|
359 | audit(f) | |
|
357 | 360 | t = wctx.filectx(f).data() |
|
358 | 361 | repo.wwrite(fd, t, flags) |
|
359 | 362 | util.unlinkpath(repo.wjoin(f)) |
General Comments 0
You need to be logged in to leave comments.
Login now