From marc@blackend.org Mon May 27 02:35:09 2002 Return-Path: Received: from abigail.blackend.org (blackend.org [212.11.50.35]) by hub.freebsd.org (Postfix) with ESMTP id 8029A37B406 for ; Mon, 27 May 2002 02:35:07 -0700 (PDT) Received: from abigail.blackend.org (localhost [127.0.0.1]) by abigail.blackend.org (8.12.3/8.12.3/ - 15/04/02) with ESMTP id g4R9Xf6f054164 for ; Mon, 27 May 2002 11:33:41 +0200 (CEST) (envelope-from marc@abigail.blackend.org) Received: (from marc@localhost) by abigail.blackend.org (8.12.3/8.12.3/Submit) id g4R9Xf1I054163; Mon, 27 May 2002 11:33:41 +0200 (CEST) (envelope-from marc) Message-Id: <200205270933.g4R9Xf1I054163@abigail.blackend.org> Date: Mon, 27 May 2002 11:33:41 +0200 (CEST) From: Marc Fonvieille Reply-To: Marc Fonvieille To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: Tags addition and minor changes to cvsup-advanced article X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 38603 >Category: docs >Synopsis: Tags addition and minor changes to cvsup-advanced article >Confidential: no >Severity: non-critical >Priority: low >Responsible: blackend >State: closed >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon May 27 02:40:01 PDT 2002 >Closed-Date: Sun Jun 30 13:40:37 PDT 2002 >Last-Modified: Sun Jun 30 13:40:37 PDT 2002 >Originator: Marc Fonvieille >Release: FreeBSD 4.6-PRERELEASE i386 >Organization: >Environment: System: FreeBSD abigail.blackend.org 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #5: Sun May 12 00:30:43 CEST 2002 marc@abigail.blackend.org:/usr/src/sys/compile/ABIGAIL i386 >Description: Tags addition and minor changes to cvsup-advanced article: - the software package CVSup should be tagged as an application - the command cvsup should be tagged as a command - quote tags should be used instead of "" - a script should be tagged as a command - supfile should be tagged as a filename - all supfile's tag fields should be in literal - no punctuation in a title Read the patch below for more details. >How-To-Repeat: >Fix: Apply the patch to articles/cvsup-advanced/article.sgml --- article.sgml.diff begins here --- --- article.sgml.orig Sun May 26 23:45:41 2002 +++ article.sgml Mon May 27 11:17:32 2002 @@ -25,9 +25,9 @@ $FreeBSD: doc/en_US.ISO8859-1/articles/cvsup-advanced/article.sgml,v 1.5 2002/05/26 21:45:41 keramida Exp $ - The present article assumes a basic understanding of CVSup + The present article assumes a basic understanding of CVSup operation. It documents several delicate issues connected with - source synchronization via CVSup, viz. effective solutions to + source synchronization via CVSup, viz. effective solutions to the problem of stale files as well as special source updating cases; which issues are likely to cause apparently inexplicable troubles. @@ -38,7 +38,7 @@ Preface This document is the fruit of the author's attempts to - fully understand the niceties of cvsup & source updating. :-) + fully understand the niceties of cvsup & source updating. :-) While the author has made every effort to make these pages as informative and correct as possible, he is only human and may have made all sorts of typos, mistakes, etc. He will be @@ -66,12 +66,12 @@ your base is /usr. A checkouts file contains information on the current status - of your sources -- in a way, a sort of "photograph". This - significant information enables cvsup to retrieve updates most - effectively. Further, and maybe more important, it enables cvsup + of your sources -- in a way, a sort of photograph. This + significant information enables cvsup to retrieve updates most + effectively. Further, and maybe more important, it enables cvsup to correctly manage your sources by locally deleting any files no longer present in the repository, thus leaving no stale files - on your system. In fact, without a checkouts file, cvsup would + on your system. In fact, without a checkouts file, cvsup would NOT know which files your collection was composed of (cf &man.cvsup.1; and the fallback method for details); as a result, it could NOT delete on your system those files no longer present @@ -82,15 +82,15 @@ have got(ten) your installation CDs. It is therefore recommended that you adopt the two-step procedure - outlined in the Cvsup FAQ (cf Q12, Q13); in subsequent sections, you + outlined in the CVSup FAQ (cf Q12, Q13); in subsequent sections, you will be given interesting and instructive concrete examples. - A useful python script: cvsupchk + A useful python script: <command>cvsupchk</command> Alternatively, in order to examine your sources for - inconsistencies, you may wish to utilize the cvsupchk python + inconsistencies, you may wish to utilize the cvsupchk python script; which script is currently found in /usr/ports/net/cvsup/work/cvsup-16.1/contrib/cvsupchk, together with a nice README. Prerequisites: @@ -121,7 +121,7 @@ &prompt.user; /path/to/cvsupchk -d /usr -c /usr/sup/src-all/checkouts.cvs:RELENG_4 | more - In each case, cvsupchk will inspect your sources for + In each case, cvsupchk will inspect your sources for inconsistencies by utilizing the information contained in the related checkouts file. Such anomalies as deleted files being present (aka stale files), missing checked-out files, extra RCS @@ -138,17 +138,17 @@ How to safely change tags when updating -<literal>src-all.</literal> +src-all - If you specify eg tag=A in your supfile, cvsup will create + If you specify eg tag=A in your supfile, cvsup will create a checkouts file called checkouts.cvs:A: - for instance, if tag=RELENG_4, a checkouts file called + for instance, if tag=RELENG_4, a checkouts file called checkouts.cvs:RELENG_4 is generated. This file will be used to retrieve and/or store information identifying your 4-STABLE sources. When tracking src-all, if you wish to - pass from tag=A to tag=B (A less/greater than B not making + pass from tag=A to tag=B (A less/greater than B not making any difference) and if your checkouts file is checkouts.cvs:A, the following actions should be performed: @@ -162,17 +162,17 @@ - write a supfile whose collection line reads: + write a supfile whose collection line reads: src-all tag=B - cvsup your sources using the new supfile. + cvsup your sources using the new supfile. - Cvsup will look for checkouts.cvs:B - -- in that the target is B; that is, cvsup will make use of + The utility cvsup will look for checkouts.cvs:B + -- in that the target is B; that is, cvsup will make use of the information contained therein to correctly manage your sources. @@ -185,15 +185,15 @@ - less load is placed on the server, in that cvsup + less load is placed on the server, in that cvsup operates in the most efficient way. - For example, A=RELENG_4, B=. The period in "B=." means + For example, A=RELENG_4, B=.. The period in B=. means -CURRENT. This is a rather typical update, from 4-STABLE - to -CURRENT. While it is straightforward to "downgrade" your + to -CURRENT. While it is straightforward to downgrade your sources (eg from -CURRENT to -STABLE), downgrading a system is quite another matter. You are STRONGLY advised not to attempt such an operation, unless you know exactly what you @@ -203,24 +203,24 @@ Updating to the same tag as of a different date - If you wish to switch from "tag=A" to "tag=A" as of a - different GMT date (say, "date=D"), you will execute the + If you wish to switch from tag=A to tag=A as of a + different GMT date (say, date=D), you will execute the following: - write a supfile whose collection line reads: + write a supfile whose collection line reads: src-all tag=A date=D - update your sources using the new supfile + update your sources using the new supfile Whether the new date precedes that of the last sync - operation with tag=A or not, it is immaterial. For example, - in order to specify the date "August 27, 2000, 10:00:00 GMT" + operation with tag=A or not, it is immaterial. For example, + in order to specify the date August 27, 2000, 10:00:00 GMT you write the line: @@ -237,19 +237,19 @@ is called checkouts.cvs:A (eg checkouts.cvs:RELENG_4). As a result, no particular action is needed in order to revert to the - previous state: you have to modify the date in the supfile, - and csvup again. + previous state: you have to modify the date in the supfile, + and run csvup again. Updating your ports collection for the first time - Since ports are tagged "." (ie -CURRENT), you can - correctly "sync" them for the first time by adding the date + Since ports are tagged . (ie -CURRENT), you can + correctly sync them for the first time by adding the date keyword (cf &man.cvsup.1; for the exact format): you should - specify a date as close as possible to that of "shipping" of - your ports tree. After cvsup has correctly created the ports + specify a date as close as possible to that of shipping of + your ports tree. After cvsup has correctly created the ports checkouts file, which is precisely the goal of this first special sync operation, the date field must be removed; all subsequent updates will be carried out smoothly. --- article.sgml.diff ends here --- >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-doc->blackend Responsible-Changed-By: blackend Responsible-Changed-When: Sat Jun 29 13:42:52 PDT 2002 Responsible-Changed-Why: I'm the originator :) http://www.freebsd.org/cgi/query-pr.cgi?pr=38603 State-Changed-From-To: open->closed State-Changed-By: blackend State-Changed-When: Sun Jun 30 13:40:08 PDT 2002 State-Changed-Why: Committed. http://www.freebsd.org/cgi/query-pr.cgi?pr=38603 >Unformatted: