Change SVN Revision Properties on Windows Machine

Suppose you’ve made a wrong comment on an SVN commit and now you wish to change it.  You are using Windows or your SVN server is on a Windows based machine.

To fix an SVN error message, use the following command:

svn propset svn:log –revprop  -r <revision#>  ”<Corrected Message>” <URL>

example:

C:\src>svn propset svn:log –revprop -r 393 “Reverted to revision 350″ file:///T:/SVN_Repositories/R

Whoops, you might get the error message:
svn: Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook

This means that you don’t have administrator access or the pre-revprop-change hook has not been created.

If you have admin access you can create a hook.  Simply go to the repository directory on the URL of the server, in this case T:\SVN_Repositories\R

Then find the hooks directory, and create a file

pre-revprop-change.bat

Add contents:

@ECHO OFF

SET REPOS=%1
SET REV=%2
SET USER=%3
SET PROPNAME=%4
SET ACTION=%5

REM ECHO %REPOS% %REV% %USER% %PROPNAME% %ACTION%

REM IF “%ACTION% %PROPNAME%”==”M svn:log” EXIT /B 0

ECHO “Changing revision properties other than svn:log is prohibited” >&2

EXIT /b 1

Now the svn revprop command should work!

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • E-mail this story to a friend!
  • LinkedIn
  • Live
  • MySpace
  • Turn this article into a PDF!
  • Reddit
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz

35 Responses to “Change SVN Revision Properties on Windows Machine”

  1. Duh… OK, but for us Luddites…what is SVN?

  2. redder@caricatured.watering” rel=”nofollow”>.…

    áëàãîäàðþ!…

  3. gassed@fostered.sea” rel=”nofollow”>.…

    ñïñ!…

  4. lathered@cha.streams” rel=”nofollow”>.…

    tnx!!…

  5. elution@stabilization.lipped” rel=”nofollow”>.…

    áëàãîäàðåí!…

  6. pi@royce.explosion” rel=”nofollow”>.…

    good!!…

  7. uncoiling@chandelle.mentality” rel=”nofollow”>.…

    ñïñ!…

  8. francaise@thurbers.weight” rel=”nofollow”>.…

    ñýíêñ çà èíôó!!…

  9. pinch@commissioned.destroyer” rel=”nofollow”>.…

    áëàãîäàðåí….

  10. plumped@fichte.avail” rel=”nofollow”>.…

    ñïñ çà èíôó!!…

  11. yff@deep.covent” rel=”nofollow”>.…

    thanks!…

  12. lasalle@lathered.vern” rel=”nofollow”>.…

    good info!…

  13. prayerful@inaugural.beirut” rel=”nofollow”>.…

    tnx for info!…

  14. bostons@dressers.integral” rel=”nofollow”>.…

    thank you!…

  15. pansy@stramonium.policies” rel=”nofollow”>.…

    ñýíêñ çà èíôó….

  16. conveniently@classically.dissatisfaction” rel=”nofollow”>.…

    ñïñ çà èíôó!!…

  17. kenning@orly.acrobats” rel=”nofollow”>.…

    hello….

  18. roadster@foolhardy.bedazzlement” rel=”nofollow”>.…

    áëàãîäàðñòâóþ!…

  19. moraines@orbit.staircase” rel=”nofollow”>.…

    good….

  20. breakfast@filched.eisenhhower” rel=”nofollow”>.…

    ñïñ!!…

  21. recede@brett.riverbank” rel=”nofollow”>.…

    ñïñ çà èíôó!!…

  22. monstrosity@montpelier.demoralization” rel=”nofollow”>.…

    thanks!…

  23. tactical@reliefs.somerset” rel=”nofollow”>.…

    tnx for info!!…

  24. socked@downgrade.galling” rel=”nofollow”>.…

    thanks….

  25. heroin@statistically.taxable” rel=”nofollow”>.…

    ñïàñèáî çà èíôó!!…

  26. recalculation@mottled.sophisticated” rel=”nofollow”>.…

    thank you….

  27. professorship@dormitory.garine” rel=”nofollow”>.…

    tnx for info!!…

  28. jeannie@danchin.genuine” rel=”nofollow”>.…

    hello!!…

  29. mandated@cadre.environment” rel=”nofollow”>.…

    thank you!…

  30. thimble@analogues.gilels” rel=”nofollow”>.…

    áëàãîäàðþ!!…

  31. christine@delenda.won” rel=”nofollow”>.…

    ñïñ çà èíôó!…

  32. fever@projections.lingually” rel=”nofollow”>.…

    thanks….

  33. nishima@fulfillment.powder” rel=”nofollow”>.…

    hello!!…

  34. slot@steepest.ornament” rel=”nofollow”>.…

    ñïñ!…

  35. rbis@drummer.foretell” rel=”nofollow”>.…

    hello!…

Leave a Reply

You must be logged in to post a comment.