mercurial/localrepo.py
changeset 7814 4421abf8c85d
parent 7803 6d99ff7b79b5
child 7848 89e05c02a4af
equal deleted inserted replaced
7813:076401cf2b63 7814:4421abf8c85d
   225         for x in self.status()[:5]:
   225         for x in self.status()[:5]:
   226             if '.hgtags' in x:
   226             if '.hgtags' in x:
   227                 raise util.Abort(_('working copy of .hgtags is changed '
   227                 raise util.Abort(_('working copy of .hgtags is changed '
   228                                    '(please commit .hgtags manually)'))
   228                                    '(please commit .hgtags manually)'))
   229 
   229 
       
   230         self.tags() # instantiate the cache
   230         self._tag(names, node, message, local, user, date)
   231         self._tag(names, node, message, local, user, date)
   231 
   232 
   232     def tags(self):
   233     def tags(self):
   233         '''return a mapping of tag to node'''
   234         '''return a mapping of tag to node'''
   234         if self.tagscache:
   235         if self.tagscache: