mercurial/hg.py
changeset 652 a54a1c101a9a
parent 650 2c934c7b79dc
child 656 147d2fa2d766
equal deleted inserted replaced
651:08b65d66f3e7 652:a54a1c101a9a
   505                 for pat in l:
   505                 for pat in l:
   506                     if pat != "\n":
   506                     if pat != "\n":
   507                         bigpat.append(util.pconvert(pat[:-1]))
   507                         bigpat.append(util.pconvert(pat[:-1]))
   508             except IOError: pass
   508             except IOError: pass
   509             if bigpat:
   509             if bigpat:
   510                 s = "(%s)" % (")|(".join(bigpat))
   510                 s = "(?:%s)" % (")|(?:".join(bigpat))
   511                 r = re.compile(s)
   511                 r = re.compile(s)
   512                 self.ignorefunc = r.search
   512                 self.ignorefunc = r.search
   513             else:
   513             else:
   514                 self.ignorefunc = lambda x: False
   514                 self.ignorefunc = lambda x: False
   515 
   515