merge: directly use repo.vfs.join
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 08 Mar 2017 16:53:32 -0800
changeset 31323 102d3a30582c
parent 31322 4282feb79432
child 31324 e712a9c35fd8
merge: directly use repo.vfs.join The 'repo.join' method is about to be deprecated.
mercurial/merge.py
--- a/mercurial/merge.py	Wed Mar 08 16:53:24 2017 -0800
+++ b/mercurial/merge.py	Wed Mar 08 16:53:32 2017 -0800
@@ -124,7 +124,7 @@
             self._mdstate = 's'
         else:
             self._mdstate = 'u'
-        shutil.rmtree(self._repo.join('merge'), True)
+        shutil.rmtree(self._repo.vfs.join('merge'), True)
         self._results = {}
         self._dirty = False
 
@@ -1678,7 +1678,7 @@
             repo.setparents(fp1, fp2)
             recordupdates(repo, actions, branchmerge)
             # update completed, clear state
-            util.unlink(repo.join('updatestate'))
+            util.unlink(repo.vfs.join('updatestate'))
 
             if not branchmerge:
                 repo.dirstate.setbranch(p2.branch())