“svn list” ignores externals

倖福魔咒の 提交于 2019-12-24 03:49:06

问题


i have a directory called 'library' in my SVN tree which uses externals to load libs such as zend framework/smarty/....

im using a self written tool which uses "svn list" where i can select files which should be uploaded to the servers and it seems

svn list doesnt load external props and thus the library directory is empty which means i cant upload the libs using my tool

so the question: is there any option to have 'svn list' also load the externals?

thx


回答1:


The solution would be to call:

svn propget svn:externals -R 

and call svn list on each external paths.




回答2:


Just to add to Francis B.'s answer, svn list may be enhanced in a future release of SVN, if I believe this thread:

The list subcommand is excellent for writing scripts over the set of files/directories as listed in the repository, without having to fetch the source.

I have been experimenting with using svn:externals leveraging the '^' syntax for describing logical views of my repository.

However, I discovered that the svn list subcommand has no option for walking the externals. I think this would be a really useful feature to be able to list what would be checked out or exported without having to actually do it.

Introducing an option such as --no-ignore-externals would allow the default for svn list to remain the same, but still allow the option to walk the externals.



来源:https://stackoverflow.com/questions/1346673/svn-list-ignores-externals

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!