简体   繁体   English

无法使用SVN锁定目录中的所有文件

[英]Cannot lock all files in directory using SVN

Is there an easy way to lock all files in directory for svn. 有没有一种简单的方法可以将svn目录中的所有文件锁定。 As I know we cannot lock all directory? 据我所知,我们不能锁定所有目录吗?

You can lock a folder hierarchy on the server side by committing an svn property like this: 您可以通过提交svn属性来锁定服务器端的文件夹层次结构如下所示:

svn propset lock TRUE trunk/project/folder
svn commit -m "Files locked for debugging" trunk/project/folder

You can release the lock using svn propdel . 您可以使用svn propdel释放锁定。

In source repository, contents are stored in files, directory(Folder) is a structure/Path to actual contents/files. 在源存储库中,内容存储在文件中,directory(Folder)是实际内容/文件的结构/路径。 if you rename any directory, you can understand more on this. 如果您重命名任何目录,则可以了解更多信息。

Generally, folder/directory is a collection of files. 通常,文件夹/目录是文件的集合。

So if you want to lock a root folder, then you follow given procedure. 因此,如果要锁定根文件夹,请按照给定的步骤进行操作。 1. Select the root directory you wish to lock, then perform right click 2. Then click TortoiseSVN->GetLock..., so dialog will be displayed with all available files under the directory you selected, including files under child directory. 1.选择要锁定的根目录,然后右键单击2.然后单击TortoiseSVN-> GetLock ...,这样将显示对话框,其中包含所选目录下的所有可用文件,包括子目录下的文件。

You can select whatever files you wish to lock, Please not Locking file means, you are locking the content in path specified. 您可以选择要锁定的任何文件,“请不要锁定文件”表示您正在锁定指定路径中的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM