[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnadmin setlog adding newline to commit comment

From: Robert O'Brien <robrien99_at_yahoo.com>
Date: Mon, 22 Sep 2008 09:03:55 -0700 (PDT)

Hello,
First time post,
I am the admin for Subversion in our
company. I have to edit 38 comments here today to use correct issue
number from Jira. This tool can cross reference the Subversion
revision number so developers can look at a bug fix and decide if it
needs to be merged into other branches. We have external developers
who don't always follow the rules regarding commit comments, so I've
had to fix them up. I review these every month or so and make the changes as needed and send out reminder emails.

Today I used
svnadmin setlog --bypasshooks
to
edit the comments. When I reviewed the batch, all comments had an
additional newline on the comment. Not a major issue, but an
unexpected effect.

Previously I modified the pre-commit hook
pre-revprop-change which meant opening all comments to be edited. I
wanted to avoid doing this again if I could just edit the specific
revisions's comments which I can with svnadmin setlog.

I created
files for each revision comment and edited these manually. The
incorrect comments needed to be cross-checked with the bug tracking
tool, Jira. Trailing empy lines were removed.
Any comments / suggestions?
Thanks
-Robert-

<shell script>
revs='
63497
63503
8359
'

for r in $revs
do
   svnadmin setlog /mysvnpath -r $r $r --bypass-hooks
done
</shell script>

bash-3.00$ svnadmin --version
svnadmin, version 1.4.4 (r25188)
   compiled Aug 15 2007, 05:02:11
A pre-compiled binary package for Solaris 10
FSFS DB in use.

      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-23 00:01:23 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.