# HG changeset patch # User Matt Mackall # Date 2014-10-02 23:39:57 # Node ID 8c65cc0f3c6bb9fe4cdb3923be498b2afb02b9d3 # Parent aa8ecc199892346820f5ba35a1803d7b6f24d93d tag: use an abort hint diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -576,8 +576,8 @@ class localrepository(object): if not local: m = matchmod.exact(self.root, '', ['.hgtags']) if util.any(self.status(match=m, unknown=True, ignored=True)): - raise util.Abort(_('working copy of .hgtags is changed ' - '(please commit .hgtags manually)')) + raise util.Abort(_('working copy of .hgtags is changed'), + hint=_('please commit .hgtags manually')) self.tags() # instantiate the cache self._tag(names, node, message, local, user, date, editor=editor) diff --git a/tests/test-tag.t b/tests/test-tag.t --- a/tests/test-tag.t +++ b/tests/test-tag.t @@ -36,7 +36,8 @@ specified) $ echo foo >> .hgtags $ hg tag "bleah2" - abort: working copy of .hgtags is changed (please commit .hgtags manually) + abort: working copy of .hgtags is changed + (please commit .hgtags manually) [255] $ hg revert .hgtags