mercurial/util.py
changeset 9732 092bcf431562
parent 9712 18b134ef294c
child 9996 2770d03ae49f
equal deleted inserted replaced
9731:0e080d519d1b 9732:092bcf431562
  1114 
  1114 
  1115     if (seen_dirs is None) and followsym:
  1115     if (seen_dirs is None) and followsym:
  1116         seen_dirs = []
  1116         seen_dirs = []
  1117         _add_dir_if_not_there(seen_dirs, path)
  1117         _add_dir_if_not_there(seen_dirs, path)
  1118     for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler):
  1118     for root, dirs, files in os.walk(path, topdown=True, onerror=errhandler):
       
  1119         dirs.sort()
  1119         if '.hg' in dirs:
  1120         if '.hg' in dirs:
  1120             yield root # found a repository
  1121             yield root # found a repository
  1121             qroot = os.path.join(root, '.hg', 'patches')
  1122             qroot = os.path.join(root, '.hg', 'patches')
  1122             if os.path.isdir(os.path.join(qroot, '.hg')):
  1123             if os.path.isdir(os.path.join(qroot, '.hg')):
  1123                 yield qroot # we have a patch queue repo here
  1124                 yield qroot # we have a patch queue repo here