Sloan Digital Sky Survey
MSDEV CVS Developers Page

How to use CVS with MSDEV - current thinking

MSDEV

An MSDEV module has been added to cvs - all our MsDeveloper projects should be checked in under this so we may check them all out with one command if we wish.

devel

There is a devel folder on skyservice which is our current working version/test folder.
Each user also has their own folder in which they may develop code. Ideally you do all your development and breaking in your own space and only put things in devel when the work.

Walk through

I produced a little .NET sdssSIAP service in my own space and checked it all into CVS using

cvs import MSDEV/sdssSIAP JHU r1

note I put it under MSDEV as we discussed I checked it back out locally so I am now using a cvs copy. You do not have to have it in a MSDEV folder you may do

cvs co -d sdssSIAP MSDEV/sdssSIAP

I recompiled it to make sure the revision information shows up in the dll
I tagged it

cvs tag v_1

next I went to skyservice/devel
I did

cvs co -r v_1 -d sdssSIAP MSDEV/sdssSIAP

here I used the tag to get exactly the version I want from cvs I had to go in IIS to make the app but other wise I did nothing and it worked

CVS tags for you code

We should have

        ///Current version
        ///ID:          $Id: msdevcvs.aspx,v 1.1 2003/08/01 18:02:38 womullan Exp $
        ///Revision:    $Revision: 1.1 $
        ///Date:        $Date: 2003/08/01 18:02:38 $
above the class in the summary tag
we should have a property
                /// 
                /// Revision from CVS
                /// 
                public static string Revision
                {
                        get
                        {
                                return "$Revision: 1.1 $";
                        }
                }

we should have change history at the bottom of the file
/* Revision History

        $Log: msdevcvs.aspx,v $
        Revision 1.1  2003/08/01 18:02:38  womullan
         moved cvs stuff over to new menu

        Revision 1.4  2003/03/20 15:51:48  womullan
         no really fixed the menu

        Revision 1.3  2003/03/20 15:47:41  womullan
        fixed menu hopefully

        Revision 1.2  2003/03/20 15:33:50  womullan
        added menu

        Revision 1.1  2003/03/11 17:13:59  womullan
        Added more on cvs

*/
It would be nice if we had a service on our webservices which returnded revision info like
               [WebMethod]
                public string[] Revisions()
                {
                        string[] ret = {"SIAP:WebService :"+SIAP.Revision,
					"Siap:VOTable    :"+Siap.Revision};
                        return ret;
                }


Cvs updates all these things but remeber if you modify it it is only update when you check it in - you need to remake the dll to have that info show up properly.

William O'Mullane
Last Modified :Friday, August 1, 2003 at 2:02:38 PM , $Revision 1.1 $