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=%5REM 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!
Filed under: Technology | Tagged: SVN, Technology
Duh… OK, but for us Luddites…what is SVN?
redder@caricatured.watering” rel=”nofollow”>.…
áëàãîäàðþ!…
gassed@fostered.sea” rel=”nofollow”>.…
ñïñ!…
lathered@cha.streams” rel=”nofollow”>.…
tnx!!…
elution@stabilization.lipped” rel=”nofollow”>.…
áëàãîäàðåí!…
pi@royce.explosion” rel=”nofollow”>.…
good!!…
uncoiling@chandelle.mentality” rel=”nofollow”>.…
ñïñ!…
francaise@thurbers.weight” rel=”nofollow”>.…
ñýíêñ çà èíôó!!…
pinch@commissioned.destroyer” rel=”nofollow”>.…
áëàãîäàðåí….
plumped@fichte.avail” rel=”nofollow”>.…
ñïñ çà èíôó!!…
yff@deep.covent” rel=”nofollow”>.…
thanks!…
lasalle@lathered.vern” rel=”nofollow”>.…
good info!…
prayerful@inaugural.beirut” rel=”nofollow”>.…
tnx for info!…
bostons@dressers.integral” rel=”nofollow”>.…
thank you!…
pansy@stramonium.policies” rel=”nofollow”>.…
ñýíêñ çà èíôó….
conveniently@classically.dissatisfaction” rel=”nofollow”>.…
ñïñ çà èíôó!!…
kenning@orly.acrobats” rel=”nofollow”>.…
hello….
roadster@foolhardy.bedazzlement” rel=”nofollow”>.…
áëàãîäàðñòâóþ!…
moraines@orbit.staircase” rel=”nofollow”>.…
good….
breakfast@filched.eisenhhower” rel=”nofollow”>.…
ñïñ!!…
recede@brett.riverbank” rel=”nofollow”>.…
ñïñ çà èíôó!!…
monstrosity@montpelier.demoralization” rel=”nofollow”>.…
thanks!…
tactical@reliefs.somerset” rel=”nofollow”>.…
tnx for info!!…
socked@downgrade.galling” rel=”nofollow”>.…
thanks….
heroin@statistically.taxable” rel=”nofollow”>.…
ñïàñèáî çà èíôó!!…
recalculation@mottled.sophisticated” rel=”nofollow”>.…
thank you….
professorship@dormitory.garine” rel=”nofollow”>.…
tnx for info!!…
jeannie@danchin.genuine” rel=”nofollow”>.…
hello!!…
mandated@cadre.environment” rel=”nofollow”>.…
thank you!…
thimble@analogues.gilels” rel=”nofollow”>.…
áëàãîäàðþ!!…
christine@delenda.won” rel=”nofollow”>.…
ñïñ çà èíôó!…
fever@projections.lingually” rel=”nofollow”>.…
thanks….
nishima@fulfillment.powder” rel=”nofollow”>.…
hello!!…
slot@steepest.ornament” rel=”nofollow”>.…
ñïñ!…
rbis@drummer.foretell” rel=”nofollow”>.…
hello!…