Skip to content
5

Subversion: Repository Has Not Been Enabled To Accept Revision Propchanges

Last night I set up Subversion on my main development machine, which is running Vista. To do this, I followed the steps outlined by Jeff Atwood on his Coding Horror blog. His article was very helpful – it allowed me to install Subversion rather painlessly, despite the few HTML glitches I encountered in his instructions.

This morning, I opened the “Show log” page for a particular file using TortoiseSVN, and noticed one of the revisions I checked in was missing a comment. I right-clicked it, and selected “Edit log message”, wanting to add a comment then and there.  A little text editor popped up, and I typed the message. After I pressed OK, I was hit with this:

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

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

Solution

To correct this, I needed to create a file in the “hooks” folder of my Subversion repository. On my system, it was located at C:\svn\repository\hooks. I created a file called “pre-revprop-change.bat”, and I set the contents to this:

rem Only allow log messages to be changed.
if “%4″ == “svn:log” exit 0
echo Property ‘%4′ cannot be changed >&2
exit 1

This solution was suggested in the TortoiseSVN documentation.

After saving the file with those contents, I was able to edit the revision comments without encountering the error message.

See Also

TortoiseSVN Users Mailing List: RE: Labels and Comments

TortoiseSVN Documentation: Server side hook scripts

5 Comments Post a comment
  1. Dan
    Jun 24 2009

    Hey, thanks! That fixed the same error message for me.

    Reply
  2. moylop260
    Nov 23 2009

    Hola, muchas gracias amigo
    Esto para mi, fue muy util.

    Reply
  3. Scott
    Feb 22 2010

    Awesome — a dev just asked to be able to allow this. Found it on my first Google result. Works great!

    Reply
  4. kishorfarm
    Mar 5 2010

    Great information. Thanks.

    Reply
  5. May 27 2010

    Thanks so much! Nice quick fix!

    Reply

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments