Search code examples
svnemacselisp

Emacs & DSVN: change default commit message


I am currently using DSVN in emacs 24.1.50.1 on OSX, with svn v 1.7.8.

When I run svn-status from emacs, mark several files and press 'c' to commit I find myself in the svn commit buffer that is pre-filled with the following:

Summary:
Author:

I have a different convention that I would like to follow, how can I change this default commit message?

I've looked through the source for svn-commit but I don't see where this message is coming from. This thread seems relevant but I'm not sure what hooks I might use to leverage the information presented there.

Ideally I would like to be able to determine the message dynamically based on the repository url for the current project, but even just a hint for how to change the message to something static would be great. How might I go about changing this message?

All help appreciated.


Solution

  • If you cannot locate the source in your emacs package, chances are this template comes from svn itself.

    Take a look to this, you can do a quick test to check if this would be the case for you.

    If so, you could use setenv from emacs to recreate the trick described there, or defadvice svn-commit to replace the buffer contents with your own template, as you prefer (the later solution would work even if the template was not coming from svn)