comparison mercurial/util.py @ 6166:f857eac30cd5

util: make walkrepos() return .hg/patches if present
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Thu, 21 Feb 2008 20:56:06 +0100
parents 09a8be3e5bfb
children e75aab656f46
comparison
equal deleted inserted replaced
6165:0d36de68669c 6166:f857eac30cd5
1707 1707
1708 for root, dirs, files in os.walk(path, onerror=errhandler): 1708 for root, dirs, files in os.walk(path, onerror=errhandler):
1709 if '.hg' in dirs: 1709 if '.hg' in dirs:
1710 dirs[:] = [] # don't descend further 1710 dirs[:] = [] # don't descend further
1711 yield root # found a repository 1711 yield root # found a repository
1712 qroot = os.path.join(root, '.hg', 'patches')
1713 if os.path.exists(os.path.join(qroot, '.hg')):
1714 yield qroot # we have a patch queue repo here
1712 1715
1713 _rcpath = None 1716 _rcpath = None
1714 1717
1715 def os_rcpath(): 1718 def os_rcpath():
1716 '''return default os-specific hgrc search path''' 1719 '''return default os-specific hgrc search path'''