diff tests/test-touch.t @ 4446:8232bddf543a stable

touch: use action "touch", not "<function touch at ...>", in precheck I just got this message: abort: cannot <function touch at 0x7fde174b69b0> public changesets: f177c51ae98f It has been this way since 1b7b9acda2a9 (touch: use precheck to validate revision, 2017-07-23).
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 25 Mar 2019 15:45:11 -0700
parents 1e103c7f7663
children d70db7e455dc 30a544904238
line wrap: on
line diff
--- 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