util: make walkrepos() return .hg/patches if present
authorPeter Arrenbrecht <peter.arrenbrecht@gmail.com>
Thu, 21 Feb 2008 20:56:06 +0100
changeset 6166 f857eac30cd5
parent 6165 0d36de68669c
child 6167 f53b9a383476
util: make walkrepos() return .hg/patches if present
mercurial/util.py
--- a/mercurial/util.py	Fri Feb 22 21:58:15 2008 +0100
+++ b/mercurial/util.py	Thu Feb 21 20:56:06 2008 +0100
@@ -1709,6 +1709,9 @@
         if '.hg' in dirs:
             dirs[:] = [] # don't descend further
             yield root # found a repository
+            qroot = os.path.join(root, '.hg', 'patches')
+            if os.path.exists(os.path.join(qroot, '.hg')):
+                yield qroot # we have a patch queue repo here
 
 _rcpath = None