dr:cvs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
dr:cvs [2006/04/22 22:15] – fgm | dr:cvs [2006/04/23 08:53] – fgm | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== CVS for drupal crash test dummies ====== | ||
- | (or a few notes on how to actually use cvs on drupal) | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | * checking out 4.6.4, 4.7 or HEAD: | ||
- | |||
- | zcvs co -rDRUPAL-4-6-4 drupal | ||
- | zcvs co -rDRUPAL-4-7 drupal | ||
- | zcvs co -rHEAD drupal | ||
- | | ||
- | * the newly checked-out version will be available after a | ||
- | |||
- | cd drupal | ||
- | |||
- | * diff-ing our checked-out, | ||
- | |||
- | zcvs diff -rDRUPAL-4-6-4 | ||
- | |||
- | * building a patch: | ||
- | |||
- | cd drupal; | ||
- | zcvs diff -up > mychanges.patch | ||
- | |||
- | * history of a file (g2.module): | ||
- | |||
- | zcvs log g2.module | ||
- | |||
- | * backporting (thanks to DWW): | ||
- | < | ||
- | cvs co -r DRUPAL-4-7 modules/g2 | ||
- | cd modules/g2 | ||
- | cvs update -j 1.13 -j 1.15 g2.module | ||
- | (resolve conflicts, if any) | ||
- | cvs commit -m " | ||
- | </ | ||
- | |||
- | the key step in that command is the "cvs update -j", which means to merge the | ||
- | revisions you specified into your current working copy. | ||
- | |||
- | |||
- | * zcvs is a 3-line script that just does this: | ||
- | |||
- | < | ||
- | set CMD=" | ||
- | set ACCESS=-d: | ||
- | %CMD% %ACCESS% %* | ||
- | </ | ||
- | |||
- | * when patching the database, | ||
- | * create a function in updates.inc to update existing files | ||
- | * diff the database\database.< |
dr/cvs.txt · Last modified: 2020/11/23 17:23 by 127.0.0.1