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