Changes between Version 30 and Version 31 of TracProject/DefaultWikiPages
- Timestamp:
- May 8, 2008, 10:08:26 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracProject/DefaultWikiPages
v30 v31 87 87 As 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. 88 88 89 Here's how to set up such an environment using [http:// selenic.org/hgMercurial]:89 Here's how to set up such an environment using [http://www.selenic.com/mercurial/wiki Mercurial]: 90 90 ==== Initial Setup ==== 91 91 {{{ … … 96 96 $ hg addremove 97 97 $ 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 *) 99 100 $ hg branch wiki-guide # (1) 100 101 $ 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) 102 103 $ hg branch repo-guide # (3) 103 104 $ hg merge wiki-guide … … 107 108 name for the branch tracking the raw changes made by contributors in 108 109 the t.e.o wiki 109 2. switch back to revision 1, the one which was in sync with thebranch110 2. switch back to revision '''0''', the one which was in sync with the svn branch 110 111 3. mark the future commit to be on named branch "repo-guide", the symbolic 111 112 name for the branch tracking the changes we will commit in the svn branch … … 126 127 $ cd guide-0.11 127 128 $ 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 *) 129 131 $ hg ci -m "Downloaded changes 2008-05-09" 130 132 $ hg update -C repo-guide … … 137 139 Once you're happy, [#CommitChanges commit the changes] both locally on the "repo-guide" integration branch and on the 0.11-stable branch. 138 140 141 Also, 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 }}} 139 147 148 New 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 }}} 140 154 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. 141 156 157 This 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. 142 158 143 144 159 Note 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).