SVN-文件工作副本锁定和存储库文件锁定之间的区别
如果我锁定已下载的工作副本中的文件和存储库中的同一文件有什么区别。语法是:
svn lock TARGET
所以目标可以是存储库中的文件和工作副本中的文件的 URL。
两种方式有什么区别?
What is the difference if I lock the file in the working copy that I have downloaded and the same file in the repository. The syntax is :
svn lock TARGET
So target can be URL for the file in repository and file in the working copy.
What is the difference in both ways?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过 svn lock 命令锁定文件将始终将其锁定在存储库中。
如果您使用“工作副本中的文件”语法(例如
svn lock readme.txt
),那么您只能从该特定工作副本提交该文件。如果您使用“存储库中的 URL”语法 (
svn lock http://myrepo/svn/myproject /readme.txt
),在锁定解除之前,无法从任何工作副本提交对该文件的更改。有关详细信息,请参阅 svn 书籍:http://svnbook。 red-bean.com/en/1.7/svn.advanced.locking.html
Locking a file through the
svn lock
command will always lock it in the repository.If you use the 'file in your working copy' syntax (e.g.
svn lock readme.txt
), then you can only commit that file from that particular working copy.If you use the 'URL in repository' syntax (
svn lock http://myrepo/svn/myproject/readme.txt
), changes to that file can not be committed from any working copy until the lock is removed.For more information, see the svn book: http://svnbook.red-bean.com/en/1.7/svn.advanced.locking.html