##// END OF EJS Templates
copies: fix crash when copy source is not in graft base...
Martin von Zweigbergk -
r44691:d0c3eead default
parent child Browse files
Show More
@@ -527,6 +527,11 b' def _checksinglesidecopies('
527 if src not in m1:
527 if src not in m1:
528 # renamed on side 1, deleted on side 2
528 # renamed on side 1, deleted on side 2
529 renamedelete[src] = dsts1
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 elif m2[src] != mb[src]:
535 elif m2[src] != mb[src]:
531 if not _related(c2[src], base[src]):
536 if not _related(c2[src], base[src]):
532 return
537 return
@@ -186,14 +186,9 b' set up some more complex changes to shel'
186
186
187 the common case - no options or filenames
187 the common case - no options or filenames
188
188
189 $ hg shelve 2>&1 | grep KeyError
189 $ hg shelve
190 KeyError: 'No such manifest entry.' (no-pure !)
190 shelved as default-01
191 raise KeyError (pure !)
191 3 files updated, 0 files merged, 2 files removed, 0 files unresolved
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
197 $ hg status -C
192 $ hg status -C
198
193
199 ensure that our shelved changes exist
194 ensure that our shelved changes exist
@@ -396,10 +391,10 b' ensure that we have a merge with unresol'
396 #if phasebased
391 #if phasebased
397 $ hg heads -q --template '{rev}\n'
392 $ hg heads -q --template '{rev}\n'
398 8
393 8
399 6
394 5
400 $ hg parents -q --template '{rev}\n'
395 $ hg parents -q --template '{rev}\n'
401 8
396 8
402 6
397 5
403 #endif
398 #endif
404
399
405 #if stripbased
400 #if stripbased
General Comments 0
You need to be logged in to leave comments. Login now