开发者

"Not under version control" error for force command in subversion

开发者 https://www.devze.com 2022-12-14 02:15 出处:网络
HI All, When iam executing svn force command given belowon some path, iam getting the below error Please do let me know how to resolve this issue

HI All,

When iam executing svn force command given below on some path, iam getting the below error Please do let me know how to resolve this issue Command:

set SVN_PATH开发者_JAVA技巧=C:\main\test
svn lock [--force] "%SVN_PATH%" -m "lock before commit"

Error:

svn: 'C:\main\test\[--force]' is not under version control


svn lock [--force] "%SVN_PATH%" -m "lock before commit"

should be:

svn lock --force "%SVN_PATH%" -m "lock before commit"

The square brackets area documentation convention indicating optionality. But frankly, if you didn't know that I wonder if you understand why you might use the lock command.


You shouldn’t include the square brackets in the command, they are just to indicate that the --force argument is optional.

But why are you locking the repository?

0

精彩评论

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