Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 22679:aa8ecc199892
tag: only check the status of .hgtags
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 02 Oct 2014 18:38:10 -0500 |
parents | bf0b5bfc24b9 |
children | 8c65cc0f3c6b |
comparison
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 |