mercurial/commands.py
changeset 630 a58af3932cee
parent 628 8d7f6e68828a
child 632 8b8f710bb658
equal deleted inserted replaced
629:2fdf3b1659b9 630:a58af3932cee
   644         regexp = r'%s(?:%s)%s' % (
   644         regexp = r'%s(?:%s)%s' % (
   645             head,
   645             head,
   646             '|'.join([fnmatch.translate(os.path.normpath(os.path.normcase(p)))[:-1]
   646             '|'.join([fnmatch.translate(os.path.normpath(os.path.normcase(p)))[:-1]
   647                       for p in pats]),
   647                       for p in pats]),
   648             tail)
   648             tail)
   649         print regexp
       
   650         return re.compile(regexp)
   649         return re.compile(regexp)
   651     exclude = compile(opts['exclude'], on_empty = False)
   650     exclude = compile(opts['exclude'], on_empty = False)
   652     include = compile(opts['include'])
   651     include = compile(opts['include'])
   653     pat = compile([os.path.normcase(p) for p in pats], head = '', tail = '$')
   652     pat = compile([os.path.normcase(p) for p in pats], head = '', tail = '$')
   654     end = '\n'
   653     end = '\n'