customized SVN depth value

2019-08-05 10:22发布

问题:

I need a list of all folder names under a branch in SVN. But not upto INFINITE depth.. Say i need upto 5 level of depth..

Is there any way to specify customized SVNdepth value? The problem in getting a immediate folder list and iterating is, each folder contains hundreds of sub-folder.

command used :
svn ls --depth infinity http://sample.com/repository/pag/branches/dev/
Instead of infinity can we use customized value(numeric value)? if so how?

Thanks

回答1:

Unfortunately numeric depths are not supported. You should call directory listing recursively for every directory.