Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 13133:c1492615cdee stable
tag: don't check .hgtags status if --local passed
Local tags don't create a commit, so we don't need to check the status
of .hgtags.
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Mon, 13 Dec 2010 21:20:30 -0600 |
parents | 417f3c27983b |
children | 6320101a638c |
comparison
equal
deleted
inserted
replaced
13128:dbc546811dd6 | 13133:c1492615cdee |
---|---|
294 | 294 |
295 user: name of user to use if committing | 295 user: name of user to use if committing |
296 | 296 |
297 date: date tuple to use if committing''' | 297 date: date tuple to use if committing''' |
298 | 298 |
299 for x in self.status()[:5]: | 299 if not local: |
300 if '.hgtags' in x: | 300 for x in self.status()[:5]: |
301 raise util.Abort(_('working copy of .hgtags is changed ' | 301 if '.hgtags' in x: |
302 '(please commit .hgtags manually)')) | 302 raise util.Abort(_('working copy of .hgtags is changed ' |
303 '(please commit .hgtags manually)')) | |
303 | 304 |
304 self.tags() # instantiate the cache | 305 self.tags() # instantiate the cache |
305 self._tag(names, node, message, local, user, date) | 306 self._tag(names, node, message, local, user, date) |
306 | 307 |
307 def tags(self): | 308 def tags(self): |