Not able to send error msg from post-commit hook to svn client for version property

satheesh
satheesh
Hi,  We are using post-commit.bat to send error message to the svn client(Ex: TortoiseSVN) if version property is applied on any of the folder or file. but not able to send the error msg for applying version property to any file or folder.  post-commit.bat   echo "Error: Commit is not allowed" >&2  exit 1  Able to send error message for adding file and creating folder...   Thanks,...

Last updated

andyl
andyl
That's correct, you can't.    And if used as you describe, it would be pointless. Post-commit fires after the transaction has been committed, so the commit that "isn't allowed" has already happened at this point.    If you need to communicate to users ni post-commit, it has to be done via RSS (assuming they're subscribed), email or some other asynchronous method.

1-2 of 2

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.