开发者

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

开发者 https://www.devze.com 2022-12-30 19:50 出处:网络
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 (

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 开发者_C百科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.


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).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号