RE: [PATCHES] JDBC Patch

From: Peter Mount <petermount(at)maidstone(dot)gov(dot)uk>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Mount <petermount(at)maidstone(dot)gov(dot)uk>
Cc: "'Bruce Momjian'" <pgman(at)candle(dot)pha(dot)pa(dot)us>, Christopher Cain <ccain(at)mhsoftware(dot)com>, pgsql-interfaces(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: RE: [PATCHES] JDBC Patch
Date: 2000-09-12 07:19:33
Message-ID: 1B3D5E532D18D311861A00600865478CF1B3AB@exchange1.nt.maidstone.gov.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-patches

Thanks, this follows previous experience where I've had to check out a fresh
set, run diff, and then merge by hand. It's just more tedious with only a
28k connection.

Peter

--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount(at)maidstone(dot)gov(dot)uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Tuesday, September 12, 2000 8:16 AM
To: Peter Mount
Cc: 'Bruce Momjian'; Christopher Cain; pgsql-interfaces(at)postgresql(dot)org;
pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCHES] JDBC Patch

Peter Mount <petermount(at)maidstone(dot)gov(dot)uk> writes:
> Eeek, I've got this in my copy ready to commit. How is CVS going to handle
> this problem?

You'll have to "cvs update" those files and then check that the changes
were merged correctly before you commit. I believe CVS will not let
you commit a file in which there are changes since your last cvs update.

Although "cvs update" will try to merge the changes from the repository
with your local edits, my experience is that CVS is not too bright about
merging overlapping differences. I prefer to do the change merge by
hand --- move my modified files someplace else, cvs update to fetch
clean current copies, then edit to bring the files back in sync. This
process is a bit tedious, but much more reliable than CVS by itself.

Jan Wieck has posted about his preferred method, which IIRC involves
working in a complete separate copy of the source tree, and then
using "diff -c -R" to generate a summary of his changes. Then he
cvs update's his reference tree and uses "patch" to apply the
diff output to it, followed by hand cleanup of whatever merges patch
couldn't handle. This is probably a better way if you plan to do
a large pile of changes between syncs with the repository.

regards, tom lane

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2000-09-12 14:10:48 Re: [PATCHES] JDBC Patch
Previous Message Tom Lane 2000-09-12 07:16:20 Re: [PATCHES] JDBC Patch

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2000-09-12 14:09:29 Re: JDBC: redundant String allocations removed
Previous Message Tom Lane 2000-09-12 07:16:20 Re: [PATCHES] JDBC Patch