Re: [HACKERS] Current sources?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Current sources?
Date: 1998-05-23 17:19:12
Message-ID: 1967.895943952@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The Hermit Hacker <scrappy(at)hub(dot)org> writes:
>> Tom Ivar Helbekkmo <tih+mail(at)Hamartun(dot)Priv(dot)NO> writes:
>>>> Works fine for me, anyway. I'm running CVS 1.7.3 over RCS 5, and
>>>> it's pulling the PostgreSQL distribution in as I type.

I'm at the same point using cvs 1.9 and rcs 5.7. I also see the
bug that individual files are checked out with permissions 666.
(I've seen the same thing with Mozilla's anon CVS server, BTW.
So if it's a server config mistake rather than an outright CVS bug,
then at least Marc is in good company...)

> Odd...it was doing a 'second checkout' that screwed me, where i
> didn't think it worked...try doing 'cvs -d <> checkout -P pgsql' and tell
> me what that does...

I'd expect that to choke, because you've specified a nonexistent
repository...

Why would you need to do a second checkout anyway? Once you've got
a local copy of the CVS tree, cd'ing into it and saying "cvs update"
is the right way to pull an update.

BTW, "cvs checkout" is relatively inefficient across a slow link,
because it has to pull down each file separately. The really Right Way
to do this (again stealing a page from Mozilla) is to offer snapshot
tarballs that are images of a CVS checkout done locally at the server.
Then, people can pull a fresh fileset by downloading the tarball, and
subsequently use "cvs update" within that tree to grab updates.
In other words, the snapshot creation script should go something like

rm -rf pgsql
cvs -d :pserver:anoncvs(at)postgresql(dot)org:/usr/local/cvsroot co pgsql
tar cvfz postgresql.snapshot.tar.gz pgsql

I dunno how you're doing it now, but the snapshot does not contain
the CVS control files so it can't be used as a basis for "cvs update".

regards, tom lane

PS: for cvs operations across slow links, the Mozilla guys recommend
-z3 (eg, "cvs -z3 update") to apply gzip compression to the data being
transferred. I haven't tried this yet but it seems like a smart idea,
especially for a checkout.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1998-05-23 17:45:30 Re: [HACKERS] Current sources?
Previous Message The Hermit Hacker 1998-05-23 16:33:43 Re: [HACKERS] Current sources?