hgext/remotefilelog/remotefilelogserver.py
changeset 41676 0531dff73d0b
parent 40842 fbd053af2eda
child 42771 fdeb4c1d23d5
equal deleted inserted replaced
41675:ddbebce94665 41676:0531dff73d0b
    52                 if cap.startswith("includepattern="):
    52                 if cap.startswith("includepattern="):
    53                     includepattern = cap[len("includepattern="):].split('\0')
    53                     includepattern = cap[len("includepattern="):].split('\0')
    54                 elif cap.startswith("excludepattern="):
    54                 elif cap.startswith("excludepattern="):
    55                     excludepattern = cap[len("excludepattern="):].split('\0')
    55                     excludepattern = cap[len("excludepattern="):].split('\0')
    56 
    56 
    57             m = match.always(repo.root, '')
    57             m = match.always()
    58             if includepattern or excludepattern:
    58             if includepattern or excludepattern:
    59                 m = match.match(repo.root, '', None,
    59                 m = match.match(repo.root, '', None,
    60                     includepattern, excludepattern)
    60                     includepattern, excludepattern)
    61 
    61 
    62             changedfiles = list([f for f in changedfiles if not m(f)])
    62             changedfiles = list([f for f in changedfiles if not m(f)])
   102         oldshallow = state.shallowremote
   102         oldshallow = state.shallowremote
   103         oldmatch = state.match
   103         oldmatch = state.match
   104         oldnoflatmf = state.noflatmf
   104         oldnoflatmf = state.noflatmf
   105         try:
   105         try:
   106             state.shallowremote = True
   106             state.shallowremote = True
   107             state.match = match.always(repo.root, '')
   107             state.match = match.always()
   108             state.noflatmf = other.get('noflatmanifest') == 'True'
   108             state.noflatmf = other.get('noflatmanifest') == 'True'
   109             if includepattern or excludepattern:
   109             if includepattern or excludepattern:
   110                 state.match = match.match(repo.root, '', None,
   110                 state.match = match.match(repo.root, '', None,
   111                     includepattern, excludepattern)
   111                     includepattern, excludepattern)
   112             streamres = wireprotov1server.stream(repo, proto)
   112             streamres = wireprotov1server.stream(repo, proto)