0

I'm using WSO2 Carbon along with SVN DepSync setup like the link below describes: https://docs.wso2.com/display/Cluster/SVN-based+Deployment+Synchronizer

I wonder if there's a way to configure the carbon.xml to pass a comment along with every commit.

similar to this:

svn commit -m "pass this comment"

The documentation for carbon.xml doesn't mention an element for any kind of comment.

Abimaran Kugathasan
  • 31,165
  • 11
  • 75
  • 105
  • what is the use case of passing commit message? – lakshman Mar 02 '16 at 15:20
  • 1
    @user6008415 : Do you think, is it scalable for each changes, providing commit message? What you are going to do with these commit messages? – Abimaran Kugathasan Mar 02 '16 at 16:35
  • We have a pre commit hook in our SVN requireing a particular set of information before the commit is accepted. Instead of changing the code in SVN a quickfix would be to set the string in a configuration file in WSO2. – user6008415 Mar 03 '16 at 07:40

1 Answers1

0

AFAIK there is no way for you to put your custom message with depsync in WSO2. You can check the code segment here https://github.com/wso2/carbon-commons/blob/master/components/deployment-synchronizer/org.wso2.carbon.deployment.synchronizer.subversion/src/main/java/org/wso2/carbon/deployment/synchronizer/subversion/SVNBasedArtifactRepository.java#L372

There message is set as "Commit initiated by deployment synchronizer". As mentioned in comments, having custom svn commit messages are not scalable