comparison mercurial/localrepo.py @ 25149:3f0744eeaeaf

cleanup: use __builtins__.any instead of util.any any() is available in all Python versions we support now.
author Augie Fackler <augie@google.com>
date Sat, 16 May 2015 14:30:07 -0400
parents 49c583ca48c4
children bf6b476f3b36
comparison
equal deleted inserted replaced
25148:3b5cd6f13dcc 25149:3f0744eeaeaf
625 625
626 date: date tuple to use if committing''' 626 date: date tuple to use if committing'''
627 627
628 if not local: 628 if not local:
629 m = matchmod.exact(self.root, '', ['.hgtags']) 629 m = matchmod.exact(self.root, '', ['.hgtags'])
630 if util.any(self.status(match=m, unknown=True, ignored=True)): 630 if any(self.status(match=m, unknown=True, ignored=True)):
631 raise util.Abort(_('working copy of .hgtags is changed'), 631 raise util.Abort(_('working copy of .hgtags is changed'),
632 hint=_('please commit .hgtags manually')) 632 hint=_('please commit .hgtags manually'))
633 633
634 self.tags() # instantiate the cache 634 self.tags() # instantiate the cache
635 self._tag(names, node, message, local, user, date, editor=editor) 635 self._tag(names, node, message, local, user, date, editor=editor)