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.
You need to add the --depth option
svn ls http://snvServer/Project/branches/ --depth immediates
From subversion docs
--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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With