##// END OF EJS Templates
dirstate: fix restoration of "merged" state after a remove...
marmoute -
r48803:87b3010c default
parent child Browse files
Show More
@@ -734,6 +734,9 class dirstate(object):
734 734 # (see `merged_removed` and `from_p2_removed`)
735 735 if entry.merged_removed or entry.from_p2_removed:
736 736 source = self._map.copymap.get(f)
737 if entry.merged_removed:
738 self._addpath(f, merged=True)
739 else:
737 740 self._addpath(f, from_p2=True)
738 741 self._map.copymap.pop(f, None)
739 742 if source is not None:
@@ -55,8 +55,8 Re-adding foo1 and bar:
55 55 adding foo1
56 56
57 57 $ hg debugstate --no-dates
58 n 0 -2 unset bar
59 n 0 -2 unset foo1
58 m 0 -2 unset bar
59 m 0 -2 unset foo1
60 60 copy: foo -> foo1
61 61
62 62 $ hg st -qC
@@ -74,8 +74,8 Reverting foo1 and bar:
74 74 reverting foo1
75 75
76 76 $ hg debugstate --no-dates
77 n 0 -2 unset bar
78 n 0 -2 unset foo1
77 m 0 -2 unset bar
78 m 0 -2 unset foo1
79 79 copy: foo -> foo1
80 80
81 81 $ hg st -qC
General Comments 0
You need to be logged in to leave comments. Login now