From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 2 12:49:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15A4237B401 for ; Sat, 2 Aug 2003 12:49:03 -0700 (PDT) Received: from arthur.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66DAC43F3F for ; Sat, 2 Aug 2003 12:49:02 -0700 (PDT) (envelope-from simon@arthur.nitro.dk) Received: by arthur.nitro.dk (Postfix, from userid 1000) id A323B10BFA8; Sat, 2 Aug 2003 21:49:00 +0200 (CEST) Date: Sat, 2 Aug 2003 21:49:00 +0200 From: "Simon L. Nielsen" To: Brian Reichert Message-ID: <20030802194859.GD395@FreeBSD.org> References: <20030802193548.GH969@numachi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline In-Reply-To: <20030802193548.GH969@numachi.com> User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: messing with CVS_LOCAL_BRANCH_NUM X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2003 19:49:03 -0000 --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.08.02 15:35:48 -0400, Brian Reichert wrote: > I'm exploring the 'local repository' tactics as described in: >=20 > [snip] > > cvs ci src > cvs commit: Examining src > You are committing on the wrong repository! > cvs commit: Pre-commit check failed > cvs [commit aborted]: correct above errors first! >=20 > Where is this 'wrong repository' concept coming from? My CVSROOT > hasn't changed. A google search for that disgnostic message yeilds > no hits... The problem is the file CVSROOT/nocommits.sh, which is used as a safeguard in the FreeBSD tree. I replace the file every time I run cvsup with the following version: #! /bin/sh # $FreeBSD$ # # This is just some basic anti-foot-shooting to avoid accidental commits # to cvsup'ed copies of the repository etc. OKUSER=3D"simonln" if [ "x`/usr/bin/id -un`" =3D "x${OKUSER}" ]; then exit 0 fi echo "I should only commit as ${OKUSER}!" exit 1 You could just make a simple script which call 'exit 0' (or perhaps remove the file; I haven't tried that), but the above version fits better into my rather odd setup :-). I have started some work on documenting the CVS_LOCAL_BRANCH_NUM use, but unfortunatly there are only 24 hours in a day, so I have no idea when I will get around to finishing it. --=20 Simon L. Nielsen FreeBSD Documentation Team --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/LBWrh9pcDSc1mlERAtRWAKCh8l6ITguHnqrK6jdGth2/GM2tuACgq7Uv 4MhfMZrbOslrZdlfDQt5riU= =9Tiv -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs--