# HG changeset patch # User Martin von Zweigbergk # Date 2020-10-16 22:05:43 # Node ID f90943d753efb6ad78d26c3027e5a42e711be1ce # Parent 7252f5237352f7c3b77fb7c3a09a10fced522b5e fix: suggest --source instead of --rev on empty revset `--source` is the recommended flag for regular users (`--rev` is available for advanced users). Differential Revision: https://phab.mercurial-scm.org/D9224 diff --git a/hgext/fix.py b/hgext/fix.py --- a/hgext/fix.py +++ b/hgext/fix.py @@ -439,7 +439,7 @@ def getrevstofix(ui, repo, opts): raise error.Abort(b'unresolved conflicts', hint=b"use 'hg resolve'") if not revs: raise error.Abort( - b'no changesets specified', hint=b'use --rev or --working-dir' + b'no changesets specified', hint=b'use --source or --working-dir' ) return revs diff --git a/tests/test-fix.t b/tests/test-fix.t --- a/tests/test-fix.t +++ b/tests/test-fix.t @@ -246,15 +246,15 @@ There is no default behavior in the abse $ hg fix abort: no changesets specified - (use --rev or --working-dir) + (use --source or --working-dir) [255] $ hg fix --whole abort: no changesets specified - (use --rev or --working-dir) + (use --source or --working-dir) [255] $ hg fix --base 0 abort: no changesets specified - (use --rev or --working-dir) + (use --source or --working-dir) [255] Fixing a public revision isn't allowed. It should abort early enough that