[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVSROOT redirection
From: |
Max Bowsher |
Subject: |
Re: CVSROOT redirection |
Date: |
Mon, 5 May 2003 14:33:59 +0100 |
Dusan Juhas wrote:
> Hi folks,
> is it possible to override CVSROOT in commitlog?
> I have 2 repositories. Let's call them _local_ and _remote_.
> _local_ is a read-only mirror of _remote_.
> I'd like to run all read-only cvs commands on _local_ (esp. co).
> The rest of commands should be used with _remote_.
> I'd like to check in _remote_ without changing administrative
> files in the sand box (even without changing CVSROOT).
> Is it possible to arrange an commitlog action which
> skips checkin in _local_ and redirects all actions to _remote_?
AFAIK, no, but if you are willing to patch and rebuild your cvs binary, you
can do something like this.
Attached is a tiny patch I use - I create the file CVSROOT/readonly within
read-only replica repositories, (and make sure to prevent the mirroring tool
from deleting it again), and then use an explicit -d option (but I use a
shell alias to minimize typing) when I need to do a tag/commit.
Max.
repo-readonly.patch
Description: Binary data