diff hgext/gpg.py @ 22683:f1872fdc1c3c

gpg: use an abort hint and don't mention --force
author Matt Mackall <mpm@selenic.com>
date Thu, 02 Oct 2014 18:50:41 -0500
parents 9c89ac99690e
children 7cc77030c557
line wrap: on
line diff
--- a/hgext/gpg.py	Thu Oct 02 18:47:02 2014 -0500
+++ b/hgext/gpg.py	Thu Oct 02 18:50:41 2014 -0500
@@ -256,9 +256,8 @@
     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)