##// END OF EJS Templates
merge: add a config option to disable path conflict checking...
Siddharth Agarwal -
r34942:37450a12 stable
parent child Browse files
Show More
@@ -578,6 +578,9 b" coreconfigitem('merge', 'checkunknown',"
578 578 coreconfigitem('merge', 'checkignored',
579 579 default='abort',
580 580 )
581 coreconfigitem('experimental', 'merge.checkpathconflicts',
582 default=True,
583 )
581 584 coreconfigitem('merge', 'followcopies',
582 585 default=True,
583 586 )
@@ -693,6 +693,7 b' def _checkunknownfiles(repo, wctx, mctx,'
693 693 abortconflicts = set()
694 694 unknownconfig = _getcheckunknownconfig(repo, 'merge', 'checkunknown')
695 695 ignoredconfig = _getcheckunknownconfig(repo, 'merge', 'checkignored')
696 pathconfig = repo.ui.configbool('experimental', 'merge.checkpathconflicts')
696 697 if not force:
697 698 def collectconflicts(conflicts, config):
698 699 if config == 'abort':
@@ -704,7 +705,7 b' def _checkunknownfiles(repo, wctx, mctx,'
704 705 if m in ('c', 'dc'):
705 706 if _checkunknownfile(repo, wctx, mctx, f):
706 707 fileconflicts.add(f)
707 elif f not in wctx:
708 elif pathconfig and f not in wctx:
708 709 path = _checkunknowndirs(repo, f)
709 710 if path is not None:
710 711 pathconflicts.add(path)
@@ -1139,8 +1140,9 b' def manifestmerge(repo, wctx, p2, pa, br'
1139 1140 actions[f] = ('dc', (None, f, f, False, pa.node()),
1140 1141 "prompt deleted/changed")
1141 1142
1142 # If we are merging, look for path conflicts.
1143 checkpathconflicts(repo, wctx, p2, actions)
1143 if repo.ui.configbool('experimental', 'merge.checkpathconflicts'):
1144 # If we are merging, look for path conflicts.
1145 checkpathconflicts(repo, wctx, p2, actions)
1144 1146
1145 1147 return actions, diverge, renamedelete
1146 1148
General Comments 0
You need to be logged in to leave comments. Login now