D5552: tests: add test for warning on histedit with tagged commits
navaneeth.suresh (Navaneeth Suresh)
phabricator at mercurial-scm.org
Thu Jan 10 13:10:05 UTC 2019
navaneeth.suresh created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This is a follow-up patch to https://phab.mercurial-scm.org/D5494.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5552
AFFECTED FILES
tests/test-histedit-edit.t
CHANGE DETAILS
diff --git a/tests/test-histedit-edit.t b/tests/test-histedit-edit.t
--- a/tests/test-histedit-edit.t
+++ b/tests/test-histedit-edit.t
@@ -481,3 +481,21 @@
# f, fold = use commit, but combine it with the one above
# r, roll = like fold, but discard this commit's description and date
#
+warn the user on editing tagged commits
+ $ hg init issue4017
+ $ cd issue4017
+ $ echo > a
+ $ hg ci -Am 'add a'
+ adding a
+ $ hg tag a
+ $ hg tags
+ tip 1:bd7ee4f3939b
+ a 0:a8a82d372bb3
+ $ echo '[extensions]' >> $HGRCPATH
+ $ echo 'histedit =' >> $HGRCPATH
+ $ hg histedit
+ warning: tags associated with the given changeset will be lost after histedit.
+ do you want to continue (yN)? n
+ abort: histedit cancelled
+
+ [255]
To: navaneeth.suresh, durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list