Show More
@@ -989,10 +989,6 b' def filemerge(repo, wctx, mynode, orig, ' | |||
|
989 | 989 | |
|
990 | 990 | Returns whether the merge is complete, the return value of the merge, and |
|
991 | 991 | a boolean indicating whether the file was deleted from disk.""" |
|
992 | ||
|
993 | if not fco.cmp(fcd): # files identical? | |
|
994 | return None, False | |
|
995 | ||
|
996 | 992 | ui = repo.ui |
|
997 | 993 | fd = fcd.path() |
|
998 | 994 | uipathfn = scmutil.getuipathfn(repo) |
@@ -421,6 +421,14 b' class _mergestate_base(object):' | |||
|
421 | 421 | self._restore_backup(wctx[dfile], localkey, flags) |
|
422 | 422 | else: |
|
423 | 423 | wctx[dfile].remove(ignoremissing=True) |
|
424 | ||
|
425 | if not fco.cmp(fcd): # files identical? | |
|
426 | # If return value of merge is None, then there are no real conflict | |
|
427 | del self._state[dfile] | |
|
428 | self._results[dfile] = None, None | |
|
429 | self._dirty = True | |
|
430 | return None | |
|
431 | ||
|
424 | 432 | merge_ret, deleted = filemerge.filemerge( |
|
425 | 433 | self._repo, |
|
426 | 434 | wctx, |
@@ -431,12 +439,6 b' class _mergestate_base(object):' | |||
|
431 | 439 | fca, |
|
432 | 440 | labels=self._labels, |
|
433 | 441 | ) |
|
434 | if merge_ret is None: | |
|
435 | # If return value of merge is None, then there are no real conflict | |
|
436 | del self._state[dfile] | |
|
437 | self._results[dfile] = None, None | |
|
438 | self._dirty = True | |
|
439 | return None | |
|
440 | 442 | |
|
441 | 443 | if not merge_ret: |
|
442 | 444 | self.mark(dfile, MERGE_RECORD_RESOLVED) |
@@ -962,7 +962,7 b' Merge conflicts:' | |||
|
962 | 962 | what do you want to do? l |
|
963 | 963 | getting changed largefiles |
|
964 | 964 | 1 largefiles updated, 0 removed |
|
965 |
|
|
|
965 | 1 files updated, 3 files merged, 0 files removed, 0 files unresolved | |
|
966 | 966 | (branch merge, don't forget to commit) |
|
967 | 967 | $ cat f-different |
|
968 | 968 | 1 |
General Comments 0
You need to be logged in to leave comments.
Login now