merge: use repo.wvfs.setflags() instead of util.setflags()
authorPhil Cohen <phillco@fb.com>
Thu, 11 May 2017 18:38:43 -0700
changeset 32246 7e79373263ab
parent 32245 3a755652ce3a
child 32247 e05cfb4a6a8e
merge: use repo.wvfs.setflags() instead of util.setflags() Most merge.py code goes through the vfs instead of maniulating files directly, so let's do the same here.
mercurial/merge.py
--- a/mercurial/merge.py	Fri May 12 11:20:25 2017 -0700
+++ b/mercurial/merge.py	Thu May 11 18:38:43 2017 -0700
@@ -1288,7 +1288,7 @@
         progress(_updating, z, item=f, total=numupdates, unit=_files)
         flags, = args
         audit(f)
-        util.setflags(repo.wjoin(f), 'l' in flags, 'x' in flags)
+        repo.wvfs.setflags(f, 'l' in flags, 'x' in flags)
         updated += 1
 
     # the ordering is important here -- ms.mergedriver will raise if the merge