Date: Sat, 2 Aug 2003 21:49:00 +0200 From: "Simon L. Nielsen" <simon@FreeBSD.org> To: Brian Reichert <reichert@numachi.com> Cc: freebsd-hackers@freebsd.org Subject: Re: messing with CVS_LOCAL_BRANCH_NUM Message-ID: <20030802194859.GD395@FreeBSD.org> In-Reply-To: <20030802193548.GH969@numachi.com> References: <20030802193548.GH969@numachi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 > <http://www.scriptkiddie.org/freebsd/setting_up_local_repo.html> [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: <nocommits.sh> #! /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 </nocommits.sh> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030802194859.GD395>