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