comparison mercurial/util.py @ 6267:d036ea711140

Check for patches repo with os.path.isdir not os.path.exists
author Eric Hopper <hopper@omnifarious.org>
date Sun, 02 Mar 2008 08:51:02 -0800
parents c7253d1a774e
children c93b6c0e6e84
comparison
equal deleted inserted replaced
6266:9f76df0edb7d 6267:d036ea711140
1711 for root, dirs, files in os.walk(path, onerror=errhandler): 1711 for root, dirs, files in os.walk(path, onerror=errhandler):
1712 if '.hg' in dirs: 1712 if '.hg' in dirs:
1713 dirs[:] = [] # don't descend further 1713 dirs[:] = [] # don't descend further
1714 yield root # found a repository 1714 yield root # found a repository
1715 qroot = os.path.join(root, '.hg', 'patches') 1715 qroot = os.path.join(root, '.hg', 'patches')
1716 if os.path.exists(os.path.join(qroot, '.hg')): 1716 if os.path.isdir(os.path.join(qroot, '.hg')):
1717 yield qroot # we have a patch queue repo here 1717 yield qroot # we have a patch queue repo here
1718 1718
1719 _rcpath = None 1719 _rcpath = None
1720 1720
1721 def os_rcpath(): 1721 def os_rcpath():