Edgewall Software

Changes between Version 30 and Version 31 of TracProject/DefaultWikiPages


Ignore:
Timestamp:
May 8, 2008, 10:08:26 AM (16 years ago)
Author:
Christian Boos
Comment:

oops, totally wrong Mercurial url and a few other corrections needed, noticed while I was actually trying out the suggested steps ;-)

Legend:

Unmodified
Added
Removed
Modified
  • TracProject/DefaultWikiPages

    v30 v31  
    8787As some content is only pertinent on t.e.o and not in the packaged docs, downloading new content from t.e.o will lead to repeated merge, so we need a system that can handle them efficiently.
    8888
    89 Here's how to set up such an environment using [http://selenic.org/hg Mercurial]:
     89Here's how to set up such an environment using [http://www.selenic.com/mercurial/wiki Mercurial]:
    9090==== Initial Setup ====
    9191{{{
     
    9696$ hg addremove
    9797$ hg commit -m "Start sync with branch 0.11-stable [T70xx]"
    98 $ (cd trac/wiki/default-pages; python ../../../contrib/checkwiki.py -d)
     98$ (cd trac/wiki/default-pages; \
     99   python ../../../contrib/checkwiki.py -d; dos2unix *)
    99100$ hg branch wiki-guide   # (1)
    100101$ hg commit -m "Those are the un-processed changes from t.e.o wiki"
    101 $ hg update -C 1         # (2)
     102$ hg update -C 0         # (2)
    102103$ hg branch repo-guide   # (3)
    103104$ hg merge wiki-guide
     
    107108    name for the branch tracking the raw changes made by contributors in
    108109    the t.e.o wiki
    109  2. switch back to revision 1, the one which was in sync with the branch
     110 2. switch back to revision '''0''', the one which was in sync with the svn branch
    110111 3. mark the future commit to be on named branch "repo-guide", the symbolic
    111112    name for the branch tracking the changes we will commit in the svn branch
     
    126127$ cd guide-0.11
    127128$ hg update -C wiki-guide
    128 $ (cd trac/wiki/default-pages; python ../../../contrib/checkwiki.py -d)
     129$ (cd trac/wiki/default-pages; \
     130   python ../../../contrib/checkwiki.py -d; dos2unix *)
    129131$ hg ci -m "Downloaded changes 2008-05-09"
    130132$ hg update -C repo-guide
     
    137139Once you're happy, [#CommitChanges commit the changes] both locally on the "repo-guide" integration branch and on the 0.11-stable branch.
    138140
     141Also, in the (rare) event of a Wiki page move, this has to be tracked manually both at the svn and at the hg level, e.g.:
     142{{{
     143$ cd trac/wiki/default-pages
     144$ svn mv TracWikiMacros WikiMacros
     145$ hg mv --after TracWikiMacros WikiMacros
     146}}}
    139147
     148New pages as well, once they have been added to the checkwiki.py script and downloaded:
     149{{{
     150$ cd trac/wiki/default-pages
     151$ svn add TracVersionControl
     152$ hg add TracVersionControl
     153}}}
    140154
     155'''Note:''' as I went through all those steps again, I noticed that there are actually quite few discrepancies at this point (i.e. near 0.11rc time) between the wiki guide and the default-pages in the repository.
    141156
     157This is not always the case, particularly when we're quite advanced in the release cycle of a new version and the online guide still documents the previous stable version. At those times, the above method is far from overkill, quite the contrary it makes it relatively easy to grab the useful contributions from the Wiki.
    142158
    143 
    144 
     159Note also that this method is scalable, and that it can easily be used for tracking ''several'' sources. For [milestone:0.12], we could track the toplevel changes ("wiki-guide" branch in the above), as well as the 0.12 specific pages (0.12/..., in another "wiki-0.12-guide" branch).