This leads me to believe that SQL Developer is not properly passing parameters to at least the pre-commit hook trigger. Note that the error output: Repository argument requiredĭisplayed in the stack trace is the error text generated by the svnlook log command when no additional arguments are passed to it. Svn: 'pre-commit' hook failed with error output:Īt .(AbstractJhlClientAdapter.java:274)Īt .op.SVNOperationCommit.invokeCommit(SVNOperationCommit.java:206)Īt .op.SVNOperationCommit.invokeCommandImpl(SVNOperationCommit.java:72)Īt .op.AbstractSVNOperation.mav$invokeCommandImpl(AbstractSVNOperation.java:46)Īt .op.AbstractSVNOperation$1.doCommitOperation(AbstractSVNOperation.java:105)Īt .VCSDialogCommitter$1.run(VCSDialogCommitter.java:82)Ĭaused by: .ClientException: svn: Commit failed (details follow):Īt .JavaHLObjectFactory.throwException(JavaHLObjectFactory.java:435)Īt .(SVNClientImpl.java:1311)Īt .(SVNClientImpl.java:498)Īt .(AbstractJhlClientAdapter.java:268)Ĭaused by: .SVNException: svn: Commit failed (details follow):Īt .internal.wc.SVNErrorManager.error(SVNErrorManager.java:55)Īt .internal.wc.SVNErrorManager.error(SVNErrorManager.java:40)Īt .wc.SVNCommitClient.doCommit(SVNCommitClient.java:582)Īt .wc.SVNCommitClient.doCommit(SVNCommitClient.java:549)Īt .(SVNClientImpl.java:496) When this hook fails it yeilds the following Exception Stack Trace in SQL Developer: .SVNClientException: .ClientException: svn: Commit failed (details follow): This hook script works perfectly from command line svn and TortoiseSVN However, neither the first line which should log the hook calls parameters, nor the second line wich should test for the presence of a comment work from SQL Developer, and without the final exit statement all commits succeed even when they should fail. The final line just ensures that the hook fails for testing purposes. When committing a change to the repository the second line in this pre-commit hook should prevent commits without comments from being committed. I found that subversion does offer some kind of wat to write an commit. hook idea because we use subversive plugin to checkin. Svnlook log -t %2 %1 | grep ] ||(echo Log Entry Required >
0 Comments
Leave a Reply. |