Patchwork [3,of,5,mergedriver] merge.mergedriver: don't try resolving files marked driver-resolved

login
register
mail settings
Submitter Siddharth Agarwal
Date Oct. 13, 2015, 4:50 a.m.
Message ID <38e87fa7f8cd3cebd8af.1444711804@dev6666.prn1.facebook.com>
Download mbox | patch
Permalink /patch/11004/
State Superseded
Commit d58f2f0e2b1915d52dda5b007b352be8db721116
Headers show

Comments

Siddharth Agarwal - Oct. 13, 2015, 4:50 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1443667431 25200
#      Wed Sep 30 19:43:51 2015 -0700
# Node ID 38e87fa7f8cd3cebd8af048d0149f12a8de407aa
# Parent  898f85e6b83e73b68fead89654a878d6bdffa8fb
merge.mergedriver: don't try resolving files marked driver-resolved

The driver is expected to take care of these.

Patch

diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -318,7 +318,7 @@  class mergestate(object):
 
     def _resolve(self, preresolve, dfile, wctx, labels=None):
         """rerun merge process for file path `dfile`"""
-        if self[dfile] == 'r':
+        if self[dfile] in 'rd':
             return True, 0
         stateentry = self._state[dfile]
         state, hash, lfile, afile, anode, ofile, onode, flags = stateentry