I need to get svn_deff from two versions in php

I tried using this svn diff -r BEGIN_REVISION:END_REVISIONin terminal, I get results, but I need a solution in php. I tried this code

$svn_blame_array=exec("svn diff -r 125:126 --username abc --password abc753 ",$ret); 
print_r ( $ret );

in php. The following error occurred

"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"

Can anyone help me?

+5
source share
1 answer

This error appears because the command is svnrun as a user who starts the web server process (often called www-data). By default, subversion will attempt to cache authentication data in the ~/.subversionuser directory (which is /var/wwwfor the web server user on your computer).

If you do not want this, you can try adding a parameter --no-auth-cacheto your command.

--non-interactive.

+4

All Articles