Put in remaining pages and wiki contents.
[ikiwiki.git] / docs / howtos / HowToMercurial.mdwn
1 # Mercurial \r
2 \r
3 This explains how to stay up to date with your sources using mercurial (http://www.selenic.com/mercurial/) (hg).\r
4 \r
5 (!) Unlike previous Mercurial mirrors the one in anoncvs.estpak.ee have branches support. Branches support in Mercurial is still work in progress and might be buggy. HEAD is OK to use. Following assumes that at least \r
6 Mercurial 0.9.4 is used.\r
7 \r
8 Install mercurial\r
9      \r
10     cd /usr/pkgsrc/devel/mercurial && bmake install\r
11 \r
12 \r
13 #### Using one source tree from stable branch in /usr/src \r
14 \r
15      \r
16     cd /usr\r
17     hg clone -r HEAD http://anoncvs.estpak.ee/hg/dragonfly-src src\r
18 \r
19 \r
20 Later you update with \r
21 \r
22     \r
23     cd /usr/src && hg pull && hg up HEAD\r
24 \r
25 \r
26 #### More than one checkout \r
27 \r
28 If you need more than one checkout, maybe for development, the idea is to keep "master" tree in /home/dsrc.hg and to make local clones/checkouts from there. For example keep the latest stable in /usr/src and latest development branch in /home/user/src.\r
29 \r
30     \r
31     hg clone -U http://anoncvs.estpak.ee/hg/dragonfly-src /home/dsrc.hg\r
32     hg clone -r DragonFly_RELEASE_1_8 /home/dsrc.hg /usr/src\r
33     hg clone -r HEAD /home/dsrc.hg /home/user/src\r
34 \r
35 \r
36 Later you update your local master repo with \r
37 \r
38     \r
39     cd /home/dsrc.hg\r
40     hg pull\r
41 \r
42 \r
43 Then your slave trees \r
44 \r
45     \r
46     cd /usr/src\r
47     hg pull && hg up DragonFly_RELEASE_1_8\r
48     cd /home/user/src\r
49     hg pull && hg up HEAD\r
50 \r
51 \r
52 ----\r
53 CategoryHowTo\r