[PATCH 3 of 3 V2] applyupdates: audit merged files

Adrian Buehlmann adrian at cadifra.com
Sun May 22 04:39:44 CDT 2011


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1306054995 -7200
# Node ID c97c10a1b4bc615de043de27fc13582d36550862
# Parent  f2295a829f4751c34e6336334a4087c9aefa7590
applyupdates: audit merged files

protects changing flags on merged files (util.setflags call on line 341)

diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -329,6 +329,7 @@
                 subrepo.submerge(repo, wctx, mctx, wctx.ancestor(mctx), overwrite)
                 continue
             f2, fd, flags, move = a[2:]
+            repo.wopener.audit(fd)
             r = ms.resolve(fd, wctx, mctx)
             if r is not None and r > 0:
                 unresolved += 1


More information about the Mercurial-devel mailing list