Thread: CVS checkout source code for different branches

CVS checkout source code for different branches

From
M Z
Date:
Hi,<br /><br />I am trying to checkout code from different branches (such as 8.3, 8.4). <br /><br />I found a few ways
tocheckout code from CVS: <br />1. webCVS: <a
href="http://anoncvs.postgresql.org/cvsweb.cgi/">http://anoncvs.postgresql.org/cvsweb.cgi/</a><br/><br />2. cvs -z3 -d
:pserver:anoncvs:password@anoncvs.postgresql.org:/projects/cvsrootco -P pgsql<br /><br />3. $ rsync --progress -avzCH
--deleteanoncvs.postgresql.org::pgsql-cvs $CVSROOT<br /><br />However, how can I checkout code from different branches
(suchas 8.3, 8.4)?<br /><br />Thank you.<br />M Z<br /> 

Re: CVS checkout source code for different branches

From
Andrew Dunstan
Date:

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@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: CVS checkout source code for different branches

From
M Z
Date:
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@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:password@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: CVS checkout source code for different branches

From
M Z
Date:
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@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 <jm80008@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 <andrew@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:password@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: CVS checkout source code for different branches

From
Andrew Dunstan
Date:
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@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 <jm80008@gmail.com 
> <mailto:jm80008@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
>     <andrew@dunslane.net <mailto:andrew@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:password@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: CVS checkout source code for different branches

