Patchwork D3817: tests: add test of uncommit with default phase as secret

login
register
mail settings
Submitter phabricator
Date June 21, 2018, 12:44 p.m.
Message ID <6231dc7eb5ddcca88124d4052abe984f@localhost.localdomain>
Download mbox | patch
Permalink /patch/32358/
State Not Applicable
Headers show

Comments

phabricator - June 21, 2018, 12:44 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa6addfd64507: tests: add test of uncommit with default phase as secret (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3817?vs=9233&id=9246

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

AFFECTED FILES
  tests/test-uncommit.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-uncommit.t b/tests/test-uncommit.t
--- a/tests/test-uncommit.t
+++ b/tests/test-uncommit.t
@@ -278,6 +278,13 @@ 
   12: draft
   $ hg commit -m 'update ab again'
 
+Phase is preserved
+
+  $ hg uncommit --keep --config phases.new-commit=secret
+  $ hg phase -r .
+  15: draft
+  $ hg commit --amend -m 'update ab again'
+
 Uncommit with public parent
 
   $ hg phase -p "::.^"
@@ -294,7 +301,7 @@ 
   $ hg status
   A xyz
   $ hg phase -r .
-  16: draft
+  18: draft
   $ hg phase -r ".^"
   12: public