Let SVN accept revision propchanges

The following message appears if you try to modify properties (e.g. the log message) while the propchanges hook is not enabled.

Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook

This hook is nothing else than an executable script located in repos/hooks/ that exits with 0 or 1 if defined conditions are not fulfilled. You can remove the file suffix tmpl from pre-revprop-change.tmpl1 if the template already exists or you create it from the scratch.

For Unix systems the script looks like

exit 0;

and for Windows it’s

@echo off
exit /B 0

In linux don’t forget to make your script executable with chmod 755 pre-revprop-change.

  1. On Windows the suffix shouldn’t be removed but changed from tmpl to bat instead.


  1. Janos Marki


    I forgot to add a comment to a new commit. Then I tried to do it afterwards, via the repository browser, and I got the above mentioned error message. Then within the repository (this is where in theory, should not meddle…) I found the hooks/pre-revprop-change.tmpl file and renamed it pre-revprop-change.bat. This did not really work, as the program hung on request with an empy command window. Once I closed that, I got a ton of error messages (most of them in the vein of: ‘#’ is not recognized as an internal or external command, operable program or batch file ) in a separate window. So renaming to .bat extension certainly does NOT work in this case.
    Will now attempt to create it myself… and it works (filename: pre-revprop-change.bat , content: as above under “and for Windows it’s:”. I hence suggest to remove the renaming bit, as that (probably) only works on Linux.

    Best regards & thanks,

  2. slopjong

    To sum it up, you’re working with Windows and you’re getting a ‘#’ is not recognized as an internal or external command error message. This shouldn’t happen because there shouldn’t be a # in your batch file which is only part of the shebang in Linux/Unix shell scripts. Can you post your batch content?

  3. If you are running on linux make sure you have the user execute chmod option put on the script file!

  4. slopjong

    Thanks for your feedback. I thought This hook is nothing else than an executable script was clear enough but I added an additional note at the end of the article to make it more obvious.

  5. william

    In windows the following method is right. Filename :pre-revprop-change.bat. Content:
    @echo off
    exit /B 0

  6. slopjong

    You’re absolutely right. That’s exactly what my post is suggesting since over three years.

  7. Alexis

    Thank you very much, this was very helpful.

  8. Tristan

    Thanks a lot

  9. Chris Perci

    Thank you, I have a local Repository without Server on Windows. This helped me a lot.

  10. slopjong

    Subversion? Ah right, the 14 years old thingie whose successor is git, born 9 years ago ;-)

    Did you know that you can use git with subversion repositories?

    git svn clone svn://<your_ip>/<repository_name>
  11. If you want to grow your familiarity just
    keep visiting this website and be updated with the hottest news update posted here.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>