Show More
@@ -38,6 +38,7 b' from mercurial import (' | |||||
38 | lock as lockmod, |
|
38 | lock as lockmod, | |
39 | logcmdutil, |
|
39 | logcmdutil, | |
40 | merge as mergemod, |
|
40 | merge as mergemod, | |
|
41 | mergestate, | |||
41 | phases, |
|
42 | phases, | |
42 | pycompat, |
|
43 | pycompat, | |
43 | util, |
|
44 | util, | |
@@ -241,7 +242,7 b' class mercurial_sink(common.converter_si' | |||||
241 |
|
242 | |||
242 | # If the file requires actual merging, abort. We don't have enough |
|
243 | # If the file requires actual merging, abort. We don't have enough | |
243 | # context to resolve merges correctly. |
|
244 | # context to resolve merges correctly. | |
244 | if action in [b'm', b'dm', b'cd', b'dc']: |
|
245 | if action in mergestate.CONVERT_MERGE_ACTIONS: | |
245 | raise error.Abort( |
|
246 | raise error.Abort( | |
246 | _( |
|
247 | _( | |
247 | b"unable to convert merge commit " |
|
248 | b"unable to convert merge commit " | |
@@ -250,7 +251,7 b' class mercurial_sink(common.converter_si' | |||||
250 | ) |
|
251 | ) | |
251 | % (file, p1ctx, p2ctx) |
|
252 | % (file, p1ctx, p2ctx) | |
252 | ) |
|
253 | ) | |
253 |
elif action == |
|
254 | elif action == mergestate.ACTION_KEEP: | |
254 | # 'keep' means nothing changed from p1 |
|
255 | # 'keep' means nothing changed from p1 | |
255 | continue |
|
256 | continue | |
256 | else: |
|
257 | else: |
@@ -129,6 +129,15 b' NO_OP_ACTIONS = (' | |||||
129 | ACTION_KEEP_NEW, |
|
129 | ACTION_KEEP_NEW, | |
130 | ) |
|
130 | ) | |
131 |
|
131 | |||
|
132 | # Used by concert to detect situation it does not like, not sure what the exact | |||
|
133 | # criteria is | |||
|
134 | CONVERT_MERGE_ACTIONS = ( | |||
|
135 | ACTION_MERGE, | |||
|
136 | ACTION_DIR_RENAME_MOVE_LOCAL, | |||
|
137 | ACTION_CHANGED_DELETED, | |||
|
138 | ACTION_DELETED_CHANGED, | |||
|
139 | ) | |||
|
140 | ||||
132 |
|
141 | |||
133 | class _mergestate_base(object): |
|
142 | class _mergestate_base(object): | |
134 | """track 3-way merge state of individual files |
|
143 | """track 3-way merge state of individual files |
General Comments 0
You need to be logged in to leave comments.
Login now