mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
Check for patches repo with os.path.isdir not os.path.exists
This commit is contained in:
parent
e42ba91ec9
commit
798a7f0917
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user