如何列出深度嵌套的 SVN 存储库中的所有分支。我试过
svn ls %svn-url-to-branch-folder%
但它也提供了文件和文件夹列表。
我的 SVN 存储库中有以下分支结构
所以我需要获取带有路径的分支列表(不是分支内的文件/文件夹),例如
请您参考如下方法:
您需要添加 --depth 选项
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.