Skip to content

Instantly share code, notes, and snippets.

@nimbosa
Created July 10, 2014 08:51
Show Gist options
  • Save nimbosa/e20e85907d260a644cef to your computer and use it in GitHub Desktop.
Save nimbosa/e20e85907d260a644cef to your computer and use it in GitHub Desktop.
unified Mercurial repository using bookmarks feature to pull Latest mozilla code
### 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