slitaz-doc-wiki-data view pages/en/devnotes/prepare-experimental.txt @ rev 7

Add pages/en folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 12:17:18 2011 +0000 (2011-02-26)
parents
children
line source
1 ====== Prepare the experimental wok ======
3 ==== Warning ====
5 Before using the experimental wok, it's advisable to read and understand the [[en:cookbook:advancedhg|Advanced usage of Mercurial]] as the experimental wok uses MQ to handle the patch queue.
7 Please note that the source code, wok & packages use a lot of space, don't store all of that in your RAM unless you're sure that it will run fine. If you use a live system, you can use a physical disk to store data using the boot option home=. You can also mount the disk (i.e.: on /mnt).
9 ==== Enabling Mercurial Queue ====
11 The experimental wok is shared as patches which can't be integrated into the cooking wok for now. To use them, you need the extension MQ. So your ~/.hgrc should contain these lines:
13 <code>
14 [extensions]
15 mq =
16 </code>
18 ==== Download cooking wok & patch it ====
20 First check that the destination disk is mounted. In the directory which contains the data, create a repository called experimental and enter in it:
21 <code>
22 cd destination
23 mkdir experimental
24 cd experimental
25 </code>
28 Download the wok:
29 <code>
30 hg clone http://hg.slitaz.org/wok wok
31 </code>
33 If you were root, enable read/write permissions to your normal account; then exit the root one:
34 <code>
35 chown tux.tux -R wok
36 </code>
38 The patches will apply well on the revisions for which they was created, but problems can appear with the other revisions. The revisions correlated to the last update of the patches can be found here: http://hg.slitaz.org/wok-experimental.
39 Update the wok to the good revision:
40 <code>
41 hg update -C rev
42 </code>
44 Download experimental patches:
45 <code>
46 cd .hg
47 hg clone http://hg.slitaz.org/wok-experimental patches
48 </code>
50 Apply patches:
51 <code>
52 cd ..
53 hg qpush -a
54 </code>
56 ==== Update the experimental wok ====
58 Go into the wok:
59 <code>
60 cd ?/wok
61 </code>
63 Unapply patches (doesn't work if modifications are uncommitted):
64 <code>
65 hg qpop-a
66 </code>
68 Update cooking wok:
69 <code>
70 hg pull
71 </code>
73 Check the revision to use at http://hg.slitaz.org/wok-experimental and update the working directory to this revision:
74 <code>
75 hg update -C rev
76 </code>
78 Update patches repository:
79 <code>
80 cd .hg/patches
81 hg pull -u
82 </code>
84 Apply the new patches:
85 <code>
86 cd ../..
87 hg qpush -a
88 </code>