D5309: match: remove obsolete catching of OverflowError

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Thu Nov 29 06:59:47 EST 2018


yuja added a comment.


  Queued, thanks.
  
  >   regex = '(?:%s)' % '|'.join([_regex(k, p, globsuffix)
  >                                for (k, p, s) in kindpats])
  > 
  > - if len(regex) > 20000:
  > - raise OverflowError
  > - return regex, _rematcher(regex)
  > - except OverflowError: +        if len(regex) < 20000: +            return regex, _rematcher(regex)
  
  `s/</<=/` to make sure no behavior changed.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5309

To: martinvonz, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list