I am using the svn log --xml response to look at the changes for a particular revision. But in case of an invalid revision or path, I want to just to get a blank but valid xml response. Is it possible to do that?
So instead of this:
<?xml version="1.0"?>
<log>
svn: Unable to find repository location for 'http://subversion.ny.jpmorgan.com /svn/repos/IM_RPS_CORE/rps_deploy_tools_content_test/branches/rol-201106-content-test' in revision 1556
I could get:
<?xml version="1.0"?>
<log>
</log>
Thanks!
No can do.
However, if you check the exit status code of your
svn logcommand, you can handle the issue yourself. For example, in a Bash shell script: