Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 22680:8c65cc0f3c6b
tag: use an abort hint
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 02 Oct 2014 18:39:57 -0500 |
parents | aa8ecc199892 |
children | 68439b154063 |
comparison
equal
deleted
inserted
replaced
22679:aa8ecc199892 | 22680:8c65cc0f3c6b |
---|---|
574 date: date tuple to use if committing''' | 574 date: date tuple to use if committing''' |
575 | 575 |
576 if not local: | 576 if not local: |
577 m = matchmod.exact(self.root, '', ['.hgtags']) | 577 m = matchmod.exact(self.root, '', ['.hgtags']) |
578 if util.any(self.status(match=m, unknown=True, ignored=True)): | 578 if util.any(self.status(match=m, unknown=True, ignored=True)): |
579 raise util.Abort(_('working copy of .hgtags is changed ' | 579 raise util.Abort(_('working copy of .hgtags is changed'), |
580 '(please commit .hgtags manually)')) | 580 hint=_('please commit .hgtags manually')) |
581 | 581 |
582 self.tags() # instantiate the cache | 582 self.tags() # instantiate the cache |
583 self._tag(names, node, message, local, user, date, editor=editor) | 583 self._tag(names, node, message, local, user, date, editor=editor) |
584 | 584 |
585 @filteredpropertycache | 585 @filteredpropertycache |