mercurial/match.py
changeset 43117 8ff1ecfadcd1
parent 43106 d783f945a701
child 43485 6ff196d2553b
child 43721 bfbbf48d51e8
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
    64 
    64 
    65     for kind, pat, source in kindpats:
    65     for kind, pat, source in kindpats:
    66         if kind == b'set':
    66         if kind == b'set':
    67             if ctx is None:
    67             if ctx is None:
    68                 raise error.ProgrammingError(
    68                 raise error.ProgrammingError(
    69                     b"fileset expression with no " b"context"
    69                     b"fileset expression with no context"
    70                 )
    70                 )
    71             matchers.append(ctx.matchfileset(pat, badfn=badfn))
    71             matchers.append(ctx.matchfileset(pat, badfn=badfn))
    72 
    72 
    73             if listsubrepos:
    73             if listsubrepos:
    74                 for subpath in ctx.substate:
    74                 for subpath in ctx.substate:
   544 
   544 
   545 
   545 
   546 def normalizerootdir(dir, funcname):
   546 def normalizerootdir(dir, funcname):
   547     if dir == b'.':
   547     if dir == b'.':
   548         util.nouideprecwarn(
   548         util.nouideprecwarn(
   549             b"match.%s() no longer accepts " b"'.', use '' instead." % funcname,
   549             b"match.%s() no longer accepts '.', use '' instead." % funcname,
   550             b'5.1',
   550             b'5.1',
   551         )
   551         )
   552         return b''
   552         return b''
   553     return dir
   553     return dir
   554 
   554