Mercurial > hg
changeset 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 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Oct 02 18:37:12 2014 -0500 +++ b/mercurial/localrepo.py Thu Oct 02 18:38:10 2014 -0500 @@ -574,10 +574,10 @@ date: date tuple to use if committing''' if not local: - for x in self.status(unknown=True, ignored=True): - if '.hgtags' in x: - raise util.Abort(_('working copy of .hgtags is changed ' - '(please commit .hgtags manually)')) + m = matchmod.exact(self.root, '', ['.hgtags']) + if util.any(self.status(match=m, unknown=True, ignored=True)): + raise util.Abort(_('working copy of .hgtags is changed ' + '(please commit .hgtags manually)')) self.tags() # instantiate the cache self._tag(names, node, message, local, user, date, editor=editor)