You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Erling Wegger Linde <er...@gmail.com> on 2008/03/02 17:06:36 UTC
Add text to commit log
Thanks for your tip, this looks very useful =)
But how do I do this in practice? Do I need to write some kind of script
that monitors SVN and checks for new commits? Or is it possible to make SVN
to start such a script for each commit? Does someone have any best practices
here? What scripting languages are used (I am mostly familiar with Java)?
Thanks again,
Erling (newbie :)
On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary <pr...@gmail.com>
wrote:
>
> Hi Erling,
> I think,You can use post commit hook from there you can can call "svn
> propset " to modify the log message in certain format.
>
> For example:
> svn propset -r * revision no* --revprop svn:log new message *URL*
>
> For further informations:
> http://subversion.tigris.org/faq.html#change-log-msg
>
> I wish it will help you.
>
> Thanks & Regards
> Prakash
>
>
>
> On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde <er...@gmail.com>
> wrote:
>
> > Hi,
> >
> > I'm trying to abstract away different bug trackers such as Jira and
> > Trac. If you use their respective Subversion Plugins - Jira relates
> > "PROJECT-2" and Trac #2 to their respective issues. I would like to provide
> > a uniform way for the user to add Issuekeys to the commit-log such as
> > project/2. Furthermore to allow the Trac and Jira subversion plugins to
> > recognise these tags I need subversion to expand the commitlogs.
> >
> > An example:
> >
> > The user enters "this issue is related to project/3"
> > Subversion expands this commit log to : "this issue is related to
> > project/3 PROJECT-3 #3".
> >
> > Is it possible to tell subversion to do this (hopefully without
> > recompiling - configuration or add-on /plug-in mechanism would be preferred)
> > and how?
> >
> > Any ideas / suggestions would be deeply appreciated!
> >
> > Thanks, Erling
> >
>
>
--
Med vennlig hilsen
Erling Wegger Linde
--
Med vennlig hilsen
Erling Wegger Linde
Re: Add text to commit log
Posted by prakash tiwary <pr...@gmail.com>.
Hi Erling,
You need to write post commit hook script. You can find many example at
http://subversion.tigris.org/tools_contrib.html
It supports perl, python, shell etc. I do in python for my purpose.
Thanks & Regards
Prakash
On Mon, Mar 3, 2008 at 5:00 AM, Toby Thain <to...@telegraphics.com.au> wrote:
>
> On 2-Mar-08, at 11:06 AM, Erling Wegger Linde wrote:
>
> Thanks for your tip, this looks very useful =)
>
> But how do I do this in practice? Do I need to write some kind of script
> that monitors SVN and checks for new commits? Or is it possible to make SVN
> to start such a script for each commit? Does someone have any best practices
> here? What scripting languages are used (I am mostly familiar with Java)?
>
>
>
> Actually you probably want to use a *post-commit* hook here. This can be
> written in any language you like (e.g. I use Perl or bash).
>
> Examples:
> http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-brief.sh
> http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
>
> --Toby
>
>
>
> Thanks again,
> Erling (newbie :)
>
>
> On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary <pr...@gmail.com>
> wrote:
>
> >
> > Hi Erling,
> > I think,You can use post commit hook from there you can can call "svn
> > propset " to modify the log message in certain format.
> >
> > For example:
> > svn propset -r * revision no* --revprop svn:log new message *URL*
> >
> > For further informations:
> > http://subversion.tigris.org/faq.html#change-log-msg
> >
> > I wish it will help you.
> >
> > Thanks & Regards
> > Prakash
> >
> >
> >
> > On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde <er...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I'm trying to abstract away different bug trackers such as Jira and
> > > Trac. If you use their respective Subversion Plugins - Jira relates
> > > "PROJECT-2" and Trac #2 to their respective issues. I would like to provide
> > > a uniform way for the user to add Issuekeys to the commit-log such as
> > > project/2. Furthermore to allow the Trac and Jira subversion plugins to
> > > recognise these tags I need subversion to expand the commitlogs.
> > >
> > > An example:
> > >
> > > The user enters "this issue is related to project/3"
> > > Subversion expands this commit log to : "this issue is related to
> > > project/3 PROJECT-3 #3".
> > >
> > > Is it possible to tell subversion to do this (hopefully without
> > > recompiling - configuration or add-on /plug-in mechanism would be preferred)
> > > and how?
> > >
> > > Any ideas / suggestions would be deeply appreciated!
> > >
> > > Thanks, Erling
> > >
> >
> >
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
>
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
>
>
>
Re: Add text to commit log
Posted by Erling Wegger Linde <er...@gmail.com>.
Of course! Thanks!! ;D
On Tue, Mar 11, 2008 at 1:32 PM, Marc Haisenko <ha...@comdasys.com> wrote:
> On Tuesday 11 March 2008, Erling Wegger Linde wrote:
> > post-commit:
> >
> > #!/bin/sh
> >
> > REPOS="$1"
> > REV="$2"
> >
> > mkdir "kjdfkasag"
> >
>
> So, where do you expect this directory "kjdfkasag" will be located ? And do
> you know you have any access rights there ? Make that an absolute path to be
> sure.
>
>
> > And the script it refers to:
> > post-commit-expand.pl
> >
> > #!/usr/bin/perl
> >
> > open (MYFILE, '>>test.txt');
> > print MYFILE " Test..\n";
> > close (MYFILE);
>
> Again, do you know the current working dir for sure ? Do you know that you may
> create a file in there ? As the user executing the script right now ? I'd
> write to /tmp/test.txt instead, making sure that file has been chmod'ed
> 0666...
>
> HTH,
> Marc
>
> --
> Marc Haisenko
>
> Comdasys AG
> Rüdesheimer Str. 7
> 80686 München
> Germany
>
> Tel.: +49 (0)89 548 433 321
>
--
Med vennlig hilsen
Erling Wegger Linde
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Marc Haisenko <ha...@comdasys.com>.
On Tuesday 11 March 2008, Erling Wegger Linde wrote:
> post-commit:
>
> #!/bin/sh
>
> REPOS="$1"
> REV="$2"
>
> mkdir "kjdfkasag"
>
So, where do you expect this directory "kjdfkasag" will be located ? And do
you know you have any access rights there ? Make that an absolute path to be
sure.
> And the script it refers to:
> post-commit-expand.pl
>
> #!/usr/bin/perl
>
> open (MYFILE, '>>test.txt');
> print MYFILE " Test..\n";
> close (MYFILE);
Again, do you know the current working dir for sure ? Do you know that you may
create a file in there ? As the user executing the script right now ? I'd
write to /tmp/test.txt instead, making sure that file has been chmod'ed
0666...
HTH,
Marc
--
Marc Haisenko
Comdasys AG
Rüdesheimer Str. 7
80686 München
Germany
Tel.: +49 (0)89 548 433 321
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Erling Wegger Linde <er...@gmail.com>.
How do I get the working copy then? If I only get REPO:
/home/svn/milesplatform/ and REV: 33 from the Post-Commit hook..?
Thanks, - Erling
On Tue, Mar 11, 2008 at 2:04 PM, Hansa <my...@logic-q.nl> wrote:
> > Van: Erling Wegger Linde [mailto:erlingwl@gmail.com]
> >
>
> > I got it to create the directory and write to the file using full paths.
> >
> > However, I can't update the log using this line:
> >
> > my $RESULT = `$SVN propset -r $REV --revprop svn:log \"new log\"
> > $REPO`; (do I need the \ before the " by the way?)
>
> Yep.. you need the \ before the " :)
>
>
> > I start my script with:
> >
> > ./post-commit '/home/svn/milesplatform/' '33'
> >
> > I got the REPO url and REV nr by writing these to the .txt file
> > earlier, but I get this error:
> >
> > svn: '/home/svn/milesplatform' is not a working copy
>
> Probably because '/home/svn/milesplatform' is not a working copy :)
> I think '/home/svn/milesplatform' is a repository. These things are
> different.
> A 'working copy' is a checkout from a repository.
>
> Regards,
> Hansa
>
>
>
> > On Tue, Mar 11, 2008 at 1:40 PM, Hansa <my...@logic-q.nl> wrote:
> > > That's probably because it can't find things like the 'mkdir'
> > command in
> > > your environment.
> > >
> > > To set environment variables in your script:
> > > #!/bin/sh
> > >
> > > PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
> > > export PATH
> > >
> > >
> > > REPOS="$1"
> > > REV="$2"
> > >
> > > mkdir "kjdfkasag"
> > > ...
> > >
> > > That should at least set your environment right
> > > good luck..
> > >
> > >
> > > > -----Oorspronkelijk bericht-----
> > > > Van: Erling Wegger Linde [mailto:erlingwl@gmail.com]
> > > > Verzonden: dinsdag 11 maart 2008 13:13
> > > > Aan: users@subversion.tigris.org
> > > > Onderwerp: Re: Add text to commit log
> > >
> > >
> > > >
> > > >
> > > > I am trying to get this to work now, however my post-commit hook
> > > > doesn't seem to be executed! It works fine when I execute
> > it manually,
> > > > but it isn't started by Subversion. I have tried chmod'ing ++ I have
> > > > read that it might have something to do with the environment
> > > > variables, but I can't find how I should set them. Here are
> > my script
> > > > (it doesn't do very much useful yet, I create the directory just to
> > > > test it..)
> > > >
> > > > post-commit:
> > > >
> > > > #!/bin/sh
> > > >
> > > > REPOS="$1"
> > > > REV="$2"
> > > >
> > > > mkdir "kjdfkasag"
> > > >
> > > > PERL=/usr/bin/perl
> > > >
> > > > $PERL /usr/share/subversion/hook-scripts/post-commit-expand.pl
> > > > "$REPOS" "$REV"
> > > >
> > > >
> > > > And the script it refers to:
> > > > post-commit-expand.pl
> > > >
> > > > #!/usr/bin/perl
> > > >
> > > > open (MYFILE, '>>test.txt');
> > > > print MYFILE " Test..\n";
> > > > close (MYFILE);
> > > >
> > > > However, nothing is executed at all..
> > > >
> > > > Thanks again,
> > > > - Erling
> > > >
> > > > On Mon, Mar 3, 2008 at 9:52 AM, Erling Wegger Linde
> > > > <er...@gmail.com> wrote:
> > > > > Thanks, one of these scripts even recognizes Trac issues!
> > > > >
> > > > > So if I get it right, I create a file in /hooks named
> > > > post-commit (no .sh?)
> > > > > that will start a script.
> > > > >
> > > > > I can then use code from
> > > > >
> > > >
> > http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
> > > > > to fetch the log message and then write it back using
> > > > >
> > > > >
> > > > > svn propset -r revision no --revprop svn:log new message URL
> > > > >
> > > > > As long as I get the permissions and paths correct.
> > > > >
> > > > > I'll try this out immediately :D
> > > > >
> > > > > - Erling
> > > > >
> > > > >
> > > > >
> > > > > On Mon, Mar 3, 2008 at 12:30 AM, Toby Thain
> > <to...@telegraphics.com.au>
> > > > > wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 2-Mar-08, at 11:06 AM, Erling Wegger Linde wrote:
> > > > > >
> > > > > > Thanks for your tip, this looks very useful =)
> > > > > >
> > > > > >
> > > > > > But how do I do this in practice? Do I need to write some
> > > > kind of script
> > > > > that monitors SVN and checks for new commits? Or is it possible
> > > > to make SVN
> > > > > to start such a script for each commit? Does someone have any
> > > > best practices
> > > > > here? What scripting languages are used (I am mostly familiar
> > > > with Java)?
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Actually you probably want to use a post-commit hook
> > here. This can be
> > > > > written in any language you like (e.g. I use Perl or bash).
> > > > > >
> > > > > >
> > > > > > Examples:
> > > > > >
> > > > > >
> > > >
> > http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-brief.sh
> > > > > >
> > > > > >
> > > >
> > http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
> > > > > >
> > > > > >
> > > > > > --Toby
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Thanks again,
> > > > > > Erling (newbie :)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary
> > > > <pr...@gmail.com>
> > > > > wrote:
> > > > > >
> > > > > > >
> > > > > > > Hi Erling,
> > > > > > > I think,You can use post commit hook from there you can
> > > > can call "svn
> > > > > propset " to modify the log message in certain format.
> > > > > > >
> > > > > > > For example:
> > > > > > > svn propset -r revision no --revprop svn:log new
> > message URL
> > > > > > >
> > > > > > > For further informations:
> > > > > http://subversion.tigris.org/faq.html#change-log-msg
> > > > > > >
> > > > > > > I wish it will help you.
> > > > > > >
> > > > > > > Thanks & Regards
> > > > > > > Prakash
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde
> > > > > <er...@gmail.com> wrote:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I'm trying to abstract away different bug trackers such
> > > > as Jira and
> > > > > Trac. If you use their respective Subversion Plugins -
> > Jira relates
> > > > > "PROJECT-2" and Trac #2 to their respective issues. I would
> > > > like to provide
> > > > > a uniform way for the user to add Issuekeys to the
> > commit-log such as
> > > > > project/2. Furthermore to allow the Trac and Jira
> > subversion plugins to
> > > > > recognise these tags I need subversion to expand the commitlogs.
> > > > > > > >
> > > > > > > > An example:
> > > > > > > >
> > > > > > > > The user enters "this issue is related to project/3"
> > > > > > > > Subversion expands this commit log to : "this issue
> > is related to
> > > > > project/3 PROJECT-3 #3".
> > > > > > > >
> > > > > > > > Is it possible to tell subversion to do this
> > (hopefully without
> > > > > recompiling - configuration or add-on /plug-in mechanism would
> > > > be preferred)
> > > > > and how?
> > > > > > > >
> > > > > > > > Any ideas / suggestions would be deeply appreciated!
> > > > > > > >
> > > > > > > > Thanks, Erling
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Med vennlig hilsen
> > > > > > Erling Wegger Linde
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Med vennlig hilsen
> > > > > > Erling Wegger Linde
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Med vennlig hilsen
> > > > > Erling Wegger Linde
> > > >
> > > >
> > > >
> > > > --
> > > > Med vennlig hilsen
> > > > Erling Wegger Linde
> > > >
> > > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > > > For additional commands, e-mail: users-help@subversion.tigris.org
> > > >
> > >
> > >
> >
> >
> >
> > --
> >
> >
> > Med vennlig hilsen
> > Erling Wegger Linde
> >
> >
> >
> > --
> > Med vennlig hilsen
> > Erling Wegger Linde
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
--
Med vennlig hilsen
Erling Wegger Linde
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Erling Wegger Linde <er...@gmail.com>.
Thanks it works now!
I had to strip "/home/" from repos, and add username and password
params to the command.
My REPO url now looks like: http://localhost:8090/svn/milesplatform
Thanks again! :D
- Erling
On Tue, Mar 11, 2008 at 7:26 PM, Hansa <my...@logic-q.nl> wrote:
> Ok.. I've figured it out. I think :)
>
> The final part of my last e-mail isn't entirely correct.
> You should make a combination between a post-commit hook and a
> post-revprop-change hook. Why? Because you want to change the "svn:log"
> property after you've committed a revision.
>
> Properties (via svn propset) can be set on files, dirs, or revisions. Also
> "svn propset" acts on "working copies" or via a URL on the repository. "svn
> propset" does NOT act directly on the repository path.
>
> svn propset svn:log --revprop -r $REV $PROPVAL /path/to/repository
> ^^ does not work ^^
> Here is what you should do:
>
> # cd /path/to/svn/repos/hooks
> # cp post-commit.tmpl post-commit
> # chmod 755 post-commit
>
> edit post-commit and make it look something like this:
>
> REPOS="$1"
> REV="$2"
>
> # Modify REPOS to svn/html URL
> REPOS=`echo $REPOS | sed 's/\/path\/to\/repos\///'`
> REPOS="svn://svnserve.url/$REPOS"
> # or:
> #REPOS="http://svn.appache.url/$REPOS"
>
> svn propset svn:log --revprop -r $REV \"new log\" $REPOS
>
> Save.
>
> # cp pre-revprop-change.tmpl pre-revprop-change
> # chmod 755 pre-revprop-change
>
> edit pre-revprop-change:
>
> REPOS="$1"
> REV="$2"
> USER="$3"
> PROPNAME="$4"
> ACTION="$5"
>
> if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
> if [ "$ACTION" = "A" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
> # You could combine -a and -o, but I didn't want to :)
>
> echo "Changing revision properties other than svn:log is prohibited" >&2
> exit 1
>
> Save and you're done (I think) :)
>
> Try it and let me know if this works...
>
> Hansa
>
>
--
Med vennlig hilsen
Erling Wegger Linde
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Add text to commit log
Posted by Hansa <my...@logic-q.nl>.
Ok.. I've figured it out. I think :)
The final part of my last e-mail isn't entirely correct.
You should make a combination between a post-commit hook and a
post-revprop-change hook. Why? Because you want to change the "svn:log"
property after you've committed a revision.
Properties (via svn propset) can be set on files, dirs, or revisions. Also
"svn propset" acts on "working copies" or via a URL on the repository. "svn
propset" does NOT act directly on the repository path.
svn propset svn:log --revprop -r $REV $PROPVAL /path/to/repository
^^ does not work ^^
Here is what you should do:
# cd /path/to/svn/repos/hooks
# cp post-commit.tmpl post-commit
# chmod 755 post-commit
edit post-commit and make it look something like this:
REPOS="$1"
REV="$2"
# Modify REPOS to svn/html URL
REPOS=`echo $REPOS | sed 's/\/path\/to\/repos\///'`
REPOS="svn://svnserve.url/$REPOS"
# or:
#REPOS="http://svn.appache.url/$REPOS"
svn propset svn:log --revprop -r $REV \"new log\" $REPOS
Save.
# cp pre-revprop-change.tmpl pre-revprop-change
# chmod 755 pre-revprop-change
edit pre-revprop-change:
REPOS="$1"
REV="$2"
USER="$3"
PROPNAME="$4"
ACTION="$5"
if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
if [ "$ACTION" = "A" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi
# You could combine -a and -o, but I didn't want to :)
echo "Changing revision properties other than svn:log is prohibited" >&2
exit 1
Save and you're done (I think) :)
Try it and let me know if this works...
Hansa
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Lorenz <lo...@yahoo.com>.
Erling Wegger Linde wrote:
>Thanks, but I tried
>
>my $RESULT = `svn propset svn:log --revprop -r $REV \"new log\" $REPO`;
>
>But I still get svn: '/home/svn/milesplatform' is not a working copy
Hook scripts are running on the server and normaly only use svnadmin,
svnlook and such server-side tools which accept a plain path to the
repository root.
To get the svn client to work you will need to prefix the path passed
to the script with something like "file://localhost"
So file://localhost$REPO should work.
I would use the svn client only for the propget part of the script
though.
If you use svn propset, you will have to set up a pre-revprop-hook
script to allow you do do that.
I would use "svnadmin setlog $REPO -r $REV --bypass-hooks file-path"
instead.
--
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Erling Wegger Linde <er...@gmail.com>.
Thanks, but I tried
my $RESULT = `svn propset svn:log --revprop -r $REV \"new log\" $REPO`;
But I still get svn: '/home/svn/milesplatform' is not a working copy
I'm not sure what is meant by "working copy". How can I fetch a
working copy, how does a working copy URL look like?
- Erling
On Tue, Mar 11, 2008 at 2:38 PM, Lorenz <lo...@yahoo.com> wrote:
> Erling Wegger Linde wrote:
> >I got it to create the directory and write to the file using full paths.
> >
> > However, I can't update the log using this line:
> >
> > my $RESULT = `$SVN propset -r $REV --revprop svn:log \"new log\"
> > $REPO`; (do I need the \ before the " by the way?)
>
> you got the syntax slightly wrong.
>
> from 'svn help propset'
>
> svn propset PROPNAME --revprop -r REV PROPVAL [TARGET]
> --
>
> Lorenz
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
--
Med vennlig hilsen
Erling Wegger Linde
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Lorenz <lo...@yahoo.com>.
Erling Wegger Linde wrote:
>I got it to create the directory and write to the file using full paths.
>
> However, I can't update the log using this line:
>
> my $RESULT = `$SVN propset -r $REV --revprop svn:log \"new log\"
> $REPO`; (do I need the \ before the " by the way?)
you got the syntax slightly wrong.
from 'svn help propset'
svn propset PROPNAME --revprop -r REV PROPVAL [TARGET]
--
Lorenz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: Add text to commit log
Posted by Hansa <my...@logic-q.nl>.
> Van: Erling Wegger Linde [mailto:erlingwl@gmail.com]
>
> I got it to create the directory and write to the file using full paths.
>
> However, I can't update the log using this line:
>
> my $RESULT = `$SVN propset -r $REV --revprop svn:log \"new log\"
> $REPO`; (do I need the \ before the " by the way?)
Yep.. you need the \ before the " :)
> I start my script with:
>
> ./post-commit '/home/svn/milesplatform/' '33'
>
> I got the REPO url and REV nr by writing these to the .txt file
> earlier, but I get this error:
>
> svn: '/home/svn/milesplatform' is not a working copy
Probably because '/home/svn/milesplatform' is not a working copy :)
I think '/home/svn/milesplatform' is a repository. These things are
different.
A 'working copy' is a checkout from a repository.
Regards,
Hansa
> On Tue, Mar 11, 2008 at 1:40 PM, Hansa <my...@logic-q.nl> wrote:
> > That's probably because it can't find things like the 'mkdir'
> command in
> > your environment.
> >
> > To set environment variables in your script:
> > #!/bin/sh
> >
> > PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
> > export PATH
> >
> >
> > REPOS="$1"
> > REV="$2"
> >
> > mkdir "kjdfkasag"
> > ...
> >
> > That should at least set your environment right
> > good luck..
> >
> >
> > > -----Oorspronkelijk bericht-----
> > > Van: Erling Wegger Linde [mailto:erlingwl@gmail.com]
> > > Verzonden: dinsdag 11 maart 2008 13:13
> > > Aan: users@subversion.tigris.org
> > > Onderwerp: Re: Add text to commit log
> >
> >
> > >
> > >
> > > I am trying to get this to work now, however my post-commit hook
> > > doesn't seem to be executed! It works fine when I execute
> it manually,
> > > but it isn't started by Subversion. I have tried chmod'ing ++ I have
> > > read that it might have something to do with the environment
> > > variables, but I can't find how I should set them. Here are
> my script
> > > (it doesn't do very much useful yet, I create the directory just to
> > > test it..)
> > >
> > > post-commit:
> > >
> > > #!/bin/sh
> > >
> > > REPOS="$1"
> > > REV="$2"
> > >
> > > mkdir "kjdfkasag"
> > >
> > > PERL=/usr/bin/perl
> > >
> > > $PERL /usr/share/subversion/hook-scripts/post-commit-expand.pl
> > > "$REPOS" "$REV"
> > >
> > >
> > > And the script it refers to:
> > > post-commit-expand.pl
> > >
> > > #!/usr/bin/perl
> > >
> > > open (MYFILE, '>>test.txt');
> > > print MYFILE " Test..\n";
> > > close (MYFILE);
> > >
> > > However, nothing is executed at all..
> > >
> > > Thanks again,
> > > - Erling
> > >
> > > On Mon, Mar 3, 2008 at 9:52 AM, Erling Wegger Linde
> > > <er...@gmail.com> wrote:
> > > > Thanks, one of these scripts even recognizes Trac issues!
> > > >
> > > > So if I get it right, I create a file in /hooks named
> > > post-commit (no .sh?)
> > > > that will start a script.
> > > >
> > > > I can then use code from
> > > >
> > >
> http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
> > > > to fetch the log message and then write it back using
> > > >
> > > >
> > > > svn propset -r revision no --revprop svn:log new message URL
> > > >
> > > > As long as I get the permissions and paths correct.
> > > >
> > > > I'll try this out immediately :D
> > > >
> > > > - Erling
> > > >
> > > >
> > > >
> > > > On Mon, Mar 3, 2008 at 12:30 AM, Toby Thain
> <to...@telegraphics.com.au>
> > > > wrote:
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On 2-Mar-08, at 11:06 AM, Erling Wegger Linde wrote:
> > > > >
> > > > > Thanks for your tip, this looks very useful =)
> > > > >
> > > > >
> > > > > But how do I do this in practice? Do I need to write some
> > > kind of script
> > > > that monitors SVN and checks for new commits? Or is it possible
> > > to make SVN
> > > > to start such a script for each commit? Does someone have any
> > > best practices
> > > > here? What scripting languages are used (I am mostly familiar
> > > with Java)?
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Actually you probably want to use a post-commit hook
> here. This can be
> > > > written in any language you like (e.g. I use Perl or bash).
> > > > >
> > > > >
> > > > > Examples:
> > > > >
> > > > >
> > >
> http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-brief.sh
> > > > >
> > > > >
> > >
> http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
> > > > >
> > > > >
> > > > > --Toby
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Thanks again,
> > > > > Erling (newbie :)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary
> > > <pr...@gmail.com>
> > > > wrote:
> > > > >
> > > > > >
> > > > > > Hi Erling,
> > > > > > I think,You can use post commit hook from there you can
> > > can call "svn
> > > > propset " to modify the log message in certain format.
> > > > > >
> > > > > > For example:
> > > > > > svn propset -r revision no --revprop svn:log new
> message URL
> > > > > >
> > > > > > For further informations:
> > > > http://subversion.tigris.org/faq.html#change-log-msg
> > > > > >
> > > > > > I wish it will help you.
> > > > > >
> > > > > > Thanks & Regards
> > > > > > Prakash
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde
> > > > <er...@gmail.com> wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I'm trying to abstract away different bug trackers such
> > > as Jira and
> > > > Trac. If you use their respective Subversion Plugins -
> Jira relates
> > > > "PROJECT-2" and Trac #2 to their respective issues. I would
> > > like to provide
> > > > a uniform way for the user to add Issuekeys to the
> commit-log such as
> > > > project/2. Furthermore to allow the Trac and Jira
> subversion plugins to
> > > > recognise these tags I need subversion to expand the commitlogs.
> > > > > > >
> > > > > > > An example:
> > > > > > >
> > > > > > > The user enters "this issue is related to project/3"
> > > > > > > Subversion expands this commit log to : "this issue
> is related to
> > > > project/3 PROJECT-3 #3".
> > > > > > >
> > > > > > > Is it possible to tell subversion to do this
> (hopefully without
> > > > recompiling - configuration or add-on /plug-in mechanism would
> > > be preferred)
> > > > and how?
> > > > > > >
> > > > > > > Any ideas / suggestions would be deeply appreciated!
> > > > > > >
> > > > > > > Thanks, Erling
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Med vennlig hilsen
> > > > > Erling Wegger Linde
> > > > >
> > > > >
> > > > > --
> > > > > Med vennlig hilsen
> > > > > Erling Wegger Linde
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Med vennlig hilsen
> > > > Erling Wegger Linde
> > >
> > >
> > >
> > > --
> > > Med vennlig hilsen
> > > Erling Wegger Linde
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > > For additional commands, e-mail: users-help@subversion.tigris.org
> > >
> >
> >
>
>
>
> --
>
>
> Med vennlig hilsen
> Erling Wegger Linde
>
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Erling Wegger Linde <er...@gmail.com>.
I got it to create the directory and write to the file using full paths.
However, I can't update the log using this line:
my $RESULT = `$SVN propset -r $REV --revprop svn:log \"new log\"
$REPO`; (do I need the \ before the " by the way?)
I start my script with:
./post-commit '/home/svn/milesplatform/' '33'
I got the REPO url and REV nr by writing these to the .txt file
earlier, but I get this error:
svn: '/home/svn/milesplatform' is not a working copy
I guess I need some more help.. =)
Thanks, Erling
On Tue, Mar 11, 2008 at 1:40 PM, Hansa <my...@logic-q.nl> wrote:
> That's probably because it can't find things like the 'mkdir' command in
> your environment.
>
> To set environment variables in your script:
> #!/bin/sh
>
> PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
> export PATH
>
>
> REPOS="$1"
> REV="$2"
>
> mkdir "kjdfkasag"
> ...
>
> That should at least set your environment right
> good luck..
>
>
> > -----Oorspronkelijk bericht-----
> > Van: Erling Wegger Linde [mailto:erlingwl@gmail.com]
> > Verzonden: dinsdag 11 maart 2008 13:13
> > Aan: users@subversion.tigris.org
> > Onderwerp: Re: Add text to commit log
>
>
> >
> >
> > I am trying to get this to work now, however my post-commit hook
> > doesn't seem to be executed! It works fine when I execute it manually,
> > but it isn't started by Subversion. I have tried chmod'ing ++ I have
> > read that it might have something to do with the environment
> > variables, but I can't find how I should set them. Here are my script
> > (it doesn't do very much useful yet, I create the directory just to
> > test it..)
> >
> > post-commit:
> >
> > #!/bin/sh
> >
> > REPOS="$1"
> > REV="$2"
> >
> > mkdir "kjdfkasag"
> >
> > PERL=/usr/bin/perl
> >
> > $PERL /usr/share/subversion/hook-scripts/post-commit-expand.pl
> > "$REPOS" "$REV"
> >
> >
> > And the script it refers to:
> > post-commit-expand.pl
> >
> > #!/usr/bin/perl
> >
> > open (MYFILE, '>>test.txt');
> > print MYFILE " Test..\n";
> > close (MYFILE);
> >
> > However, nothing is executed at all..
> >
> > Thanks again,
> > - Erling
> >
> > On Mon, Mar 3, 2008 at 9:52 AM, Erling Wegger Linde
> > <er...@gmail.com> wrote:
> > > Thanks, one of these scripts even recognizes Trac issues!
> > >
> > > So if I get it right, I create a file in /hooks named
> > post-commit (no .sh?)
> > > that will start a script.
> > >
> > > I can then use code from
> > >
> > http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
> > > to fetch the log message and then write it back using
> > >
> > >
> > > svn propset -r revision no --revprop svn:log new message URL
> > >
> > > As long as I get the permissions and paths correct.
> > >
> > > I'll try this out immediately :D
> > >
> > > - Erling
> > >
> > >
> > >
> > > On Mon, Mar 3, 2008 at 12:30 AM, Toby Thain <to...@telegraphics.com.au>
> > > wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 2-Mar-08, at 11:06 AM, Erling Wegger Linde wrote:
> > > >
> > > > Thanks for your tip, this looks very useful =)
> > > >
> > > >
> > > > But how do I do this in practice? Do I need to write some
> > kind of script
> > > that monitors SVN and checks for new commits? Or is it possible
> > to make SVN
> > > to start such a script for each commit? Does someone have any
> > best practices
> > > here? What scripting languages are used (I am mostly familiar
> > with Java)?
> > > >
> > > >
> > > >
> > > >
> > > > Actually you probably want to use a post-commit hook here. This can be
> > > written in any language you like (e.g. I use Perl or bash).
> > > >
> > > >
> > > > Examples:
> > > >
> > > >
> > http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-brief.sh
> > > >
> > > >
> > http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
> > > >
> > > >
> > > > --Toby
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Thanks again,
> > > > Erling (newbie :)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary
> > <pr...@gmail.com>
> > > wrote:
> > > >
> > > > >
> > > > > Hi Erling,
> > > > > I think,You can use post commit hook from there you can
> > can call "svn
> > > propset " to modify the log message in certain format.
> > > > >
> > > > > For example:
> > > > > svn propset -r revision no --revprop svn:log new message URL
> > > > >
> > > > > For further informations:
> > > http://subversion.tigris.org/faq.html#change-log-msg
> > > > >
> > > > > I wish it will help you.
> > > > >
> > > > > Thanks & Regards
> > > > > Prakash
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde
> > > <er...@gmail.com> wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I'm trying to abstract away different bug trackers such
> > as Jira and
> > > Trac. If you use their respective Subversion Plugins - Jira relates
> > > "PROJECT-2" and Trac #2 to their respective issues. I would
> > like to provide
> > > a uniform way for the user to add Issuekeys to the commit-log such as
> > > project/2. Furthermore to allow the Trac and Jira subversion plugins to
> > > recognise these tags I need subversion to expand the commitlogs.
> > > > > >
> > > > > > An example:
> > > > > >
> > > > > > The user enters "this issue is related to project/3"
> > > > > > Subversion expands this commit log to : "this issue is related to
> > > project/3 PROJECT-3 #3".
> > > > > >
> > > > > > Is it possible to tell subversion to do this (hopefully without
> > > recompiling - configuration or add-on /plug-in mechanism would
> > be preferred)
> > > and how?
> > > > > >
> > > > > > Any ideas / suggestions would be deeply appreciated!
> > > > > >
> > > > > > Thanks, Erling
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Med vennlig hilsen
> > > > Erling Wegger Linde
> > > >
> > > >
> > > > --
> > > > Med vennlig hilsen
> > > > Erling Wegger Linde
> > > >
> > >
> > >
> > >
> > > --
> > > Med vennlig hilsen
> > > Erling Wegger Linde
> >
> >
> >
> > --
> > Med vennlig hilsen
> > Erling Wegger Linde
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
>
>
--
Med vennlig hilsen
Erling Wegger Linde
--
Med vennlig hilsen
Erling Wegger Linde
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Erling Wegger Linde <er...@gmail.com>.
I am trying to get this to work now, however my post-commit hook
doesn't seem to be executed! It works fine when I execute it manually,
but it isn't started by Subversion. I have tried chmod'ing ++ I have
read that it might have something to do with the environment
variables, but I can't find how I should set them. Here are my script
(it doesn't do very much useful yet, I create the directory just to
test it..)
post-commit:
#!/bin/sh
REPOS="$1"
REV="$2"
mkdir "kjdfkasag"
PERL=/usr/bin/perl
$PERL /usr/share/subversion/hook-scripts/post-commit-expand.pl "$REPOS" "$REV"
And the script it refers to:
post-commit-expand.pl
#!/usr/bin/perl
open (MYFILE, '>>test.txt');
print MYFILE " Test..\n";
close (MYFILE);
However, nothing is executed at all..
Thanks again,
- Erling
On Mon, Mar 3, 2008 at 9:52 AM, Erling Wegger Linde <er...@gmail.com> wrote:
> Thanks, one of these scripts even recognizes Trac issues!
>
> So if I get it right, I create a file in /hooks named post-commit (no .sh?)
> that will start a script.
>
> I can then use code from
> http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
> to fetch the log message and then write it back using
>
>
> svn propset -r revision no --revprop svn:log new message URL
>
> As long as I get the permissions and paths correct.
>
> I'll try this out immediately :D
>
> - Erling
>
>
>
> On Mon, Mar 3, 2008 at 12:30 AM, Toby Thain <to...@telegraphics.com.au>
> wrote:
> >
> >
> >
> >
> >
> > On 2-Mar-08, at 11:06 AM, Erling Wegger Linde wrote:
> >
> > Thanks for your tip, this looks very useful =)
> >
> >
> > But how do I do this in practice? Do I need to write some kind of script
> that monitors SVN and checks for new commits? Or is it possible to make SVN
> to start such a script for each commit? Does someone have any best practices
> here? What scripting languages are used (I am mostly familiar with Java)?
> >
> >
> >
> >
> > Actually you probably want to use a post-commit hook here. This can be
> written in any language you like (e.g. I use Perl or bash).
> >
> >
> > Examples:
> >
> > http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-brief.sh
> >
> > http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
> >
> >
> > --Toby
> >
> >
> >
> >
> >
> > Thanks again,
> > Erling (newbie :)
> >
> >
> >
> >
> >
> > On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary <pr...@gmail.com>
> wrote:
> >
> > >
> > > Hi Erling,
> > > I think,You can use post commit hook from there you can can call "svn
> propset " to modify the log message in certain format.
> > >
> > > For example:
> > > svn propset -r revision no --revprop svn:log new message URL
> > >
> > > For further informations:
> http://subversion.tigris.org/faq.html#change-log-msg
> > >
> > > I wish it will help you.
> > >
> > > Thanks & Regards
> > > Prakash
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde
> <er...@gmail.com> wrote:
> > >
> > > > Hi,
> > > >
> > > > I'm trying to abstract away different bug trackers such as Jira and
> Trac. If you use their respective Subversion Plugins - Jira relates
> "PROJECT-2" and Trac #2 to their respective issues. I would like to provide
> a uniform way for the user to add Issuekeys to the commit-log such as
> project/2. Furthermore to allow the Trac and Jira subversion plugins to
> recognise these tags I need subversion to expand the commitlogs.
> > > >
> > > > An example:
> > > >
> > > > The user enters "this issue is related to project/3"
> > > > Subversion expands this commit log to : "this issue is related to
> project/3 PROJECT-3 #3".
> > > >
> > > > Is it possible to tell subversion to do this (hopefully without
> recompiling - configuration or add-on /plug-in mechanism would be preferred)
> and how?
> > > >
> > > > Any ideas / suggestions would be deeply appreciated!
> > > >
> > > > Thanks, Erling
> > > >
> > >
> > >
> >
> >
> >
> > --
> > Med vennlig hilsen
> > Erling Wegger Linde
> >
> >
> > --
> > Med vennlig hilsen
> > Erling Wegger Linde
> >
>
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
--
Med vennlig hilsen
Erling Wegger Linde
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Add text to commit log
Posted by Erling Wegger Linde <er...@gmail.com>.
Thanks, one of these scripts even recognizes Trac issues!
So if I get it right, I create a file in /hooks named post-commit (no .sh?)
that will start a script.
I can then use code from
http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.plto
fetch the log message and then write it back using
svn propset -r * revision no* --revprop svn:log new message *URL
*
As long as I get the permissions and paths correct.
I'll try this out immediately :D
- Erling
On Mon, Mar 3, 2008 at 12:30 AM, Toby Thain <to...@telegraphics.com.au>
wrote:
>
> On 2-Mar-08, at 11:06 AM, Erling Wegger Linde wrote:
>
> Thanks for your tip, this looks very useful =)
>
> But how do I do this in practice? Do I need to write some kind of script
> that monitors SVN and checks for new commits? Or is it possible to make SVN
> to start such a script for each commit? Does someone have any best practices
> here? What scripting languages are used (I am mostly familiar with Java)?
>
>
>
> Actually you probably want to use a *post-commit* hook here. This can be
> written in any language you like (e.g. I use Perl or bash).
>
> Examples:
> http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-brief.sh
> http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-verbose.pl
>
> --Toby
>
>
>
> Thanks again,
> Erling (newbie :)
>
>
> On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary <pr...@gmail.com>
> wrote:
>
> >
> > Hi Erling,
> > I think,You can use post commit hook from there you can can call "svn
> > propset " to modify the log message in certain format.
> >
> > For example:
> > svn propset -r * revision no* --revprop svn:log new message *URL*
> >
> > For further informations:
> > http://subversion.tigris.org/faq.html#change-log-msg
> >
> > I wish it will help you.
> >
> > Thanks & Regards
> > Prakash
> >
> >
> >
> > On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde <er...@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I'm trying to abstract away different bug trackers such as Jira and
> > > Trac. If you use their respective Subversion Plugins - Jira relates
> > > "PROJECT-2" and Trac #2 to their respective issues. I would like to provide
> > > a uniform way for the user to add Issuekeys to the commit-log such as
> > > project/2. Furthermore to allow the Trac and Jira subversion plugins to
> > > recognise these tags I need subversion to expand the commitlogs.
> > >
> > > An example:
> > >
> > > The user enters "this issue is related to project/3"
> > > Subversion expands this commit log to : "this issue is related to
> > > project/3 PROJECT-3 #3".
> > >
> > > Is it possible to tell subversion to do this (hopefully without
> > > recompiling - configuration or add-on /plug-in mechanism would be preferred)
> > > and how?
> > >
> > > Any ideas / suggestions would be deeply appreciated!
> > >
> > > Thanks, Erling
> > >
> >
> >
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
>
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
>
>
>
--
Med vennlig hilsen
Erling Wegger Linde
Re: Add text to commit log
Posted by Toby Thain <to...@telegraphics.com.au>.
On 2-Mar-08, at 11:06 AM, Erling Wegger Linde wrote:
> Thanks for your tip, this looks very useful =)
>
> But how do I do this in practice? Do I need to write some kind of
> script that monitors SVN and checks for new commits? Or is it
> possible to make SVN to start such a script for each commit? Does
> someone have any best practices here? What scripting languages are
> used (I am mostly familiar with Java)?
Actually you probably want to use a post-commit hook here. This can
be written in any language you like (e.g. I use Perl or bash).
Examples:
http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-brief.sh
http://www.telegraphics.com.au/svn/jabberbots/trunk/post-commit-
verbose.pl
--Toby
>
>
> Thanks again,
> Erling (newbie :)
>
>
> On Thu, Feb 21, 2008 at 3:06 PM, prakash tiwary
> <pr...@gmail.com> wrote:
>
> Hi Erling,
> I think,You can use post commit hook from there you can can call
> "svn propset " to modify the log message in certain format.
>
> For example:
> svn propset -r revision no --revprop svn:log new message URL
>
> For further informations: http://subversion.tigris.org/
> faq.html#change-log-msg
>
> I wish it will help you.
>
> Thanks & Regards
> Prakash
>
>
>
> On Thu, Feb 21, 2008 at 4:07 PM, Erling Wegger Linde
> <er...@gmail.com> wrote:
> Hi,
>
> I'm trying to abstract away different bug trackers such as Jira and
> Trac. If you use their respective Subversion Plugins - Jira relates
> "PROJECT-2" and Trac #2 to their respective issues. I would like to
> provide a uniform way for the user to add Issuekeys to the commit-
> log such as project/2. Furthermore to allow the Trac and Jira
> subversion plugins to recognise these tags I need subversion to
> expand the commitlogs.
>
> An example:
>
> The user enters "this issue is related to project/3"
> Subversion expands this commit log to : "this issue is related to
> project/3 PROJECT-3 #3".
>
> Is it possible to tell subversion to do this (hopefully without
> recompiling - configuration or add-on /plug-in mechanism would be
> preferred) and how?
>
> Any ideas / suggestions would be deeply appreciated!
>
> Thanks, Erling
>
>
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde
>
>
>
> --
> Med vennlig hilsen
> Erling Wegger Linde