# HG changeset patch # User Martin von Zweigbergk # Date 1553553911 25200 # Node ID 8232bddf543a2cd3818ee029ed7a0bab949a93e8 # Parent 0f2305921e4d9b64a827de30df71e8e03104e332 touch: use action "touch", not "", in precheck I just got this message: abort: cannot public changesets: f177c51ae98f It has been this way since 1b7b9acda2a9 (touch: use precheck to validate revision, 2017-07-23). diff -r 0f2305921e4d -r 8232bddf543a CHANGELOG --- a/CHANGELOG Mon Mar 25 15:44:44 2019 -0700 +++ b/CHANGELOG Mon Mar 25 15:45:11 2019 -0700 @@ -7,6 +7,7 @@ * split: preserve phases (issue6048) * evolve: fix an recoverable state (issue6053) * prune: fix error message when pruning public changesets + * touch: fix error message when touching public changesets 8.4.0 -- 2019-12-22 ------------------- diff -r 0f2305921e4d -r 8232bddf543a hgext3rd/evolve/cmdrewrite.py --- a/hgext3rd/evolve/cmdrewrite.py Mon Mar 25 15:44:44 2019 -0700 +++ b/hgext3rd/evolve/cmdrewrite.py Mon Mar 25 15:45:11 2019 -0700 @@ -1334,7 +1334,7 @@ ui.write_err('no revision to touch\n') return 1 if not duplicate: - rewriteutil.precheck(repo, revs, touch) + rewriteutil.precheck(repo, revs, 'touch') tmpl = utility.shorttemplate displayer = compat.changesetdisplayer(ui, repo, {'template': tmpl}) wlock = lock = tr = None diff -r 0f2305921e4d -r 8232bddf543a tests/test-touch.t --- 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