Fix file.recurse on root of svnfs repo

This fixes a condition where a file.recurse fails on the root of an
svnfs repo when the repo has a mountpoint. See #20812.
This commit is contained in:
Erik Johnson 2015-03-08 01:07:05 -06:00
parent 346f59c6e5
commit cf05fd6322

View File

@ -732,6 +732,8 @@ def _file_lists(load, form):
env_root
)
ret['files'].add(os.path.join(repo['mountpoint'], rel_fn))
if repo['mountpoint']:
ret['dirs'].add(repo['mountpoint'])
# Convert all compiled sets to lists
for key in ret:
ret[key] = sorted(ret[key])