mercurial/localrepo.py
changeset 22679 aa8ecc199892
parent 22678 bf0b5bfc24b9
child 22680 8c65cc0f3c6b
equal deleted inserted replaced
22678:bf0b5bfc24b9 22679:aa8ecc199892
   572         user: name of user to use if committing
   572         user: name of user to use if committing
   573 
   573 
   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             for x in self.status(unknown=True, ignored=True):
   577             m = matchmod.exact(self.root, '', ['.hgtags'])
   578                 if '.hgtags' in x:
   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                                    '(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