开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