# HG changeset patch # User Eric Hopper # Date 2008-03-02 16:51:02 # Node ID d036ea7111405d03775cf50377bfeedf027a2ee9 # Parent 9f76df0edb7da94e381f9b84e3d025f1c89fabdd Check for patches repo with os.path.isdir not os.path.exists diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -1713,7 +1713,7 @@ def walkrepos(path): 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')): + if os.path.isdir(os.path.join(qroot, '.hg')): yield qroot # we have a patch queue repo here _rcpath = None