“svn list” ignores externals

2019-07-15 18:44发布

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

2条回答
冷血范
2楼-- · 2019-07-15 19:21

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.

查看更多
戒情不戒烟
3楼-- · 2019-07-15 19:35

The solution would be to call:

svn propget svn:externals -R 

and call svn list on each external paths.

查看更多
登录 后发表回答