|
|
(88 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| | '''''NOTE 2008: The migration has be done - this page is archived for historical reasons''''' |
| | |
| This page contains notes related to GRASS code migration (planned) from CVS to SVN. | | This page contains notes related to GRASS code migration (planned) from CVS to SVN. |
|
| |
|
| == Basic == | | == Meta == |
|
| |
|
| * The SVN command line interface is just like CVS, many tasks are identical- just change the program name from cvs to svn. | | * [[SVN_hosting|Where to host the SVN repository?]] |
| | : '''''October 2007: It has been decided to open the SVN at OSGeo''''' |
|
| |
|
| == Gotchas == | | == Basic == |
| | |
| * cvs2svn is known to break binary files (images) which were not imported into the CVS with the -kb flag. Luckily Glynn fixed most of these some months ago.
| |
| | |
| * Files using keyword substitution, such as $Date$ in the description.html files, will have to have support for that enabled manually, once per file (or write a find routine with | xargs svn ...).
| |
| $ svn propset svn:keywords "Date" filename.txt
| |
| $ svn commit
| |
| or
| |
| $ find . -name '*.c' | xargs svn propset svn:keywords "Date"
| |
| $ find . -name '*.html' | xargs svn propset svn:keywords "Date"
| |
| $ svn commit
| |
|
| |
|
| * how to maintain timestamps of files? We want to keep the last modification date, not the date of local download | | * The SVN command line interface is just like CVS, many tasks are identical - just change the program name from cvs to svn. |
|
| |
|
| == GRASS CVS repository structure == | | == GRASS CVS repository structure == |
|
| |
|
| /grass-cvs | | /grass-cvs |
| |
| |
| +---/CVSROOT
| |
| | | | | |
| +---/grass | | +---/grass |
Line 41: |
Line 32: |
| +---/web | | +---/web |
|
| |
|
| == Testing SVN repository == | | == GRASS OSGeo SVN repository structure == |
|
| |
|
| * grass/grass should be renamed to grass/grass5
| | See [[Talk:Migration_from_CVS_to_SVN|Discussion page]] for details. |
|
| |
|
| '''Question:'''
| |
| * Migrate all directories or only actively used (grass, grass6, newsletter, web)?
| |
| * Create separate repositories (grass5, grass6, grassweb, grassnewsletter, grass7) or one repository (grass-svn)?
| |
|
| |
| === Proposed structure ===
| |
|
| |
| ==== Scenario 1 ====
| |
| /grass-svn | | /grass-svn |
| | | | | |
| +---/grass5 | | +---/grass |
| |
| | | | |
| +---/branches
| | | +---/trunk (grass6 CVS HEAD) |
| |
| | | | |
| +---/tags
| | | +---/branches |
| |
| | | | | |
| +---/trunk
| | | | +---/releasebranch_5_x (note: 5_5 based on grass5 CVS HEAD) |
| +---/grass6 | | | | | |
| |
| | | | +---/releasebranch_6_x |
| +---/branches
| | | | |
| |
| | | +---/tags |
| +---/tags
| |
| |
| |
| +---/trunk
| |
| +---/grass7 | |
| |
| |
| +---/branches
| |
| |
| |
| +---/tags
| |
| |
| |
| +---/trunk
| |
| +---/newsletter | |
| |
| |
| +---/branches (???)
| |
| |
| |
| +---/tags (???)
| |
| |
| |
| +---/trunk
| |
| +---/web | |
| |
| |
| +---/trunk
| |
| | |
| ==== Scenario 2 ====
| |
| /grass-svn
| |
| | | | | |
| +---/trunk | | |---/grass-addons |
| | | | | |
| +---/branches | | +---/grass-web |
| |
| | | | |
| +---/grass5
| | | +---/trunk |
| |
| |
| +---/grass6
| |
| |
| |
| +---/grass7
| |
| +---/tags | |
|
| |
|
| === Copy of GRASS CVS repository ===
| | Notes: |
| | | * <tt>grass51</tt>, <tt>grass_doc</tt>, <tt>libgrass</tt> and <tt>programgrass50</tt> are dead, will be not migrated |
| rsync -r --times --links --bwlimit=200 --delete rsync://rsync.intevation.de/grass grass-cvs
| | * <tt>grass</tt> migrated as <tt>grass/branches/releasebranch_5_5</tt> |
| | * <tt>web</tt> migrated as <tt>grass-web</tt> |
| | * <tt>newsletter</tt> will be merged with OSGeo newsletter repository |
| | * wxPython GUI moved from grass-addons to grass code base (<tt>grass/gui/wxpython</tt>) |
| | * <tt>gui/wxpython/screenshots</tt> removed, can be part of grass-addons (e.g. <tt>grass-addons/screenshots/wxpython</tt>) |
|
| |
|
| → cca 600 MB!
| | [http://josef.fsv.cvut.cz/~landa/grass-cvs2svn/ Scripts]: |
|
| |
|
| === Creating GRASS SVN repository ===
| | :* [http://josef.fsv.cvut.cz/~landa/grass-cvs2svn/grass-cvs2svn-base.sh grass-cvs2svn-base.sh] |
| | | :* [http://josef.fsv.cvut.cz/~landa/grass-cvs2svn/grass-cvs2svn-s2.sh grass-cvs2svn-s2.sh] |
| ==== grass5 ====
| | :* [http://josef.fsv.cvut.cz/~landa/grass-cvs2svn/grass-cvs2svn-wxpython.sh grass-cvs2svn-wxpython.sh] |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| -s grass5svn-orig grass-cvs/grass
| |
| | |
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grass5svn-orig grass5svn-orig]'''
| |
| | |
| '''Question:''' exclude selected branches/tags (which one?)
| |
| | |
| According to [http://grass.itc.it/devel/cvstags.php undocumented] these branches/tags are suggested to be excluded:
| |
| | |
| --exclude="Mike" \
| |
| --exclude="grass" \
| |
| --exclude="unlabeled-.*" \
| |
| | |
| Because of dependency also these braches/tags need to be removed:
| |
| | |
| --exclude=devices_cleanup_20000420 \
| |
| --exclude=post_compare_glynn_head_2002_11_27 \
| |
| --exclude=post_compare_glynn_release_2002_11_27 \
| |
| --exclude=post_merge_head_2002_01_22 \
| |
| --exclude=post_sync_2002_01_22 \
| |
| --exclude=pre-curses-fix \
| |
| --exclude=pre_merge_head_2002_01_22 \
| |
| --exclude=pre_merge_release_2002_01_22 \
| |
| --exclude=pre_sync_2001_10_31 \
| |
| --exclude=pre_sync_2002_01_17 \
| |
| --exclude=release_03_11_2003_grass5_0_3 \
| |
| --exclude=release_05_11_2004_grass5_4_0 \
| |
| --exclude=release_10_04_2003_grass5_0_2 \
| |
| --exclude=release_13_may_2002_grass5_0_0_pre4 \
| |
| --exclude=release_13_september_2001_grass5_0_0_pre2 \
| |
| --exclude=release_15_05_2004_grass5_3_0 \
| |
| --exclude=release_16_january_2002_grass5_0_0_pre3 \
| |
| --exclude=release_17_06_2004_grass5_7_0 \
| |
| --exclude=release_25_06_2002_grass5_0_0_pre5 \
| |
| --exclude=release_28_01_2003_grass5_0_1 \
| |
| --exclude=release_30_08_2002_grass5_0_0 \
| |
| --exclude=releasebranch_11_april_2001_5_0_0 \
| |
| --exclude=releasebranch_11_april_2001_5_0_0_DEAD \
| |
| --exclude=releasebranch_500 \
| |
| --exclude=releasebranch_5_0_0 \
| |
| --exclude=release_grass500pre1_20_may_2001 \
| |
| --exclude=release_grass5beta10_7_december_2000 \
| |
| --exclude=release_grass5beta11_4_february_2001 \
| |
| --exclude=release_grass5beta11pre1_21_january_2001 \
| |
| --exclude=release_grass5beta11pre2_28_january_2001 \
| |
| --exclude=release_grass5beta6_16_feb_2000 \
| |
| --exclude=release_grass5beta7_20_april_2000 \
| |
| --exclude=release_grass5beta8_26_july_2000 \
| |
| --exclude=release_grass5beta9_6_december_2000 \
| |
| --exclude=start \
| |
| --exclude=testbranch_5_0_0stable \
| |
| | |
| ERROR: The branch 'Mike' cannot be excluded because the following symbols depend on it:
| |
| 'releasebranch_5_4'
| |
| ERROR: The branch 'grass' cannot be excluded because the following symbols depend on it:
| |
| 'grassreleasebranch_5_0_0'
| |
| 'releasebranch_26_april_2002_5_0_0'
| |
| 'releasebranch_5_4'
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| --exclude="Mike" \
| |
| --exclude="grass" \
| |
| --exclude="unlabeled-.*" \
| |
| --exclude=devices_cleanup_20000420 \
| |
| --exclude=post_compare_glynn_head_2002_11_27 \
| |
| --exclude=post_compare_glynn_release_2002_11_27 \
| |
| --exclude=post_merge_head_2002_01_22 \
| |
| --exclude=post_sync_2002_01_22 \
| |
| --exclude=pre-curses-fix \
| |
| --exclude=pre_merge_head_2002_01_22 \
| |
| --exclude=pre_merge_release_2002_01_22 \
| |
| --exclude=pre_sync_2001_10_31 \
| |
| --exclude=pre_sync_2002_01_17 \
| |
| --exclude=release_03_11_2003_grass5_0_3 \
| |
| --exclude=release_05_11_2004_grass5_4_0 \
| |
| --exclude=release_10_04_2003_grass5_0_2 \
| |
| --exclude=release_13_may_2002_grass5_0_0_pre4 \
| |
| --exclude=release_13_september_2001_grass5_0_0_pre2 \
| |
| --exclude=release_15_05_2004_grass5_3_0 \
| |
| --exclude=release_16_january_2002_grass5_0_0_pre3 \
| |
| --exclude=release_17_06_2004_grass5_7_0 \
| |
| --exclude=release_25_06_2002_grass5_0_0_pre5 \
| |
| --exclude=release_28_01_2003_grass5_0_1 \
| |
| --exclude=release_30_08_2002_grass5_0_0 \
| |
| --exclude=releasebranch_11_april_2001_5_0_0 \
| |
| --exclude=releasebranch_11_april_2001_5_0_0_DEAD \
| |
| --exclude=releasebranch_500 \
| |
| --exclude=releasebranch_5_0_0 \
| |
| --exclude=release_grass500pre1_20_may_2001 \
| |
| --exclude=release_grass5beta10_7_december_2000 \
| |
| --exclude=release_grass5beta11_4_february_2001 \
| |
| --exclude=release_grass5beta11pre1_21_january_2001 \
| |
| --exclude=release_grass5beta11pre2_28_january_2001 \
| |
| --exclude=release_grass5beta6_16_feb_2000 \
| |
| --exclude=release_grass5beta7_20_april_2000 \
| |
| --exclude=release_grass5beta8_26_july_2000 \
| |
| --exclude=release_grass5beta9_6_december_2000 \
| |
| --exclude=start \
| |
| --exclude=testbranch_5_0_0stable \
| |
| --exclude=releasebranch_5_4 \
| |
| --exclude=grassreleasebranch_5_0_0 \
| |
| --exclude=releasebranch_26_april_2002_5_0_0 \
| |
| -s grass5svn grass-cvs/grass
| |
| | |
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grass5svn grass5svn]'''
| |
| | |
| ==== grass6 ====
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| -s grass6svn grass-cvs/grass6
| |
| ...
| |
| Error summary:
| |
| ERROR: A CVS repository cannot contain both grass-cvs/grass6/display/d.erase/main.c,v and grass-cvs/grass6/display/d.erase/Attic/main.c,v
| |
| ERROR: A CVS repository cannot contain both grass-cvs/grass6/general/g.mapsets/main_inter.c,v and grass-cvs/grass6/general/g.mapsets/Attic/main_inter.c,v
| |
| ERROR: A CVS repository cannot contain both grass-cvs/grass6/include/gproj_api.h,v and grass-cvs/grass6/include/Attic/gproj_api.h,v
| |
| ERROR: A CVS repository cannot contain both grass-cvs/grass6/visualization/nviz/src/getCat.c,v and grass-cvs/grass6/visualization/nviz/src/Attic/getCat.c,v
| |
| Exited due to fatal error(s).
| |
| | |
| '''Question:''' Remove Attic files?
| |
| | |
| * [http://cvs2svn.tigris.org/faq.html#atticprob cvs2svn FAQ]
| |
| * [http://www.nabble.com/cvs2svn-questions-tf4690871.html#a13406752 From GRASS-dev ML]
| |
| | |
| rm -f grass-cvs/grass6/display/d.erase/Attic/main.c,v
| |
| rm -f grass-cvs/grass6/general/g.mapsets/Attic/main_inter.c,v
| |
| rm -f grass-cvs/grass6/include/Attic/gproj_api.h,v
| |
| rm -f grass-cvs/grass6/visualization/nviz/src/Attic/getCat.c,v
| |
| | |
| Restart
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| -s grass6svn grass-cvs/grass6
| |
| ...
| |
| ----- pass 2 (CollateSymbolsPass) -----
| |
| ERROR: It is not clear how the following symbols should be converted.
| |
| Use --force-tag, --force-branch and/or --exclude to resolve the ambiguity.
| |
| 'releasebranch_6_2' is a tag in 2 files, a branch in 5259 files and has commits in 1513 files
| |
| | |
| Restart
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --force-branch=releasebranch_6_2 \
| |
| -s grass6svn-orig grass-cvs/grass6
| |
| | |
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grass6svn-orig grass6svn-orig]'''
| |
| | |
| Exclude all [http://grass.itc.it/devel/cvstags.php undocumented] braches
| |
| | |
| cvs2svn --use-cvs --no-default-eol
| |
| --force-branch=releasebranch_6_2 \
| |
| --exclude="grass" \
| |
| --exclude="grassreleasebranch_5_0_0" \
| |
| --exclude="markus" \
| |
| --exclude="releasebranch_14_august_2001_5_0_0" \
| |
| --exclude="releasebranch_26_april_2002_5_0_0" \
| |
| --exclude="releasebranch_5_4" \
| |
| --exclude="unlabeled.*" \
| |
| -s grass6svn1 grass-cvs/grass6
| |
| ...
| |
| ----- pass 2 (CollateSymbolsPass) -----
| |
| Checking for blocked exclusions...
| |
| ERROR: The branch 'markus' cannot be excluded because the following symbols depend on it:
| |
| 'start'
| |
| 'releasebranch_11_april_2001_5_0_0'
| |
| ERROR: The branch 'grass' cannot be excluded because the following symbols depend on it:
| |
| ...
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --force-branch=releasebranch_6_2 \
| |
| --exclude="grass" \
| |
| --exclude="grassreleasebranch_5_0_0" \
| |
| --exclude="markus" \
| |
| --exclude="releasebranch_14_august_2001_5_0_0" \
| |
| --exclude="releasebranch_26_april_2002_5_0_0" \
| |
| --exclude="releasebranch_5_4" \
| |
| --exclude="unlabeled.*" \
| |
| --exclude="devices_cleanup_20000420" \
| |
| --exclude="post_compare_glynn_head_2002_11_27" \
| |
| --exclude="post_compare_glynn_release_2002_11_27" \
| |
| --exclude="post_merge_head_2002_01_22" \
| |
| --exclude="post_sync_2002_01_22" \
| |
| --exclude="pre-curses-fix" \
| |
| --exclude="pre_merge_head_2002_01_22" \
| |
| --exclude="pre_merge_release_2002_01_22" \
| |
| --exclude="pre_sync_2001_10_31" \
| |
| --exclude="pre_sync_2002_01_17" \
| |
| --exclude="release_03_11_2003_grass5_0_3" \
| |
| --exclude="release_05_11_2004_grass5_4_0" \
| |
| --exclude="release_10_04_2003_grass5_0_2" \
| |
| --exclude="release_13_may_2002_grass5_0_0_pre4" \
| |
| --exclude="release_13_september_2001_grass5_0_0_pre2" \
| |
| --exclude="release_15_05_2004_grass5_3_0" \
| |
| --exclude="release_16_january_2002_grass5_0_0_pre3" \
| |
| --exclude="release_17_06_2004_grass5_7_0" \
| |
| --exclude="release_25_06_2002_grass5_0_0_pre5" \
| |
| --exclude="release_28_01_2003_grass5_0_1" \
| |
| --exclude="release_30_08_2002_grass5_0_0" \
| |
| --exclude="releasebranch_11_april_2001_5_0_0" \
| |
| --exclude="releasebranch_11_april_2001_5_0_0_DEAD" \
| |
| --exclude="releasebranch_500" \
| |
| --exclude="releasebranch_5_0_0" \
| |
| --exclude="release_grass500pre1_20_may_2001" \
| |
| --exclude="release_grass5beta10_7_december_2000" \
| |
| --exclude="release_grass5beta11_4_february_2001" \
| |
| --exclude="release_grass5beta11pre1_21_january_2001" \
| |
| --exclude="release_grass5beta11pre2_28_january_2001" \
| |
| --exclude="release_grass5beta6_16_feb_2000" \
| |
| --exclude="release_grass5beta7_20_april_2000" \
| |
| --exclude="release_grass5beta8_26_july_2000" \
| |
| --exclude="release_grass5beta9_6_december_2000" \
| |
| --exclude="start" \
| |
| --exclude="testbranch_5_0_0stable" \
| |
| --exclude="unlabeled-1.1.1.1.4" \
| |
| --exclude="unlabeled-1.1.1.1.6" \
| |
| --exclude="color_changes_20010502" \
| |
| -s grass6svn grass-cvs/grass6
| |
| | |
| '''Question:''' Exclude more tags (which)?
| |
| * I guess tags "freetypecap", "lastworking", "pre_fileinfo_change" and maybe also "pre_vdigit_changes_.*" could be also excluded... --ML
| |
| | |
| Add other switches (e.g. <tt>--encoding</tt>) ??
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --force-branch=releasebranch_6_2 \
| |
| --exclude="grass" \
| |
| --exclude="grassreleasebranch_5_0_0" \
| |
| --exclude="markus" \
| |
| --exclude="releasebranch_14_august_2001_5_0_0" \
| |
| --exclude="releasebranch_26_april_2002_5_0_0" \
| |
| --exclude="releasebranch_5_4" \
| |
| --exclude="unlabeled.*" \
| |
| --exclude="devices_cleanup_20000420" \
| |
| --exclude="post_compare_glynn_head_2002_11_27" \
| |
| --exclude="post_compare_glynn_release_2002_11_27" \
| |
| --exclude="post_merge_head_2002_01_22" \
| |
| --exclude="post_sync_2002_01_22" \
| |
| --exclude="pre-curses-fix" \
| |
| --exclude="pre_merge_head_2002_01_22" \
| |
| --exclude="pre_merge_release_2002_01_22" \
| |
| --exclude="pre_sync_2001_10_31" \
| |
| --exclude="pre_sync_2002_01_17" \
| |
| --exclude="release_03_11_2003_grass5_0_3" \
| |
| --exclude="release_05_11_2004_grass5_4_0" \
| |
| --exclude="release_10_04_2003_grass5_0_2" \
| |
| --exclude="release_13_may_2002_grass5_0_0_pre4" \
| |
| --exclude="release_13_september_2001_grass5_0_0_pre2" \
| |
| --exclude="release_15_05_2004_grass5_3_0" \
| |
| --exclude="release_16_january_2002_grass5_0_0_pre3" \
| |
| --exclude="release_17_06_2004_grass5_7_0" \
| |
| --exclude="release_25_06_2002_grass5_0_0_pre5" \
| |
| --exclude="release_28_01_2003_grass5_0_1" \
| |
| --exclude="release_30_08_2002_grass5_0_0" \
| |
| --exclude="releasebranch_11_april_2001_5_0_0" \
| |
| --exclude="releasebranch_11_april_2001_5_0_0_DEAD" \
| |
| --exclude="releasebranch_500" \
| |
| --exclude="releasebranch_5_0_0" \
| |
| --exclude="release_grass500pre1_20_may_2001" \
| |
| --exclude="release_grass5beta10_7_december_2000" \
| |
| --exclude="release_grass5beta11_4_february_2001" \
| |
| --exclude="release_grass5beta11pre1_21_january_2001" \
| |
| --exclude="release_grass5beta11pre2_28_january_2001" \
| |
| --exclude="release_grass5beta6_16_feb_2000" \
| |
| --exclude="release_grass5beta7_20_april_2000" \
| |
| --exclude="release_grass5beta8_26_july_2000" \
| |
| --exclude="release_grass5beta9_6_december_2000" \
| |
| --exclude="start" \
| |
| --exclude="testbranch_5_0_0stable" \
| |
| --exclude="unlabeled-1.1.1.1.4" \
| |
| --exclude="unlabeled-1.1.1.1.6" \
| |
| --exclude="color_changes_20010502" \
| |
| --exclude="freetypecap" \
| |
| --exclude="lastworking" \
| |
| --exclude="pre_fileinfo_change" \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| -s grass6svn grass-cvs/grass6
| |
| | |
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grass6svn grass6svn]'''
| |
| | |
| ==== newsletter ====
| |
| | |
| SUGGESTION: merge newsletter into the OSGeo journal SVN
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| -s grassnlsvn grass-cvs/newsletter
| |
| | |
| '''Question:''' exclude branch "markus" and tags "Final_version", "ready_for_grammar_spelling_correction" and "start"?
| |
| * I guess maybe only trunk can be migrate, we don't need any branches and tags in this case... --ML
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --exclude="markus" \
| |
| --exclude="Final_version" \
| |
| --exclude="ready_for_grammar_spelling_correction" \
| |
| --exclude="start" \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| -s grassnlsvn grass-cvs/newsletter
| |
| ...
| |
| Checking for blocked exclusions...
| |
| ERROR: The branch 'markus' cannot be excluded because the following symbols depend on it:
| |
| 'volume1_final'
| |
| ...
| |
| | |
| Cannot exclude branch "markus"
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --exclude="Final_version" \
| |
| --exclude="ready_for_grammar_spelling_correction" \
| |
| --exclude="start" \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| -s grassnlsvn grass-cvs/newsletter
| |
| | |
| '''Questions:'''
| |
| * Rename brach "markus"?
| |
| * Rename tags "volume[1|2]_final" to "release_vol[1|2]"?
| |
| | |
| I guess only trunk is enough -- ML
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| --trunk-only \
| |
| -s grassnlsvn grass-cvs/newsletter
| |
| | |
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grassnlsvn grassnlsvn]
| |
| | |
| ==== web ====
| |
| | |
| cvs2svn --use-cvs --no-default-eol \ | |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| -s grasswebsvn grass-cvs/web
| |
| ...
| |
| ERROR: A CVS repository cannot contain both grass-cvs/web/bugtracking/index.html,v and grass-cvs/web/bugtracking/Attic/index.html,v
| |
| ...
| |
| | |
| '''Question:''' Remove Attic file?
| |
| | |
| rm -f grass-cvs/web/bugtracking/Attic/index.html,v
| |
| | |
| '''Question:''' Ignore branches ("markus") and tags ("start")?
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --trunk-only \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| -s grasswebsvn grass-cvs/web
| |
| | |
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grasswebsvn grasswebsvn]
| |
| | |
| ==== grass7 ====
| |
| | |
| Based on grass6 HEAD.
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --force-branch=releasebranch_6_2 \
| |
| --trunk-only \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| -s grass7svn grass-cvs/grass6
| |
| | |
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grass7svn grass7svn]'''
| |
| | |
| ==== Scenario 1 ====
| |
| | |
| svnadmin create grass-svn
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| --branches=grass5/branches \
| |
| --tags=grass5/tags \
| |
| --trunk=grass5/trunk \
| |
| --existing-svnrepos \
| |
| -s grass-svn grass-cvs/grass
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --force-branch=releasebranch_6_2 \
| |
| --exclude="grass" \
| |
| --exclude="grassreleasebranch_5_0_0" \
| |
| --exclude="markus" \
| |
| --exclude="releasebranch_14_august_2001_5_0_0" \
| |
| --exclude="releasebranch_26_april_2002_5_0_0" \
| |
| --exclude="releasebranch_5_4" \
| |
| --exclude="unlabeled.*" \
| |
| --exclude="devices_cleanup_20000420" \
| |
| --exclude="post_compare_glynn_head_2002_11_27" \
| |
| --exclude="post_compare_glynn_release_2002_11_27" \
| |
| --exclude="post_merge_head_2002_01_22" \
| |
| --exclude="post_sync_2002_01_22" \
| |
| --exclude="pre-curses-fix" \
| |
| --exclude="pre_merge_head_2002_01_22" \
| |
| --exclude="pre_merge_release_2002_01_22" \
| |
| --exclude="pre_sync_2001_10_31" \
| |
| --exclude="pre_sync_2002_01_17" \
| |
| --exclude="release_03_11_2003_grass5_0_3" \
| |
| --exclude="release_05_11_2004_grass5_4_0" \
| |
| --exclude="release_10_04_2003_grass5_0_2" \
| |
| --exclude="release_13_may_2002_grass5_0_0_pre4" \
| |
| --exclude="release_13_september_2001_grass5_0_0_pre2" \
| |
| --exclude="release_15_05_2004_grass5_3_0" \
| |
| --exclude="release_16_january_2002_grass5_0_0_pre3" \
| |
| --exclude="release_17_06_2004_grass5_7_0" \
| |
| --exclude="release_25_06_2002_grass5_0_0_pre5" \
| |
| --exclude="release_28_01_2003_grass5_0_1" \
| |
| --exclude="release_30_08_2002_grass5_0_0" \
| |
| --exclude="releasebranch_11_april_2001_5_0_0" \
| |
| --exclude="releasebranch_11_april_2001_5_0_0_DEAD" \
| |
| --exclude="releasebranch_500" \
| |
| --exclude="releasebranch_5_0_0" \
| |
| --exclude="release_grass500pre1_20_may_2001" \
| |
| --exclude="release_grass5beta10_7_december_2000" \
| |
| --exclude="release_grass5beta11_4_february_2001" \
| |
| --exclude="release_grass5beta11pre1_21_january_2001" \
| |
| --exclude="release_grass5beta11pre2_28_january_2001" \
| |
| --exclude="release_grass5beta6_16_feb_2000" \
| |
| --exclude="release_grass5beta7_20_april_2000" \
| |
| --exclude="release_grass5beta8_26_july_2000" \
| |
| --exclude="release_grass5beta9_6_december_2000" \
| |
| --exclude="start" \
| |
| --exclude="testbranch_5_0_0stable" \
| |
| --exclude="unlabeled-1.1.1.1.4" \
| |
| --exclude="unlabeled-1.1.1.1.6" \
| |
| --exclude="color_changes_20010502" \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| --branches=grass6/branches \
| |
| --tags=grass6/tags \
| |
| --trunk=grass6/trunk \
| |
| --existing-svnrepos \
| |
| -s grass-svn grass-cvs/grass6
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --exclude="Final_version" \
| |
| --exclude="ready_for_grammar_spelling_correction" \
| |
| --exclude="start" \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| --branches=newsletter/branches \
| |
| --tags=newsletter/tags \
| |
| --trunk=newsletter/trunk \
| |
| --existing-svnrepos \
| |
| -s grass-svn grass-cvs/newsletter
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --trunk-only \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| --trunk=web/trunk \
| |
| --existing-svnrepos \
| |
| -s grass-svn grass-cvs/web
| |
| | |
| cvs2svn --use-cvs --no-default-eol \
| |
| --force-branch=releasebranch_6_2 \
| |
| --trunk-only \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| --trunk=grass7/trunk \
| |
| --existing-svnrepos \
| |
| -s grass-svn grass-cvs/grass6
| |
| | |
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grass-svn grass-svn]'''
| |
| | |
| ==== Scenario 2 ====
| |
| | |
| Notes:
| |
| * newsletter repository can be merged with OSGeo newsletter repository
| |
| * web in separate repository outside of trac
| |
|
| |
|
| svnadmin create grass-svn2 # cp -r grass6svn grass-svn2
| | For text files are used <tt>keywords=Author Date Id Revision</tt>, in detail: |
|
| |
|
| svnadmin dump grass6svn > grass6svn.dump
| | :* [http://josef.fsv.cvut.cz/~landa/grass-cvs2svn/propsfile-g5-2 props file for grass5] |
| | :* [http://josef.fsv.cvut.cz/~landa/grass-cvs2svn/propsfile-g6-2 props file for grass6] |
|
| |
|
| # need to be fixed
| | <!-- → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grass-svn2 grass-svn2]''' --> |
| cvs2svn --use-cvs --no-default-eol \
| |
| --encoding="ASCII" \
| |
| --encoding="UTF-8" \
| |
| --encoding="ISO-8859-1" \
| |
| --trunk-only \
| |
| --trunk=branches/releasebranch_5_4 \
| |
| --branches=dummy \
| |
| -s grass5svn-trunk grass-cvs/grass
| |
| svnadmin dump grass5svn-trunk > grass5svn-trunk.dump
| |
|
| |
|
| svnadmin load grass-svn2 < grass5svn-trunk.dump
| | === GRASS 7 development notes === |
|
| |
|
| → '''[http://josef.fsv.cvut.cz/cgi-bin/viewcvs.cgi/?root=grass-svn2 grass-svn2]'''
| | [[Image:Grass7-development-svn.png|center]] |
|
| |
|
| == External links == | | == External links == |
Line 624: |
Line 85: |
| * [http://cvs2svn.tigris.org/cvs2svn.html cvs2svn tool page] | | * [http://cvs2svn.tigris.org/cvs2svn.html cvs2svn tool page] |
| * [http://www.neogia.org/Cvs_To_Subversion_Migration_Plan Migration plan example] | | * [http://www.neogia.org/Cvs_To_Subversion_Migration_Plan Migration plan example] |
| | * [http://www.xs4all.nl/~carlo17/svn/cvs2svn.html Converting CVS to subversion] |
| | * [http://docs.codehaus.org/display/ninja/List+CVS+Tags List CVS Tags] |
|
| |
|
| * Online book: [http://svnbook.red-bean.com/nightly/en/index.html Version Control with Subversion] | | * Online book: [http://svnbook.red-bean.com/nightly/en/index.html Version Control with Subversion] |
Line 633: |
Line 96: |
|
| |
|
| [[Category:Development]] | | [[Category:Development]] |
| | [[Category:Historic]] |