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

Re: Commit script to check what OS and/or version the svn client was running??

From: Andy Levy <andy.levy_at_gmail.com>
Date: Thu, 16 Apr 2009 21:02:07 -0400

On Thu, Apr 16, 2009 at 20:48, Ashwin Chandra <achandra_at_panologic.com> wrote:
> Right, I don't want to reject them , I just want to warn them and let
> them continue with the checkin. For example, Tortoise says "You are
> about to commit without a Bug ID, do you wish to continue?".

You can't do this. A pre-commit hook can either allow the commit to
proceed, or reject it. As I stated earlier, hook scripts are not
interactive - they cannot prompt the user & then take action based on
the response.

> -----Original Message-----
> From: Andy Levy [mailto:andy.levy_at_gmail.com]
> Sent: Thursday, April 16, 2009 5:47 PM
> To: Ashwin Chandra
> Cc: users_at_subversion.tigris.org
> Subject: Re: Commit script to check what OS and/or version the svn
> client was running??
>
> On Thu, Apr 16, 2009 at 20:41, Ashwin Chandra <achandra_at_panologic.com>
> wrote:
>> Hmm thanks Andy. The reason why I ask is because I am using bugtraq
>> properties. On windows, tortoise client will prompt and warn the user
> to
>> enter in a bug number. But on command line clients (such as on Linux)
>> there is nothing of the sort. I am trying to get a similar prompt to
> the
>> command line clients. Do you know of any way to do this?
>
> Write your pre-commit hook to check for the condition, and reject the
> commit with a message indicating they're missing.
>
>> -----Original Message-----
>> From: Andy Levy [mailto:andy.levy_at_gmail.com]
>> Sent: Thursday, April 16, 2009 5:37 PM
>> To: Ashwin Chandra
>> Cc: users_at_subversion.tigris.org
>> Subject: Re: Commit script to check what OS and/or version the svn
>> client was running??
>>
>> On Thu, Apr 16, 2009 at 19:14, ACHANDRA <achandra_at_panologic.com>
> wrote:
>>> Is there a way in the pre-commit script to check what OS the client
>> was
>>> running?
>>
>> I've never seen any reference to this information being sent to the
>> server.
>>
>>>
>>> Also is there a way to ask for input or a question during a
> pre-commit
>> and
>>> have the svn client side respond? (like a simple yes/no?)
>>
>> Hook scripts are not interactive.
>>
>

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-17 03:03:37 CEST

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