git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] cvsserver: Note that CVS_SERVER can also be specified as method variable

From
Frank Lichtenheld <frank@lichtenheld.de>
Date
May 27, 2007, 12:33 UTC
Message-ID
<1180269200838-git-send-email-frank@lichtenheld.de>
In-Reply-To
<1180269190126-git-send-email-frank@lichtenheld.de>

Reasonably new versions of the cvs CLI client allow one to specifiy CVS_SERVER as a method variable directly in CVSROOT. This is way more convinient than using an environment variable since it gets saved in CVS/Root.

Since I only discovered this by accident I guess there might be others out there that learnt CVS on the 1.11 series (or even earlier) and profit from such a note about cvs improvements in the last couple years.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
---
 Documentation/git-cvsserver.txt |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-cvsserver.txt b/Documentation/git-cvsserver.txt
index 9f0d990..ca7579d 100644
--- a/Documentation/git-cvsserver.txt
+++ b/Documentation/git-cvsserver.txt
@@ -57,7 +57,17 @@ looks like
 ------
 No special setup is needed for SSH access, other than having GIT tools
 in the PATH. If you have clients that do not accept the CVS_SERVER
-env variable, you can rename git-cvsserver to cvs.
+environment variable, you can rename git-cvsserver to cvs.
+
+Note: Newer cvs versions (>= 1.12.11) also support specifying
+CVS_SERVER directly in CVSROOT like
+
+------
+cvs -d ":ext;CVS_SERVER=git-cvsserver:user@server/path/repo.git" co <HEAD_name>
+------
+This has the advantage that it will be saved in your 'CVS/Root' files and
+you don't need to worry about always setting the correct environment
+variable.
 --
 2. For each repo that you want accessible from CVS you need to edit config in
    the repo and add the following section.
-- 
1.5.2-rc3.GIT
Previous: Frank LichtenheldNext: Frank Lichtenheld
Message 3 of 6 in “Various git-cvsserver patches”
  1. Frank LichtenheldMay 27, 2007
  2. cvsserver: Correct inetd.conf example in asciidoc documentationFrank Lichtenheld, May 27, 2007
  3. cvsserver: Note that CVS_SERVER can also be specified as method variableFrank Lichtenheld, May 27, 2007
  4. cvsserver: Fix some typos in asciidoc documentationFrank Lichtenheld, May 27, 2007
  5. t9400: Work around CVS' deficienciesFrank Lichtenheld, May 27, 2007
  6. cvsserver: Handle 'cvs login'Frank Lichtenheld, May 27, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.