comparison tests/test-histedit-edit.t @ 41197:172296c6db91

tests: add test for warning on histedit with tagged commits This is a follow-up patch to 7b7e081f8954 (D5494). Differential Revision: https://phab.mercurial-scm.org/D5552
author Navaneeth Suresh <navaneeths1998@gmail.com>
date Thu, 10 Jan 2019 18:31:46 +0530
parents 4441705b7111
children 240f8e49a7bd
comparison
equal deleted inserted replaced
41196:4f675c12d083 41197:172296c6db91
479 # b, base = checkout changeset and apply further changesets from there 479 # b, base = checkout changeset and apply further changesets from there
480 # d, drop = remove commit from history 480 # d, drop = remove commit from history
481 # f, fold = use commit, but combine it with the one above 481 # f, fold = use commit, but combine it with the one above
482 # r, roll = like fold, but discard this commit's description and date 482 # r, roll = like fold, but discard this commit's description and date
483 # 483 #
484
485 $ cd ..
486
487 warn the user on editing tagged commits
488
489 $ hg init issue4017
490 $ cd issue4017
491 $ echo > a
492 $ hg ci -Am 'add a'
493 adding a
494 $ hg tag a
495 $ hg tags
496 tip 1:bd7ee4f3939b
497 a 0:a8a82d372bb3
498 $ hg histedit
499 warning: tags associated with the given changeset will be lost after histedit.
500 do you want to continue (yN)? n
501 abort: histedit cancelled
502
503 [255]
504 $ cd ..