HowToMercurial
Mercurial
This explains how to stay up to date with your sources using mercurial (http://www.selenic.com/mercurial/) (hg).
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
Mercurial 0.9.4 is used.
Install mercurial
cd /usr/pkgsrc/devel/mercurial && bmake install
Using one source tree from stable branch in /usr/src
cd /usr
hg clone -r HEAD http://anoncvs.estpak.ee/hg/dragonfly-src src
Later you update with
cd /usr/src && hg pull && hg up HEAD
More than one checkout
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.
hg clone -U http://anoncvs.estpak.ee/hg/dragonfly-src /home/dsrc.hg
hg clone -r DragonFly_RELEASE_1_8 /home/dsrc.hg /usr/src
hg clone -r HEAD /home/dsrc.hg /home/user/src
Later you update your local master repo with
cd /home/dsrc.hg
hg pull
Then your slave trees
cd /usr/src
hg pull && hg up DragonFly_RELEASE_1_8
cd /home/user/src
hg pull && hg up HEAD