I am working on a python script to export all the files added or modified in a given version in svn.
Using Popen method, calling the command line utilities.
script is working fine in my machine and when run in the realtime, wow, it throws error as following.
[shrini@cu136 tmp]# python export-files-from-svn.py
Enter the Repository URL : https://w.x.y.z./svn/repos/tools
Enter the revision no : 38
Enter the username : shrinivasan
Getting the changeset
Traceback (most recent call last):
File “export-files-from-svn.py”, line 25, in ?
change = subprocess.Popen(["svn","diff",repo,"-c" + revision,"--summarize","--username",username],stdout=subprocess.PIPE)
File “/usr/lib64/python2.4/subprocess.py”, line 543, in __init__
errread, errwrite)
File “/usr/lib64/python2.4/subprocess.py”, line 975, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
hmmm. google does not give much answer on this question.
Analysed the command and executed the command as a standalone command.
[shrini@cu136 tmp]# svn diff https://w.x.y.z/svn/repos/tools -c 38 –summarize –username shrinivasan
-bash: svn: command not found
Wow. Got the error.
SVN commandline client is not installed in the machine.
After installing the subversion commandline client, the script is working fine.
Will release the code after testing it well.






