[Moin-user] Re: Moin and CVS

bragiba at simi.is bragiba at simi.is
Wed Dec 5 06:19:10 EST 2001



I am using WinCvs as I think that it would be easier for me to work with a
GUI driven environment.  This is my attempt at explaining to people like
myself on how to get the MoinMoin distribution using WinCvs and how to
maintain it using WinCvs.  I hope some other people will try this out and
add to the instructions as the get comfortable.
1. Download WinCvs from www.wincvs.org

2. Run WinCvs

3. Open WinCvs and select your work area location (the location where you
intend to store your MoinMoin distribution).  In this case I chose C:
\Temp\MoinMoin

4. Setup WinCvs to point to the moin source code on sourceforge.net.
     i. Select Admin-->Preferences...
     ii. The WinCvs Preferences dialog pops up as shown below:
(Embedded image moved to file: pic18756.pcx)

     iii.  In the General folder set:
          Authentication:  pserver
          Path:  /cvsroot/moin
          Host address:  cvs.moin.sourceforge.net
          User name:  anonymous
          CVSROOT:  Will get filled in automatically but should be
anonymous at cvs.moin.sourceforge.net:/cvsroot/moin

     iv.  In the Globals folder toggle ON:   Checkout read-only, Dirty
files support, Supply control when adding files, Prune (remove) empty
directories.   All other fields should be toggled OFF

     v.  In the WinCvs folder you can specify a default Viewer used to open
files and and external diff program.   I respectively use TextPad and
WinMerge as my programs of choice.   Set the HOME folder (where cvs stores
your passwords) to c:\Temp\MoinMoin.

5. Click OK to pop down the dialog.

6. Now it is time to get the source code distribution from sourceforge.net
and into your work area.  Select Admin-->Login... to login to the server on
sourceforge.  As you are logging in as anonymous simply press Enter when
prompted for a password.

7. Get the source code by selecting  Create --> Checkout Module...
     The Checkout settings dialog box appears.  You should only need to
specify the module you wish to check out from the server.  In our case we
want the complete moin distribution so we as for moin.
     i.   Enter the module name and pathn on hte server: moin
    Your command line interface (the bottom window in your WinCvs main
window) will show a list of files it checked out similar to the one below.
cvs checkout -P moin (in directory C:\temp\MoinMoin)
cvs server: Updating U moin/moinlogo.bmp
U moin/setup.cfg
U moin/setup.py
cvs server: Updating moin/contributions
U moin/contributions/README
cvs server: Updating moin/contributions/IncludeFile
[...snip...]
[snip]
[...snip...]
U MoinMoin/wikixml/util.py
U MoinMoin/wikixml/wikiexport.py
U MoinMoin/wikixml/xsltutil.py
cvs server: Updating MoinMoin/xml

8.  Now let´s say you modify a file in MoinMoin to suit your own needs.
Say you add 2 lines to cgimain.py:
     # I am adding a comment line and a dummy value to cgimain.py to see if
WinCvs will pick up diffs.
     dummyValue = 0

9. Now let´s do an update by selecting the cgimain.py file in our work area
in the WinCvs main window and select Modify-->Update selection...
You will notice that your cgimain.py file will turn red to indicate that it
has changed and you  should receive the following output indicating the the
file cgimain.py differs from the source file on the server and should be
merge.
cvs update cgimain.py (in directory C:\temp\MoinMoin\moin\MoinMoin\)
M cgimain.py

10. Now you can view your differences by right clicking on cgimain.py and
toggling on the external diff check box.  Alternatively you can get a text
diff in your command line interface:   In our case you would get the
following output.
cvs diff cgimain.py (in directory C:\temp\MoinMoin\moin\MoinMoin\)
Index: cgimain.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/cgimain.py,v
retrieving revision 1.34
diff -r1.34 cgimain.py
12c12,13
<
---
> # I am adding a comment line and a dummy value to cgimain.py to see if
WinCvs will pick up diffs.
> dummyValue = 0

You can choose to ignore these differences or you can go in and edit your
work area file to match what is on the server.  Since in most cases you
will not be updating your changes to the source code you should not need to
worry about this.  A visual check is however always good.

I hope that this Cvs for dropped-on-the-head-dummies will be useful for
someone and I welcome any discussions or comments on it.
Of course you still need to hook up your MoinMoin to IIS or whatever you
are using as your web server............
Best of Luck and MOINMOIN absolutely ROCKS..... KICKS ASS..... MOIN MOIN
.... Insert your own motivational words.....


Best Regards,

Bragi

_______________________________________________________________________
Þessi tölvupóstur og viðhengi hans gætu innihaldið trúnaðarupplýsingar
eingöngu ætlaðar þeim sem hann er stílaður á. Efni tölvupóstsins og
viðhengi er á ábyrgð sendanda ef það tengist ekki starfsemi Símans.
Sjá nánar: http://www.siminn.is/um_okkur/almennt/tolvupostur.asp

This e-mail and its attachments may contain confidential and privileged
information only intended for the person or entity to which it is
addressed.
Further information: http://www.siminn.is/english/about_us/email.asp
_______________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic18756.pcx
Type: application/octet-stream
Size: 23188 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/moin-user/attachments/20011205/51e819e6/attachment.obj>


More information about the Moin-user mailing list