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