mercurial/util.py
changeset 7495 90487273f59c
parent 7473 5185a24ce04e
parent 7494 85dc88630beb
child 7535 9a962209dc28
equal deleted inserted replaced
7493:518afef5e350 7495:90487273f59c
  1899     if (seen_dirs is None) and followsym:
  1899     if (seen_dirs is None) and followsym:
  1900         seen_dirs = []
  1900         seen_dirs = []
  1901         _add_dir_if_not_there(seen_dirs, path)
  1901         _add_dir_if_not_there(seen_dirs, path)
  1902     for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler):
  1902     for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler):
  1903         if '.hg' in dirs:
  1903         if '.hg' in dirs:
  1904             dirs.remove('.hg') # don't recurse inside the .hg directory
  1904             dirs[:] = [] # don't descend further
  1905             yield root # found a repository
  1905             yield root # found a repository
  1906             qroot = os.path.join(root, '.hg', 'patches')
  1906             qroot = os.path.join(root, '.hg', 'patches')
  1907             if os.path.isdir(os.path.join(qroot, '.hg')):
  1907             if os.path.isdir(os.path.join(qroot, '.hg')):
  1908                 yield qroot # we have a patch queue repo here
  1908                 yield qroot # we have a patch queue repo here
  1909         elif followsym:
  1909         elif followsym: