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

Re: Interactive Hooks

From: Tom Browder <tom.browder_at_gmail.com>
Date: Sun, 14 Jun 2009 07:20:30 -0500

On Sun, Jun 14, 2009 at 06:59, Ryan
Schmidt<subversion-2009b_at_ryandesign.com> wrote:
> On Jun 14, 2009, at 06:46, Tom Browder wrote:
>
>> I would like to have a pre-commit hook script that asks for
>> confirmation when adding a new file that is a non-ascii file.
>>
>> Is that possible?
>
> It's not possible, sorry. The only way in which a pre-commit hook script can
> communicate with the client is by returning a nonzero exit code and printing
> a message to stderr, thereby blocking the commit.

I guess then the easiest thing is to run 'file' on new files to be
added--completely relying on a mere mortal to do the right thing.

Oh, well, thanks.

Regards,

-Tom

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361960

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-14 14:21:33 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.