##// END OF EJS Templates
copies: fix crash when copy source is not in graft base...
Martin von Zweigbergk -
r44670:a0f34033 default draft
parent child Browse files
Show More
@@ -527,6 +527,11 b' def _checksinglesidecopies('
527 527 if src not in m1:
528 528 # renamed on side 1, deleted on side 2
529 529 renamedelete[src] = dsts1
530 elif src not in mb:
531 # Work around the "short-circuit to avoid issues with merge states"
532 # thing in pathcopies(): pathcopies(x, y) can return a copy where the
533 # destination doesn't exist in y.
534 pass
530 535 elif m2[src] != mb[src]:
531 536 if not _related(c2[src], base[src]):
532 537 return
@@ -186,14 +186,9 b' set up some more complex changes to shel'
186 186
187 187 the common case - no options or filenames
188 188
189 $ hg shelve 2>&1 | grep KeyError
190 KeyError: 'No such manifest entry.' (no-pure !)
191 raise KeyError (pure !)
192 KeyError (pure !)
193 # Get out of the broken state so later tests work
194 $ hg forget b.rename/b c.copy ghost
195 $ hg revert a/a b/b d
196 $ rm a/a.orig b.rename/b c.copy
189 $ hg shelve
190 shelved as default-01
191 3 files updated, 0 files merged, 2 files removed, 0 files unresolved
197 192 $ hg status -C
198 193
199 194 ensure that our shelved changes exist
@@ -396,10 +391,10 b' ensure that we have a merge with unresol'
396 391 #if phasebased
397 392 $ hg heads -q --template '{rev}\n'
398 393 8
399 6
394 5
400 395 $ hg parents -q --template '{rev}\n'
401 396 8
402 6
397 5
403 398 #endif
404 399
405 400 #if stripbased
General Comments 0
You need to be logged in to leave comments. Login now