开发者

How do I know WHEN a file was locked in SVN?

开发者 https://www.devze.com 2023-02-14 11:43 出处:网络
I would like to know when somebody locked a file in an SVN repository, to tell if he is really using the locked file (according to team policies) or forgot to unlock开发者_开发知识库 the file.

I would like to know when somebody locked a file in an SVN repository, to tell if he is really using the locked file (according to team policies) or forgot to unlock开发者_开发知识库 the file.

Log shows only latest modifications, not actions such as locks.

I'm using both Eclipse SVN and TortoiseSVN


There are two ways :

  • svn status -u file
  • svn info file

where file is the file you want to check whether it is locked.


Here is a link to the "Version Control With Subversion" book that discusses this exact thing:

http://svnbook.red-bean.com/nightly/en/svn.advanced.locking.html#svn.advanced.locking.discovery

0

精彩评论

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