changeset 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 0d36de68669c
children f53b9a383476
files mercurial/util.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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