##// END OF EJS Templates
dirstate: properly clean-up some more merge state on setparents
Matt Mackall -
r22895:dfa44e25 default
parent child Browse files
Show More
@@ -266,12 +266,17 b' class dirstate(object):'
266 266 self._pl = p1, p2
267 267 copies = {}
268 268 if oldp2 != nullid and p2 == nullid:
269 # Discard 'm' markers when moving away from a merge state
270 269 for f, s in self._map.iteritems():
270 # Discard 'm' markers when moving away from a merge state
271 271 if s[0] == 'm':
272 272 if f in self._copymap:
273 273 copies[f] = self._copymap[f]
274 274 self.normallookup(f)
275 # Also fix up otherparent markers
276 elif s[0] == 'n' and s[2] == -2:
277 if f in self._copymap:
278 copies[f] = self._copymap[f]
279 self.add(f)
275 280 return copies
276 281
277 282 def setbranch(self, branch):
@@ -181,7 +181,7 b' abort editing session, after first forci'
181 181 parent: 0:cb9a9f314b8b
182 182 a
183 183 branch: default
184 commit: 1 modified, 1 unknown (new branch head)
184 commit: 1 added, 1 unknown (new branch head)
185 185 update: 6 new changesets (update)
186 186 hist: 2 remaining (histedit --continue)
187 187
@@ -190,7 +190,7 b' abort editing session, after first forci'
190 190
191 191 modified files should survive the abort when we've moved away already
192 192 $ hg st
193 M e
193 A e
194 194 ? edit.sh
195 195
196 196 $ graphlog "log after abort"
@@ -71,9 +71,9 b' Rebasing B onto H and collapsing changes'
71 71 HG: --
72 72 HG: user: Nicolas Dumazet <nicdumz.commits@gmail.com>
73 73 HG: branch 'default'
74 HG: changed B
75 HG: changed C
76 HG: changed D
74 HG: added B
75 HG: added C
76 HG: added D
77 77 ====
78 78 saved backup bundle to $TESTTMP/a1/.hg/strip-backup/*-backup.hg (glob)
79 79
@@ -59,7 +59,7 b' D onto H - simple rebase:'
59 59 HG: --
60 60 HG: user: Nicolas Dumazet <nicdumz.commits@gmail.com>
61 61 HG: branch 'default'
62 HG: changed D
62 HG: added D
63 63 saved backup bundle to $TESTTMP/a1/.hg/strip-backup/*-backup.hg (glob)
64 64
65 65 $ hg tglog
General Comments 0
You need to be logged in to leave comments. Login now