mercurial/dirstate.py
branchstable
changeset 13233 0b30e6148ec5
parent 12907 e255a5dc29e6
child 13234 0935ff767285
child 13339 22167be007ed
equal deleted inserted replaced
13232:b25b5ad0cca8 13233:0b30e6148ec5
   501         files = sorted(match.files())
   501         files = sorted(match.files())
   502         subrepos.sort()
   502         subrepos.sort()
   503         i, j = 0, 0
   503         i, j = 0, 0
   504         while i < len(files) and j < len(subrepos):
   504         while i < len(files) and j < len(subrepos):
   505             subpath = subrepos[j] + "/"
   505             subpath = subrepos[j] + "/"
   506             if not files[i].startswith(subpath):
   506             if files[i] < subpath:
   507                 i += 1
   507                 i += 1
   508                 continue
   508                 continue
   509             while files and files[i].startswith(subpath):
   509             while files and files[i].startswith(subpath):
   510                 del files[i]
   510                 del files[i]
   511             j += 1
   511             j += 1