Re: [PATCHES] [DOCS] OS/X startup scripts

2007-05-19 Thread Gregory Stark
"Tom Lane" <[EMAIL PROTECTED]> writes:

> David Fetter <[EMAIL PROTECTED]> writes:
>> I haven't included the customary diffs.  This points me to some of the
>> many deficiencies of CVS, namely that I would need write access in
>> order to have it create a diff,
>
> Strange, it works fine for everyone else.

If you have rsh/ssh access to a CVS repository then you do in fact need write
access just to generate diffs. It is one of the annoyances of CVS but it
doesn't really matter for Postgres where we use pserver anonymous access.

Personally I find CVS so terribly slow for large trees like Postgres that it's
essential to use rsync to maintain a local CVS repository. That makes 'cvs
diff' remarkably fast.

-- 
  Gregory Stark
  EnterpriseDB  http://www.enterprisedb.com


---(end of broadcast)---
TIP 6: explain analyze is your friend


Re: [PATCHES] [DOCS] OS/X startup scripts

2007-05-19 Thread Heikki Linnakangas

Gregory Stark wrote:

"Tom Lane" <[EMAIL PROTECTED]> writes:


David Fetter <[EMAIL PROTECTED]> writes:

I haven't included the customary diffs.  This points me to some of the
many deficiencies of CVS, namely that I would need write access in
order to have it create a diff,

Strange, it works fine for everyone else.


If you have rsh/ssh access to a CVS repository then you do in fact need write
access just to generate diffs. It is one of the annoyances of CVS but it
doesn't really matter for Postgres where we use pserver anonymous access.


You need write-access to add files, even on anonymouse server. We often 
get patches with new files as separate attachments because of that.



Personally I find CVS so terribly slow for large trees like Postgres that it's
essential to use rsync to maintain a local CVS repository. That makes 'cvs
diff' remarkably fast.


Yeah, I've done that for a long time. It's by far the best way to work 
with CVS, "cvs add" works, and you can do diffs, checkouts etc. offline.


--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating at

   http://www.postgresql.org/about/donate


Re: [PATCHES] [DOCS] OS/X startup scripts

2007-05-19 Thread Gregory Stark
"Heikki Linnakangas" <[EMAIL PROTECTED]> writes:

> You need write-access to add files, even on anonymouse server. We often get
> patches with new files as separate attachments because of that.

Oh quite right. I had forgotten but that was the original reason I switched to
using rsync. The alternative is to manually edit the Entries files to list the
new files.

-- 
  Gregory Stark
  EnterpriseDB  http://www.enterprisedb.com


---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings


Re: [PATCHES] [DOCS] OS/X startup scripts

2007-05-19 Thread Greg Smith

On Mon, 14 May 2007, Gregory Stark wrote:


Personally I find CVS so terribly slow for large trees like Postgres that it's
essential to use rsync to maintain a local CVS repository. That makes 'cvs
diff' remarkably fast.


Having recently tried to get this to work right and not quite nailed it 
down yet, I know it would be a help to new developers if someone using 
this technique would write out a suggested setup/workflow for generating 
patches this way.  Right now the best instructions out there are those 
that go with the buildfarm


http://pgfoundry.org/docman/view.php/140/4/PGBuildFarm-HOWTO.txt

and those aren't quite focused right if the goal is to work on new patches 
while keeping in sync with the repository.


--
* Greg Smith [EMAIL PROTECTED] http://www.gregsmith.com Baltimore, MD

---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating at

   http://www.postgresql.org/about/donate


Re: [PATCHES] [DOCS] OS/X startup scripts

2007-05-19 Thread Heikki Linnakangas

Jim C. Nasby wrote:

BTW, is there some trick to getting cvs diff to ignore files that aren't
in the repo?


Trick? That's what it does by default.

--
  Heikki Linnakangas
  EnterpriseDB   http://www.enterprisedb.com

---(end of broadcast)---
TIP 4: Have you searched our list archives?

  http://archives.postgresql.org


Re: [PATCHES] [DOCS] OS/X startup scripts

2007-05-19 Thread Gregory Stark
"David Fetter" <[EMAIL PROTECTED]> writes:

> On Wed, May 16, 2007 at 09:12:23AM +0100, Heikki Linnakangas wrote:
>> Jim C. Nasby wrote:
>> >BTW, is there some trick to getting cvs diff to ignore files that
>> >aren't in the repo?
>> 
>> Trick? That's what it does by default.
>
> I suspect he's talking about all the lines starting with '?' that diff
> produces.
>
> Lacking sophistication, I've been known to do:
>
> cvs diff [list of files here] |grep -v '^?' > the_file.diff

Those lines go to stderr. If you do "cvs diff > file" it spits out all the cvs
file statuses to the terminal but dumps the diff to the file.

It doesn't matter, diffs can contain arbitrary junk between the file diffs.
patch only looks at the things it recognizes.


-- 
  Gregory Stark
  EnterpriseDB  http://www.enterprisedb.com


---(end of broadcast)---
TIP 4: Have you searched our list archives?

   http://archives.postgresql.org