mercurial/dirstate.py
branchstable
changeset 13339 22167be007ed
parent 13233 0b30e6148ec5
child 13343 69e69b131458
equal deleted inserted replaced
13336:5fc7c84ed9b0 13339:22167be007ed
   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 files[i] < 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 i < len(files) and files[i].startswith(subpath):
   510                 del files[i]
   510                 del files[i]
   511             j += 1
   511             j += 1
   512 
   512 
   513         if not files or '.' in files:
   513         if not files or '.' in files:
   514             files = ['']
   514             files = ['']