Show More
@@ -695,7 +695,7 b' def overridefilemerge(' | |||
|
695 | 695 | ) |
|
696 | 696 | ): |
|
697 | 697 | repo.wwrite(fcd.path(), fco.data(), fco.flags()) |
|
698 |
return |
|
|
698 | return 0, False | |
|
699 | 699 | |
|
700 | 700 | |
|
701 | 701 | @eh.wrapfunction(copiesmod, b'pathcopies') |
@@ -1031,7 +1031,7 b' def filemerge(repo, wctx, mynode, orig, ' | |||
|
1031 | 1031 | a boolean indicating whether the file was deleted from disk.""" |
|
1032 | 1032 | |
|
1033 | 1033 | if not fco.cmp(fcd): # files identical? |
|
1034 |
return |
|
|
1034 | return None, False | |
|
1035 | 1035 | |
|
1036 | 1036 | ui = repo.ui |
|
1037 | 1037 | fd = fcd.path() |
@@ -1089,8 +1089,7 b' def filemerge(repo, wctx, mynode, orig, ' | |||
|
1089 | 1089 | toolconf = tool, toolpath, binary, symlink, scriptfn |
|
1090 | 1090 | |
|
1091 | 1091 | if mergetype == nomerge: |
|
1092 |
r |
|
|
1093 | return True, r, deleted | |
|
1092 | return func(repo, mynode, fcd, fco, fca, toolconf, labels) | |
|
1094 | 1093 | |
|
1095 | 1094 | if orig != fco.path(): |
|
1096 | 1095 | ui.status( |
@@ -1109,7 +1108,7 b' def filemerge(repo, wctx, mynode, orig, ' | |||
|
1109 | 1108 | b'in-memory merge does not support merge conflicts' |
|
1110 | 1109 | ) |
|
1111 | 1110 | ui.warn(onfailure % fduipath) |
|
1112 |
return |
|
|
1111 | return 1, False | |
|
1113 | 1112 | |
|
1114 | 1113 | backup = _makebackup(repo, ui, wctx, fcd) |
|
1115 | 1114 | r = 1 |
@@ -1150,7 +1149,7 b' def filemerge(repo, wctx, mynode, orig, ' | |||
|
1150 | 1149 | ) |
|
1151 | 1150 | # we're done if premerge was successful (r is 0) |
|
1152 | 1151 | if not r: |
|
1153 |
return |
|
|
1152 | return r, False | |
|
1154 | 1153 | |
|
1155 | 1154 | needcheck, r, deleted = func( |
|
1156 | 1155 | repo, |
@@ -1177,7 +1176,7 b' def filemerge(repo, wctx, mynode, orig, ' | |||
|
1177 | 1176 | ui.warn(onfailure % fduipath) |
|
1178 | 1177 | _onfilemergefailure(ui) |
|
1179 | 1178 | |
|
1180 |
return |
|
|
1179 | return r, deleted | |
|
1181 | 1180 | finally: |
|
1182 | 1181 | if not r and backup is not None: |
|
1183 | 1182 | backup.remove() |
@@ -354,7 +354,7 b' class _mergestate_base(object):' | |||
|
354 | 354 | self._restore_backup(wctx[dfile], localkey, flags) |
|
355 | 355 | else: |
|
356 | 356 | wctx[dfile].remove(ignoremissing=True) |
|
357 |
|
|
|
357 | merge_ret, deleted = filemerge.filemerge( | |
|
358 | 358 | self._repo, |
|
359 | 359 | wctx, |
|
360 | 360 | self._local, |
@@ -371,7 +371,6 b' class _mergestate_base(object):' | |||
|
371 | 371 | elif not merge_ret: |
|
372 | 372 | self.mark(dfile, MERGE_RECORD_RESOLVED) |
|
373 | 373 | |
|
374 | if complete: | |
|
375 | 374 |
|
|
376 | 375 |
|
|
377 | 376 |
|
General Comments 0
You need to be logged in to leave comments.
Login now