How can I set the svn:needs-lock Subversion property through AnkhSVN plug-in with Visual Studio?

落爺英雄遲暮 提交于 2020-01-04 04:53:06

问题


I am using the AnkhSVN plug-in with Visual Studio 2008. I am using a free repository hosted on the web. I am not using a Subversion client for this repo, but managing everything with AnkhSVN plug-in (including adding solution file and project files to the new repository).

I want to add the svn:needs-lock property to these files. I wonder if I can do this task using AnkhSVN, or if I need to get another Subversion client for this purpose.


回答1:


in Visual Studio.. In Tools - Options - Source Control, you can change the plug-in value to AnkhSVN. After you do that, "subversion environment" appears in the tree under source control. Select that, then you can check "automatically lock files on change without user confirmation". I think this will accomplish what you want.




回答2:


You can add and edit Subversion properties through Ankhsvn, see the AnkhSVN Add Property documentation. However the behavior of Visual Studio varies depending on the object (solution, project, or file) selected in the Solution Explorer pane when the right mouse click menu is triggered. What is available from the Subversion sub-menu as well as the Add Properties dialog will vary depending on the object selected.

The list of svn: properties suggested by the plug-in varies depending on the object selected. While the svn:needs-lock property is suggested for an individual file, the property is not available for other objects.

In addition the Subversion menu item does not seem to be available on a right mouse click with multiple files selected (as of AnkhSVN version 2.6).



来源:https://stackoverflow.com/questions/2873732/how-can-i-set-the-svnneeds-lock-subversion-property-through-ankhsvn-plug-in-wit

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