# HG changeset patch # User Matt Mackall # Date 2014-10-02 23:50:41 # Node ID f1872fdc1c3c372fd0e8d44fdd27fccd5d8b52aa # Parent 9c89ac99690e42c2e51438eb85e9f8d4fea8cf1e gpg: use an abort hint and don't mention --force diff --git a/hgext/gpg.py b/hgext/gpg.py --- a/hgext/gpg.py +++ b/hgext/gpg.py @@ -256,9 +256,8 @@ def sign(ui, repo, *revs, **opts): if not opts["force"]: msigs = match.exact(repo.root, '', ['.hgsigs']) if util.any(repo.status(match=msigs, unknown=True, ignored=True)): - raise util.Abort(_("working copy of .hgsigs is changed " - "(please commit .hgsigs manually " - "or use --force)")) + raise util.Abort(_("working copy of .hgsigs is changed "), + hint=_("please commit .hgsigs manually")) sigsfile = repo.wfile(".hgsigs", "ab") sigsfile.write(sigmessage)