mercurial/localrepo.py
changeset 25149 3f0744eeaeaf
parent 25119 49c583ca48c4
child 25185 bf6b476f3b36
equal deleted inserted replaced
25148:3b5cd6f13dcc 25149:3f0744eeaeaf
   625 
   625 
   626         date: date tuple to use if committing'''
   626         date: date tuple to use if committing'''
   627 
   627 
   628         if not local:
   628         if not local:
   629             m = matchmod.exact(self.root, '', ['.hgtags'])
   629             m = matchmod.exact(self.root, '', ['.hgtags'])
   630             if util.any(self.status(match=m, unknown=True, ignored=True)):
   630             if any(self.status(match=m, unknown=True, ignored=True)):
   631                 raise util.Abort(_('working copy of .hgtags is changed'),
   631                 raise util.Abort(_('working copy of .hgtags is changed'),
   632                                  hint=_('please commit .hgtags manually'))
   632                                  hint=_('please commit .hgtags manually'))
   633 
   633 
   634         self.tags() # instantiate the cache
   634         self.tags() # instantiate the cache
   635         self._tag(names, node, message, local, user, date, editor=editor)
   635         self._tag(names, node, message, local, user, date, editor=editor)