when updating a whole project's root, how to exclude svn externals from being updated?

*爱你&永不变心* 提交于 2019-12-06 21:46:10

问题


Is there a way to exclude all svn externals when doing a recursive update?

Is there a way to exclude only 1 of all of the svn externals when doing a recursive update?

Basically I'd like to cut down the svn update time, and a couple of the SVN externals that I have will just about never get updated.


回答1:


Yes, there is an option for this (to ignore all):

> svn update --ignore-externals

I don't know of any option to specifically ignore one or some externals while updating the rest.




回答2:


If you are using TortoiseSVN, you can do the same thing as "svn update --ignore-externals". Use the "Update to revision..." menu item instead of the normal "Update". On that dialog you have a "Omit Externals" checkbox.




回答3:


I'd recommend changing the default context menu items to have Update to Revision on the main context menu.

In the TortoiseSVN settings, go to 'Look and Feel', then uncheck items you want main folder context menu and check items you want in the submenu.

I have the following unchecked.

  • Checkout
  • Commit
  • Show Log
  • Check for modifications
  • Update to Revision

The great thing about having all these items is that they only show up when relevant, ie, when the directory is a working copy. So for a non SVN folder you will just get Checkout.



来源:https://stackoverflow.com/questions/172018/when-updating-a-whole-projects-root-how-to-exclude-svn-externals-from-being-up

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