From
M Z
Date:
Hi Andrew and all, <br /><br />I am still struggling with the branch repositories. I tried to checkout from branch
repositoriesbut got error no such repositories: <br /><br />$ cvs -z3 -d 
:pserver:anoncvs:password@anoncvs.postgresql.org:/projects/REL8_4_STABLEco -P pgsql<br /> /projects/REL8_4_STABLE: no
suchrepository<br /><br />$ cvs -z3 -d :pserver:anoncvs:password@anoncvs.postgresql.org:/projects/REL8_3_STABLE co -P
pgsql<br/>/projects/REL8_3_STABLE: no such repository<br /><br />$ cvs -z3 -d
:pserver:anoncvs:password@anoncvs.postgresql.org:/REL8_4_STABLEco -P pgsql<br /> /REL8_4_STABLE: no such repository<br
/><br/>$ cvs -z3 -d :pserver:anoncvs:password@anoncvs.postgresql.org:/REL8_3_STABLE co -P pgsql<br /> /REL8_3_STABLE:
nosuch repository<br /><br />What are the correct repositories for these branch? Is there a way I can list these branch
repositoriesand how?<br /><br />Many thanks,<br />M Z<br /><br /><div class="gmail_quote">On Mon, Feb 8, 2010 at 11:56
PM,Andrew Dunstan <span dir="ltr"><<a href="mailto:andrew@dunslane.net">andrew@dunslane.net</a>></span> wrote:<br
/><blockquoteclass="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex;
padding-left:1ex;"><br /> The only sane things to check out apart from HEAD are normally the STABLE branches. For
releasem.n those are always called RELm_n_STABLE. You can also get the tag set for a specific release. Those are called
RELm_n_ofor m.n.o releases.<br /><br /> If you look at the output for "cvs log <a href="http://configure.in"
target="_blank">configure.in</a>"you can see near the top a list of tag sets under the heading "symbolic names".<br
/><br/> HTH.<br /><br /><br /><br /> M Z wrote:<br /><blockquote class="gmail_quote" style="border-left: 1px solid
rgb(204,204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"> For example, how can I list all the
branchesfor postgresql 8.3 (and 8.4)? Now I can checkout code using:<br /> cvs -z3 -d
:pserver:anoncvs:password@anoncvs.postgresql.org:/projects/cvsrootco -P pgsql<br /><br /> But I don't know when version
itis, and I want get code from some postgresql 8.3 and 8.4 branches but I don't know the their cvsroot<br /><br />
Thanks<br/> M Z<br /><br /></div><div class="im"> On Mon, Feb 8, 2010 at 11:04 PM, M Z <<a
href="mailto:jm80008@gmail.com"target="_blank">jm80008@gmail.com</a> <mailto:<a href="mailto:jm80008@gmail.com"
target="_blank">jm80008@gmail.com</a>>>wrote:<br /><br />    Hi Andrew,<br /><br />    Could you please give a
littlemore detail how I can find<br />    different CVS branches?<br /><br />    Thanks,<br />    M Z<br /><br /><br
/><br/>    On Mon, Feb 8, 2010 at 10:38 PM, Andrew Dunstan<br /></div><div class="im">    <<a
href="mailto:andrew@dunslane.net"target="_blank">andrew@dunslane.net</a> <mailto:<a
href="mailto:andrew@dunslane.net"target="_blank">andrew@dunslane.net</a>>> wrote:<br /><br /><br /><br />      
 MZ wrote:<br /><br />            Hi,<br /><br />            I am trying to checkout code from different branches
(such<br/>            as 8.3, 8.4).<br /><br />            I found a few ways to checkout code from CVS:<br />        
  1. webCVS: <a href="http://anoncvs.postgresql.org/cvsweb.cgi/"
target="_blank">http://anoncvs.postgresql.org/cvsweb.cgi/</a><br/><br />            2. cvs -z3 -d<br />          
 :pserver:anoncvs:password@anoncvs.postgresql.org:/projects/cvsroot<br/>            co -P pgsql<br /><br />          
 3.$ rsync --progress -avzCH --delete<br />            anoncvs.postgresql.org::pgsql-cvs $CVSROOT<br /><br />          
 However,how can I checkout code from different branches<br />            (such as 8.3, 8.4)?<br /><br /><br /><br />  
    CVS is documented here, among other places:<br />        <<a
href="http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html"
target="_blank">http://ximbiot.com/cvs/manual/cvs-1.11.20/cvs.html</a>><br/><br />        To check out a particular
branchsuch as REL8_4_STABLE, use<br />        the -r option on the checkout command:<br /><br />          cvs checkout
-rbranchname<br /><br />        cheers<br /><br />        andrew<br /><br /><br /><br /><br /><br /><br
/></div></blockquote></blockquote></div><br/> 

Re: CVS checkout source code for different branches

From
M Z
Date:
Final, I tried:

$ cvs -z3 -d :pserver:anoncvs:password@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-bugs@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.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. */
*******************************************************************************


Re: CVS checkout source code for different branches

From
Robert Haas
Date:
On Tue, Feb 9, 2010 at 10:35 PM, M Z <jm80008@gmail.com> wrote:
> Final, I tried:
>
> $ cvs -z3 -d
> :pserver:anoncvs:password@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-bugs@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: CVS checkout source code for different branches

From
M Z
Date:
Thanks Robert,<br /><br />Your reply helps a lot. Just right after sending post, I found the way to list all branches
inthe CVS server.<br /><br />Best,<br />M Z<br /><br /><div class="gmail_quote">On Tue, Feb 9, 2010 at 10:43 PM, Robert
Haas<span dir="ltr"><<a href="mailto:robertmhaas@gmail.com">robertmhaas@gmail.com</a>></span> wrote:<br
/><blockquoteclass="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex;
padding-left:1ex;"><div class="im">On Tue, Feb 9, 2010 at 10:35 PM, M Z <<a
href="mailto:jm80008@gmail.com">jm80008@gmail.com</a>>wrote:<br /> > Final, I tried:<br /> ><br /> > $ cvs
-z3-d<br /> > :pserver:anoncvs:password@anoncvs.postgresql.org:/projects/cvsroot co -r<br /> > REL8_3_STABLE -P
pgsql<br/> ><br /> > Checked file <a href="http://configure.in" target="_blank">configure.in</a>. Around line 20,
thereis line:<br /> >  AC_INIT([PostgreSQL], [8.3.9], [<a
href="mailto:pgsql-bugs@postgresql.org">pgsql-bugs@postgresql.org</a>])<br/> ><br /> > Not sure that indicates
version8.3.9?<br /> ><br /> > But still, is there a testing/developing version for 8.3?<br /><br
/></div>REL8_3_STABLEis the head of the stable branch for 8.3.  It says 8.3.9<br /> right now because 8.3.9 is the last
releasethat was stamped off that<br /> branch, but what you checked out actually has any changes backpatched<br />
sincethen on it as well.<br /><div class="im"><br /> > I remember Alvaro<br /> > made a patch to
contrib/xml2/xpath.c.What is that version? and How can get<br /> > this version?<br /><br /></div>That patch hasn't
beenapplied yet.  You have to download it from his<br /> message and apply it to your local copy using the "patch"
program.<br/><div class="im"><br /> > Is there a way I can list all branches / versions in CVS server?<br /><br
/></div>Andrewalready answered that question in his previous message: use cvs<br /> log on a file that's been around
fora long time, like <a href="http://configure.in" target="_blank">configure.in</a>.<br /><br /> It sounds like you
needto find some documentation for CVS and read<br /> it, and/or find a CVS help mailing list and post to it.<br
/><fontcolor="#888888"><br /> ...Robert<br /></font></blockquote></div><br /> 

Re: CVS checkout source code for different branches

From
Andrew Dunstan
Date:

M Z wrote:
> Final, I tried:
>
> $ cvs -z3 -d 
> :pserver:anoncvs:password@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-bugs@postgresql.org 
> <mailto:pgsql-bugs@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