tests/test-touch.t
branchstable
changeset 4446 8232bddf543a
parent 3747 1e103c7f7663
child 4513 d70db7e455dc
child 4613 30a544904238
--- a/tests/test-touch.t	Mon Mar 25 15:44:44 2019 -0700
+++ b/tests/test-touch.t	Mon Mar 25 15:45:11 2019 -0700
@@ -161,3 +161,12 @@
        rewritten(.*) as [0-9a-f]{12} using touch by test (.*) (re)
          note: testing with no successor
   
+
+Public phase
+
+  $ hg phase --public -r 2
+  $ hg touch 2
+  abort: cannot touch public changesets: * (glob)
+  (see 'hg help phases' for details)
+  [255]
+  $ hg touch --duplicate 2