Reputation: 713
How I can list all branches in SVN repo which are nested deeply. I tried
svn ls %svn-url-to-branch-folder%
But it gives list of files and folders as well.
I have following branch structure in my SVN repo
So I need to get branch list with path (Not files/folder inside branches) e.g.
Upvotes: 8
Views: 31358
Reputation: 3266
You need to add the --depth option
svn ls http://snvServer/Project/branches/ --depth immediates
--depth empty: Include only the immediate target of the operation, not any of its file or directory children.
--depth files: Include the immediate target of the operation and any of its immediate file children.
--depth immediates: Include the immediate target of the operation and any of its immediate file or directory children. The directory children will themselves be empty.
--depth infinity: Include the immediate target, its file and directory children, its children's children, and so on to full recursion.
Upvotes: 12