Patchwork D5552: tests: add test for warning on histedit with tagged commits

login
register
mail settings
Submitter phabricator
Date Jan. 13, 2019, 2:08 a.m.
Message ID <fea1a7d4170dcbebb6cbe32c7b72e8e1@localhost.localdomain>
Download mbox | patch
Permalink /patch/37692/
State Not Applicable
Headers show

Comments

phabricator - Jan. 13, 2019, 2:08 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG172296c6db91: tests: add test for warning on histedit with tagged commits (authored by navaneeth.suresh, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D5552?vs=13134&id=13188#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5552?vs=13134&id=13188

REVISION DETAIL
  https://phab.mercurial-scm.org/D5552

AFFECTED FILES
  tests/test-histedit-edit.t

CHANGE DETAILS




To: navaneeth.suresh, durin42, #hg-reviewers
Cc: yuja, mercurial-devel

Patch

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,24 @@ 
   #  f, fold = use commit, but combine it with the one above
   #  r, roll = like fold, but discard this commit's description and date
   #
+
+  $ cd ..
+
+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
+  $ 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]
+  $ cd ..