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