[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testing for running via psserve

From: Mark D. Baushke
Subject: Re: testing for running via psserve
Date: Mon, 19 May 2003 17:55:33 -0700

David A Uebele <address@hidden> writes:

> Any suggestions for a simply way to test if a cvs commit is
> going through pserver or via straight cvs commit on the local
> machine?

Why does this matter?

> I'm thinking test CVSROOT value to see if it includes ":"
> need to add some tests to a perl script called by commitinfo...

On the server side of the client/server connection, the CVSROOT looks
like a simple pathname to the files on the local filesystem.

The most likely distinction might be that you are passing the ${USER}
token on the commitinfo line. If you are mapping your usernames into
fewer pserver accounts, then comparing that value with the real
enviornment value of USER might help make the distinction you desire.

        Good luck,
        -- Mark

reply via email to

[Prev in Thread] Current Thread [Next in Thread]