Re: [HACKERS] CVS checkout source code for different branches

2010-02-09 Thread M Z
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:passw...@anoncvs.postgresql.org:/projects/REL8_4_STABLE
co -P pgsql
/projects/REL8_4_STABLE: no such repository

$ cvs -z3 -d 
:pserver:anoncvs:passw...@anoncvs.postgresql.org:/projects/REL8_3_STABLE
co -P pgsql
/projects/REL8_3_STABLE: no such repository

$ cvs -z3 -d :pserver:anoncvs:passw...@anoncvs.postgresql.org:/REL8_4_STABLE
co -P pgsql
/REL8_4_STABLE: no such repository

$ cvs -z3 -d :pserver:anoncvs:passw...@anoncvs.postgresql.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 and...@dunslane.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:passw...@anoncvs.postgresql.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 jm80...@gmail.com mailto:
 jm80...@gmail.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
and...@dunslane.net mailto:and...@dunslane.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:passw...@anoncvs.postgresql.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









Re: [HACKERS] CVS checkout source code for different branches

2010-02-09 Thread M Z
Final, I tried:

$ cvs -z3 -d :pserver:anoncvs:passw...@anoncvs.postgresql.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-b...@postgresql.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.c26 Mar 2008 01:19:11 -  1.16.2.1
--- contrib/xml2/xpath.c27 Jan 2010 15:30:56 -
*** 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. */
***


Re: [HACKERS] CVS checkout source code for different branches

2010-02-09 Thread Robert Haas
On Tue, Feb 9, 2010 at 10:35 PM, M Z jm80...@gmail.com wrote:
 Final, I tried:

 $ cvs -z3 -d
 :pserver:anoncvs:passw...@anoncvs.postgresql.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-b...@postgresql.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

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] CVS checkout source code for different branches

2010-02-09 Thread M Z
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 robertmh...@gmail.com wrote:

 On Tue, Feb 9, 2010 at 10:35 PM, M Z jm80...@gmail.com wrote:
  Final, I tried:
 
  $ cvs -z3 -d
  :pserver:anoncvs:passw...@anoncvs.postgresql.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-b...@postgresql.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



Re: [HACKERS] CVS checkout source code for different branches

2010-02-09 Thread Andrew Dunstan



M Z wrote:

Final, I tried:

$ cvs -z3 -d 
:pserver:anoncvs:passw...@anoncvs.postgresql.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-b...@postgresql.org 
mailto:pgsql-b...@postgresql.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

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


[HACKERS] CVS checkout source code for different branches

2010-02-08 Thread M Z
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:passw...@anoncvs.postgresql.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


Re: [HACKERS] CVS checkout source code for different branches

2010-02-08 Thread Andrew Dunstan



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:passw...@anoncvs.postgresql.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





--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] CVS checkout source code for different branches

2010-02-08 Thread M Z
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 and...@dunslane.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:passw...@anoncvs.postgresql.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







Re: [HACKERS] CVS checkout source code for different branches

2010-02-08 Thread M Z
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:passw...@anoncvs.postgresql.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 jm80...@gmail.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 and...@dunslane.netwrote:



 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:passw...@anoncvs.postgresql.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








Re: [HACKERS] CVS checkout source code for different branches

2010-02-08 Thread Andrew Dunstan


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:passw...@anoncvs.postgresql.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 jm80...@gmail.com 
mailto:jm80...@gmail.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
and...@dunslane.net mailto:and...@dunslane.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:passw...@anoncvs.postgresql.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








--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers