Created
July 10, 2014 08:51
-
-
Save nimbosa/e20e85907d260a644cef to your computer and use it in GitHub Desktop.
unified Mercurial repository using bookmarks feature to pull Latest mozilla code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### It's possible to interact with Mozilla's multiple Mercurial repositories | |
### from a unified Mercurial repository using Mercurial's bookmarks feature. | |
### To set up a unified Mercurial repository, the first step is to create a new, empty repository: | |
hg init mozilla | |
### Next, edit the .hg/hgrc file in that repository to contain the following: | |
[paths] | |
camino = https://hg.mozilla.org/camino | |
central = https://hg.mozilla.org/mozilla-central | |
beta = https://hg.mozilla.org/releases/mozilla-beta | |
esr24 = https://hg.mozilla.org/releases/mozilla-esr24 | |
[alias] | |
pulltree = !$HG pull $1 && hg bookmark -f -r `$HG identify -r default $1` $1 | |
pullall = !$HG pulltree beta && $HG pulltree central && $HG pulltree esr24 | |
############### | |
############### | |
hg pull beta | |
hg pull central | |
hg pull camino | |
hg pull esr24 | |
hg bookmark -r `hg identify -r default beta` beta | |
hg bookmark -r `hg identify -r default central` central | |
hg bookmark -r `hg identify -r default camino` camino | |
hg bookmark -r `hg identify -r default esr24` esr24 | |
hg up central | |
hg up beta | |
hg up esr24 | |
hg up central | |
hg pull -u central | |
hg up beta | |
hg pull -u beta | |
hg up mozilla-esr24 | |
hg pull -u mozilla-esr24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment