mercurial/localrepo.py
changeset 6243 437eef39458d
parent 6212 e75aab656f46
child 6254 3667b6e4bbd0
equal deleted inserted replaced
6242:a375ffc2aa1b 6243:437eef39458d
   200 
   200 
   201         user: name of user to use if committing
   201         user: name of user to use if committing
   202 
   202 
   203         date: date tuple to use if committing'''
   203         date: date tuple to use if committing'''
   204 
   204 
   205         date = util.parsedate(date)
       
   206         for x in self.status()[:5]:
   205         for x in self.status()[:5]:
   207             if '.hgtags' in x:
   206             if '.hgtags' in x:
   208                 raise util.Abort(_('working copy of .hgtags is changed '
   207                 raise util.Abort(_('working copy of .hgtags is changed '
   209                                    '(please commit .hgtags manually)'))
   208                                    '(please commit .hgtags manually)'))
   210 
       
   211 
   209 
   212         self._tag(name, node, message, local, user, date)
   210         self._tag(name, node, message, local, user, date)
   213 
   211 
   214     def tags(self):
   212     def tags(self):
   215         '''return a mapping of tag to node'''
   213         '''return a mapping of tag to node'''