comparison tests/test-evolve-continue.t @ 3502:8cf1020bd4f9

tests: add test showing `evolve --continue` after `next --evolve` is broken Recent series fixing `hg evolve --continue` break the continue functionality after a conflicting `hg next --evolve`. This patch adds a test to demonstrate that. It will be fixed in the upcoming patch.
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 07 Feb 2018 22:41:30 +0530
parents 14cd04ff968e
children edabac9e9dc5
comparison
equal deleted inserted replaced
3501:7c8150697810 3502:8cf1020bd4f9
347 | () draft 347 | () draft
348 o 9:53b632d203d8 added a 348 o 9:53b632d203d8 added a
349 | () draft 349 | () draft
350 o 0:8fa14d15e168 added hgignore 350 o 0:8fa14d15e168 added hgignore
351 () draft 351 () draft
352
353 Testing `evolve --continue` after `hg next --evolve`
354
355 $ hg up .^^
356 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
357 $ echo foobar > g
358 $ hg amend
359 2 new orphan changesets
360
361 $ hg next --evolve
362 move:[22] added g
363 atop:[24] added f
364 merging g
365 warning: conflicts while merging g! (edit, then use 'hg resolve --mark')
366 evolve failed!
367 fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort
368 abort: unresolved merge conflicts (see hg help resolve)
369 [255]
370 $ echo foo > g
371 $ hg resolve -m
372 (no more unresolved files)
373 continue: hg evolve --continue
374 $ hg evolve --continue
375 evolving 22:d2c94a8f44bd "added g"
376 ** Unknown exception encountered with possibly-broken third-party extension evolve
377 ** which supports versions 4.4 of Mercurial.
378 ** Please disable evolve and try your action again.
379 ** If that fixes the bug please report it to https://bz.mercurial-scm.org/
380 ** Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
381 ** Mercurial Distributed SCM (version 4.5+71-2e11b6cd6953)
382 ** Extensions loaded: rebase, evolve
383 Traceback (most recent call last):
384 File "/tmp/hgtests.NSvQmE/install/bin/hg", line 41, in <module>
385 dispatch.run()
386 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 88, in run
387 status = (dispatch(req) or 0) & 255
388 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 183, in dispatch
389 ret = _runcatch(req)
390 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 324, in _runcatch
391 return _callcatch(ui, _runcatchfunc)
392 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 332, in _callcatch
393 return scmutil.callcatch(ui, func)
394 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/scmutil.py", line 154, in callcatch
395 return func()
396 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 314, in _runcatchfunc
397 return _dispatch(req)
398 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 918, in _dispatch
399 cmdpats, cmdoptions)
400 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 673, in runcommand
401 ret = _runcommand(ui, options, cmd, d)
402 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 926, in _runcommand
403 return cmdfunc()
404 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/dispatch.py", line 915, in <lambda>
405 d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
406 File "/tmp/hgtests.NSvQmE/install/lib/python/mercurial/util.py", line 1195, in check
407 return func(*args, **kwargs)
408 File "/home/foobar/repo/mutable-history/hgext3rd/evolve/evolvecmd.py", line 1147, in evolve
409 evolvestate['replacements'][ctx.node()] = node
410 File "/home/foobar/repo/mutable-history/hgext3rd/evolve/state.py", line 49, in __getitem__
411 return self.opts[key]
412 KeyError: 'replacements'
413 [1]