0

My svn server (Windows system) is VisualSVN, my svn client is TortoiseSVN.

I added bellow code in post-commit.cmd of VisualSVN.

echo (ignore "Error 99", which is a fake error, commit is already completed) SOME_OTHER_INFO 1>&2!
exit 99

Then it shows an info when I commit in svn client but I want the message not to show as an "error". How could I do this?

enter image description here

2
  • Not an svn-user myself but I guess that it is showing up as error because you are writing that into stderr. I guess that you could avoid that by writing into stdout instead. Commented Apr 29 at 7:01
  • I don't think this is possible. You need a non-zero exit code for Subversion to pick up the script's stderr (not stdout). Might be a XY problem: why annoy your developers by showing a pointless status message? Using a post-commit hook to post an announcement or trigger a CI/CD pipeline seems like a good idea, not to show a message to the committer. Commented Apr 29 at 13:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.