我尝试使用这个svn diff -r BEGIN_REVISION:END_REVISION
在终端,我得到的结果,但我需要在php的解决方案。我试过这个代码
$svn_blame_array=exec("svn diff -r 125:126 --username abc --password abc753 ",$ret);
print_r ( $ret );
在php 。下面出现错误,
"You can avoid future appearances of this warning by setting the value of the 'store-plaintext-passwords' option to either 'yes' or 'no' in /var/www/.subversion/servers.
Store password unencrypted (yes/no)? svn: Can't read stdin: End of file found"
有人能帮我吗?
出现此错误,因为svn
命令是以运行webserver进程(通常称为www-data
)的用户运行的。默认情况下,subversion将尝试将身份验证数据缓存到用户的~/.subversion
目录中(对于您机器上的web服务器用户来说是/var/www
)。
如果你不想这样做,你可以尝试在你的命令中添加--no-auth-cache
选项。
您可能还想添加--non-interactive
.