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

Re: About pre-revprop-change

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Mon, 8 Sep 2008 03:46:38 -0500

The example hook scripts are for non-Windows operating systems only.
On Windows, you'll have to rewrite them as batch files, or use
another scripting language that you have available and with which
you're familiar, like Perl, PHP, Python, Ruby... You would have to
install these languages.

On Windows, there is no execute bit; Windows knows which files are
executable based on the filename extension. On Windows, you can have
a hook script in batch (.bat), VisualBasic (I forget the extension),
or as a compiled executable (.exe). If you want to use another
scripting language, you have to write a wrapper in one of the
preceding supported types.

I haven't had to deploy any hook scripts on a Windows server so I
cannot help you further than that. Maybe someone else on the list can
provide more details if needed.

On Sep 8, 2008, at 3:14 AM, watanabe_at_belldata.co.jp wrote:

> Thank your very much for your quick response.
>
> But I'm ashamed to say, I don't have enough skill to understand
> your explanation easily.
> I created the object named "pre-revprop.change" in "hooks" folder
> by copying "pre-revprop-change.tmpl" in the folder.
> And I knew it's a UNIX like command, after checking the meaning of
> "chmod" on web site.
> Though the OS of my PC is windows, is it useful too ?
> If so, could you please explain about "execute bit" in detail ?
>
> Thank you and best regards.
>
> Fusako
>
>
>
>
> Ryan Schmidt <subversion-2008c_at_ryandesign.com>
> 2008/09/06 09:37
>
> $B08_at_h(B
> eg <egoots_at_gmail.com>
> cc
> watanabe_at_belldata.co.jp, users_at_subversion.tigris.org
> $B7oL>(B
> Re: About pre-revprop-change
>
>
>
>
>
>
> On Sep 5, 2008, at 1:48 PM, eg wrote:
>
> > watanabe_at_belldata.co.jp wrote:
> >
> >> I'm a biginner of SVN in Japan, I want to change the past log-
> >> message, but I got an error from SVN like 'Ask your administrator
> >> to create the hook of pre-revprop-change'. But there is no
> >> information about it in my manual and I have no idea about the
> >> administrator it's mentioned.
> >> Could someone teach me the way to change the log message or change
> >> past log-message ?
> >
> > It is also on the Subversion FAQ
> > see:
> >
> > http://subversion.tigris.org/faq.html#change-log-msg
>
> It is also provided for you in the script pre-revprop-change.tmpl in
> the hooks directory of your repository. This is an example script
> designed to show you how to write a pre-revprop-change hook, and the
> example given happens to be how to allow log messages to be changed.
> Simply copy the file pre-revprop-change.tmpl to pre-revprop.change
> (without an extension) and give the script the execute bit (for
> example with "chmod 755 pre-revprop-change") and that should be all.
> You may want to read the script too to see how it was done.

---------------------------------------------------------------------
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-08 10:47:09 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.