[drupal-docs] Installing, Upgrading, and Creating a Test-Site with only phpMyAdmin and an FTP client

Farsheed tfarsheed at yahoo.com
Thu Jul 14 00:23:15 UTC 2005


> For advanced users, a tutorial on upgrading via CVS
> might be useful.  
> This is a much better/easier of being able to keep a
> site up to date,  
> especially contrib modules that have changes applied
> over time.

I wrote a short doc a few weeks ago about SVN that
mentions how to keep up to date with Civicspace SVN. 
Do you mean writing something similar to this for
drupal and CVS? (document below)

**************************************************
Subversion Repository (SVN) is a way for coders and
developers to submit patches, fix bugs and
track/freeze various versions of code.  It is an
alternative to CVS, another file tracking system.  The
advantage to a file tracking system is that every
change of a file is logged and many developers can
work off the same code base at the same time.  

More info about SVN:
http://wiki.openttd.com/index.php/FAQ_development

O'reilly SVN Handbook
http://svnbook.red-bean.com/

Tortoise SVN Handbook:
http://tortoisesvn.sourceforge.net

***************************************************
What is a patch and how do I make it?

* A patch file is a diff file of the changes you've
made to code.  A diff file contains the difference
between the original file and your updated file
excluding white spaces.  Patches are easier to manage
and track changes of a file instead of submitting a
whole new version of the file.

* Linux: 
Use the diff command. Get more info about it by typing
"man diff". Or read more at: 

http://www.cpqlinux.com/patch.html

* Windows: 
Do a Tortoise SVN *Checkout* (not export) of all the
latest files.  Edit those files directly.  When
finished, right click on the file or folder and select
"Make Patch", and save the patch file.

****************************************************
I've fixed a bug / added a feature. How can I submit
it to the codebase?

* Make a diff file (aka patch file) of your changes
and submit it to the Civicspace Labs issue queue
[link]. Please watch the patch tracker carefully to
see if the developers have any suggestions. If
everything is OK with your patch, it will get merged
into the SVN tree. 

****************************************************
How to apply a patch?

It's usually best to apply patches to the latest SVN
revision.

* Linux: Type the following line into a console
(replace patch_name with the filename of the patch): 

patch -p1 < patch_name 

* Windows: Make sure you have TortoiseSVN
(http://tortoisesvn.tigris.org) installed. Right-click
on the folder with the diff file (file.diff or
file.patch), open the TortoiseSVN submenu and select
'Apply Patch...'. Browse to the patch file and select
it. Then, right click on the 'File Patches' window and
click on 'Patch All'. After you're done, close the
TortoiseMerge window. 

*****************************************************
How to checkout the latest version of Civicspace:

*Linux:
$  svn checkout http://svn.civicspacelabs.org/trunk
directory_name

* Windows: Make sure you have TortoiseSVN
(http://tortoisesvn.tigris.org) installed. Right click
on an empty folder you wish to dump the files into and
select 'Tortoise SVN'....Export. 

Type in http://svn.civicspacelabs.org/trunk for the
'URL of Repository'.

If you do a 'SVN Checkout' instead of 'Export' you
will download a .svn directory for each directory,
which you probably won't want unless you plan to
modify code and create patches.  "SVN Checkout" will
be a larger file download.  


		
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
 



More information about the drupal-docs mailing list