Re: CVS checkout source code for different branches

Lists: pgsql-hackers
From: M Z <jm80008(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: CVS checkout source code for different branches
Date: 2010-02-09 03:24:45
Message-ID: e824728e1002081924k246c634u4939d45e8506fd4b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi,

I am trying to checkout code from different branches (such as 8.3, 8.4).

I found a few ways to checkout code from CVS:
1. webCVS: http://anoncvs.postgresql.org/cvsweb.cgi/

2. cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot
co -P pgsql

3. $ rsync --progress -avzCH --delete anoncvs.postgresql.org::pgsql-cvs
$CVSROOT

However, how can I checkout code from different branches (such as 8.3, 8.4)?

Thank you.
M Z


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: M Z <jm80008(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-09 03:38:39
Message-ID: 4B70D8BF.7050504@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

M Z wrote:
> Hi,
>
> I am trying to checkout code from different branches (such as 8.3, 8.4).
>
> I found a few ways to checkout code from CVS:
> 1. webCVS: http://anoncvs.postgresql.org/cvsweb.cgi/
>
> 2. cvs -z3 -d
> :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot co
> -P pgsql
>
> 3. $ rsync --progress -avzCH --delete
> anoncvs.postgresql.org::pgsql-cvs $CVSROOT
>
> However, how can I checkout code from different branches (such as 8.3,
> 8.4)?

CVS is documented here, among other places:
<http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html>

To check out a particular branch such as REL8_4_STABLE, use the -r
option on the checkout command:

cvs checkout -r branchname

cheers

andrew


From: M Z <jm80008(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-09 04:04:51
Message-ID: e824728e1002082004k7cae8c99sbe07e608e4fc93b4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi Andrew,

Could you please give a little more detail how I can find different CVS
branches?

Thanks,
M Z

On Mon, Feb 8, 2010 at 10:38 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:

>
>
> M Z wrote:
>
>> Hi,
>>
>> I am trying to checkout code from different branches (such as 8.3, 8.4).
>>
>> I found a few ways to checkout code from CVS:
>> 1. webCVS: http://anoncvs.postgresql.org/cvsweb.cgi/
>>
>> 2. cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot
>> co -P pgsql
>>
>> 3. $ rsync --progress -avzCH --delete anoncvs.postgresql.org::pgsql-cvs
>> $CVSROOT
>>
>> However, how can I checkout code from different branches (such as 8.3,
>> 8.4)?
>>
>
>
> CVS is documented here, among other places: <
> http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html>
>
> To check out a particular branch such as REL8_4_STABLE, use the -r option
> on the checkout command:
>
> cvs checkout -r branchname
>
> cheers
>
> andrew
>
>
>
>
>


From: M Z <jm80008(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-09 04:24:46
Message-ID: e824728e1002082024s7018413ep37c5bd799cf8c936@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

For example, how can I list all the branches for postgresql 8.3 (and 8.4)?
Now I can checkout code using:
cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot
co -P pgsql

But I don't know when version it is, and I want get code from some
postgresql 8.3 and 8.4 branches but I don't know the their cvsroot

Thanks
M Z

On Mon, Feb 8, 2010 at 11:04 PM, M Z <jm80008(at)gmail(dot)com> wrote:

> Hi Andrew,
>
> Could you please give a little more detail how I can find different CVS
> branches?
>
> Thanks,
> M Z
>
>
>
> On Mon, Feb 8, 2010 at 10:38 PM, Andrew Dunstan <andrew(at)dunslane(dot)net>wrote:
>
>>
>>
>> M Z wrote:
>>
>>> Hi,
>>>
>>> I am trying to checkout code from different branches (such as 8.3, 8.4).
>>>
>>> I found a few ways to checkout code from CVS:
>>> 1. webCVS: http://anoncvs.postgresql.org/cvsweb.cgi/
>>>
>>> 2. cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot
>>> co -P pgsql
>>>
>>> 3. $ rsync --progress -avzCH --delete anoncvs.postgresql.org::pgsql-cvs
>>> $CVSROOT
>>>
>>> However, how can I checkout code from different branches (such as 8.3,
>>> 8.4)?
>>>
>>
>>
>> CVS is documented here, among other places: <
>> http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html>
>>
>> To check out a particular branch such as REL8_4_STABLE, use the -r option
>> on the checkout command:
>>
>> cvs checkout -r branchname
>>
>> cheers
>>
>> andrew
>>
>>
>>
>>
>>
>


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: M Z <jm80008(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-09 04:56:52
Message-ID: 4B70EB14.3090907@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


The only sane things to check out apart from HEAD are normally the
STABLE branches. For release m.n those are always called RELm_n_STABLE.
You can also get the tag set for a specific release. Those are called
RELm_n_o for m.n.o releases.

If you look at the output for "cvs log configure.in" you can see near
the top a list of tag sets under the heading "symbolic names".

HTH.

M Z wrote:
> For example, how can I list all the branches for postgresql 8.3 (and
> 8.4)? Now I can checkout code using:
> cvs -z3 -d
> :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot co
> -P pgsql
>
> But I don't know when version it is, and I want get code from some
> postgresql 8.3 and 8.4 branches but I don't know the their cvsroot
>
> Thanks
> M Z
>
> On Mon, Feb 8, 2010 at 11:04 PM, M Z <jm80008(at)gmail(dot)com
> <mailto:jm80008(at)gmail(dot)com>> wrote:
>
> Hi Andrew,
>
> Could you please give a little more detail how I can find
> different CVS branches?
>
> Thanks,
> M Z
>
>
>
> On Mon, Feb 8, 2010 at 10:38 PM, Andrew Dunstan
> <andrew(at)dunslane(dot)net <mailto:andrew(at)dunslane(dot)net>> wrote:
>
>
>
> M Z wrote:
>
> Hi,
>
> I am trying to checkout code from different branches (such
> as 8.3, 8.4).
>
> I found a few ways to checkout code from CVS:
> 1. webCVS: http://anoncvs.postgresql.org/cvsweb.cgi/
>
> 2. cvs -z3 -d
> :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot
> co -P pgsql
>
> 3. $ rsync --progress -avzCH --delete
> anoncvs.postgresql.org::pgsql-cvs $CVSROOT
>
> However, how can I checkout code from different branches
> (such as 8.3, 8.4)?
>
>
>
> CVS is documented here, among other places:
> <http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html>
>
> To check out a particular branch such as REL8_4_STABLE, use
> the -r option on the checkout command:
>
> cvs checkout -r branchname
>
> cheers
>
> andrew
>
>
>
>
>
>


From: M Z <jm80008(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-10 02:51:52
Message-ID: e824728e1002091851g4fc77fe5m3a0b31d543b0ac2a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi Andrew and all,

I am still struggling with the branch repositories. I tried to checkout from
branch repositories but got error no such repositories:

$ cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/REL8_4_STABLE
co -P pgsql
/projects/REL8_4_STABLE: no such repository

$ cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/REL8_3_STABLE
co -P pgsql
/projects/REL8_3_STABLE: no such repository

$ cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/REL8_4_STABLE
co -P pgsql
/REL8_4_STABLE: no such repository

$ cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/REL8_3_STABLE
co -P pgsql
/REL8_3_STABLE: no such repository

What are the correct repositories for these branch? Is there a way I can
list these branch repositories and how?

Many thanks,
M Z

On Mon, Feb 8, 2010 at 11:56 PM, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:

>
> The only sane things to check out apart from HEAD are normally the STABLE
> branches. For release m.n those are always called RELm_n_STABLE. You can
> also get the tag set for a specific release. Those are called RELm_n_o for
> m.n.o releases.
>
> If you look at the output for "cvs log configure.in" you can see near the
> top a list of tag sets under the heading "symbolic names".
>
> HTH.
>
>
>
> M Z wrote:
>
>> For example, how can I list all the branches for postgresql 8.3 (and 8.4)?
>> Now I can checkout code using:
>> cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot
>> co -P pgsql
>>
>> But I don't know when version it is, and I want get code from some
>> postgresql 8.3 and 8.4 branches but I don't know the their cvsroot
>>
>> Thanks
>> M Z
>>
>> On Mon, Feb 8, 2010 at 11:04 PM, M Z <jm80008(at)gmail(dot)com <mailto:
>> jm80008(at)gmail(dot)com>> wrote:
>>
>> Hi Andrew,
>>
>> Could you please give a little more detail how I can find
>> different CVS branches?
>>
>> Thanks,
>> M Z
>>
>>
>>
>> On Mon, Feb 8, 2010 at 10:38 PM, Andrew Dunstan
>> <andrew(at)dunslane(dot)net <mailto:andrew(at)dunslane(dot)net>> wrote:
>>
>>
>>
>> M Z wrote:
>>
>> Hi,
>>
>> I am trying to checkout code from different branches (such
>> as 8.3, 8.4).
>>
>> I found a few ways to checkout code from CVS:
>> 1. webCVS: http://anoncvs.postgresql.org/cvsweb.cgi/
>>
>> 2. cvs -z3 -d
>> :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:
>> /projects/cvsroot
>> co -P pgsql
>>
>> 3. $ rsync --progress -avzCH --delete
>> anoncvs.postgresql.org::pgsql-cvs $CVSROOT
>>
>> However, how can I checkout code from different branches
>> (such as 8.3, 8.4)?
>>
>>
>>
>> CVS is documented here, among other places:
>> <http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html>
>>
>> To check out a particular branch such as REL8_4_STABLE, use
>> the -r option on the checkout command:
>>
>> cvs checkout -r branchname
>>
>> cheers
>>
>> andrew
>>
>>
>>
>>
>>
>>
>>


From: M Z <jm80008(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>, alvherre(at)commandprompt(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-10 03:35:33
Message-ID: e824728e1002091935y26284792s8fae5ef2cfd4ac0f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Final, I tried:

$ cvs -z3 -d :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot
co -r REL8_3_STABLE -P pgsql

Checked file configure.in. Around line 20, there is line:
AC_INIT([PostgreSQL], [8.3.9], [pgsql-bugs(at)postgresql(dot)org])

Not sure that indicates version 8.3.9?

But still, is there a testing/developing version for 8.3? I remember Alvaro
made a patch to contrib/xml2/xpath.c. What is that version? and How can get
this version? Is there a way I can list all branches / versions in CVS
server?

*******************************************************************************
Index: contrib/xml2/xpath.c
==============================
=====================================
RCS file: /home/alvherre/Code/cvs/pgsql/contrib/xml2/xpath.c,v
retrieving revision 1.16.2.1
diff -c -p -r1.16.2.1 xpath.c
*** contrib/xml2/xpath.c 26 Mar 2008 01:19:11 -0000 1.16.2.1
--- contrib/xml2/xpath.c 27 Jan 2010 15:30:56 -0000
*************** xpath_table(PG_FUNCTION_ARGS)
*** 793,798 ****
--- 793,801 ----
*/
pgxml_parser_init();

+ PG_TRY();
+ {
+
/* For each row i.e. document returned from SPI */
for (i = 0; i < proc; i++)
{
*************** xpath_table(PG_FUNCTION_ARGS)
*** 929,934 ****
--- 932,944 ----
if (xmldoc)
pfree(xmldoc);
}
+ }
+ PG_CATCH();
+ {
+ xmlCleanupParser();
+ PG_RE_THROW();
+ }
+ PG_END_TRY();

xmlCleanupParser();
/* Needed to flag completeness in 7.3.1. 7.4 defines it as a no-op. */
*******************************************************************************


From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: M Z <jm80008(at)gmail(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, alvherre(at)commandprompt(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-10 03:43:39
Message-ID: 603c8f071002091943i1d042f72h4e81825cc4287570@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Tue, Feb 9, 2010 at 10:35 PM, M Z <jm80008(at)gmail(dot)com> wrote:
> Final, I tried:
>
> $ cvs -z3 -d
> :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot co -r
> REL8_3_STABLE -P pgsql
>
> Checked file configure.in. Around line 20, there is line:
>  AC_INIT([PostgreSQL], [8.3.9], [pgsql-bugs(at)postgresql(dot)org])
>
> Not sure that indicates version 8.3.9?
>
> But still, is there a testing/developing version for 8.3?

REL8_3_STABLE is the head of the stable branch for 8.3. It says 8.3.9
right now because 8.3.9 is the last release that was stamped off that
branch, but what you checked out actually has any changes backpatched
since then on it as well.

> I remember Alvaro
> made a patch to contrib/xml2/xpath.c. What is that version? and How can get
> this version?

That patch hasn't been applied yet. You have to download it from his
message and apply it to your local copy using the "patch" program.

> Is there a way I can list all branches / versions in CVS server?

Andrew already answered that question in his previous message: use cvs
log on a file that's been around for a long time, like configure.in.

It sounds like you need to find some documentation for CVS and read
it, and/or find a CVS help mailing list and post to it.

...Robert


From: M Z <jm80008(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, alvherre(at)commandprompt(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-10 03:49:44
Message-ID: e824728e1002091949p63ededcaw87cfe58820a56b30@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Thanks Robert,

Your reply helps a lot. Just right after sending post, I found the way to
list all branches in the CVS server.

Best,
M Z

On Tue, Feb 9, 2010 at 10:43 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:

> On Tue, Feb 9, 2010 at 10:35 PM, M Z <jm80008(at)gmail(dot)com> wrote:
> > Final, I tried:
> >
> > $ cvs -z3 -d
> > :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot co -r
> > REL8_3_STABLE -P pgsql
> >
> > Checked file configure.in. Around line 20, there is line:
> > AC_INIT([PostgreSQL], [8.3.9], [pgsql-bugs(at)postgresql(dot)org])
> >
> > Not sure that indicates version 8.3.9?
> >
> > But still, is there a testing/developing version for 8.3?
>
> REL8_3_STABLE is the head of the stable branch for 8.3. It says 8.3.9
> right now because 8.3.9 is the last release that was stamped off that
> branch, but what you checked out actually has any changes backpatched
> since then on it as well.
>
> > I remember Alvaro
> > made a patch to contrib/xml2/xpath.c. What is that version? and How can
> get
> > this version?
>
> That patch hasn't been applied yet. You have to download it from his
> message and apply it to your local copy using the "patch" program.
>
> > Is there a way I can list all branches / versions in CVS server?
>
> Andrew already answered that question in his previous message: use cvs
> log on a file that's been around for a long time, like configure.in.
>
> It sounds like you need to find some documentation for CVS and read
> it, and/or find a CVS help mailing list and post to it.
>
> ...Robert
>


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: M Z <jm80008(at)gmail(dot)com>
Cc: alvherre(at)commandprompt(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: CVS checkout source code for different branches
Date: 2010-02-10 03:53:50
Message-ID: 4B722DCE.7030004@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

M Z wrote:
> Final, I tried:
>
> $ cvs -z3 -d
> :pserver:anoncvs:password(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot co
> -r REL8_3_STABLE -P pgsql
>
> Checked file configure.in <http://configure.in>. Around line 20, there
> is line:
> AC_INIT([PostgreSQL], [8.3.9], [pgsql-bugs(at)postgresql(dot)org
> <mailto:pgsql-bugs(at)postgresql(dot)org>])
>
> Not sure that indicates version 8.3.9?
>
> But still, is there a testing/developing version for 8.3? I remember
> Alvaro made a patch to contrib/xml2/xpath.c. What is that version? and
> How can get this version? Is there a way I can list all branches /
> versions in CVS server?
>

I've already told you how to see all the tags/branches - use the "cvs
log" command on a longstanding file like "configure.in".

REL8_3_STABLE is the branch to develop against for the 8.3 series of
releases. But unless you're fixing a bug it's pointless - we never add
features to the stable branches, we only make bug fixes. And for this
purpose bugs are defined fairly conservatively. All feature work should
normally be done against HEAD.

What exactly are you wanting to do with the back branches?

cheers

andrew