Sheriffing/How To/Unified Repos: Difference between revisions

Partial cleanup/update
(Partial cleanup/update)
Line 5: Line 5:
=== Setting up the repo ===
=== Setting up the repo ===
* Set up your ssh key yourself
* Set up your ssh key yourself
* Install Mercurial 3.2 or higher
* Install [https://www.mercurial-scm.org/downloads Mercurial 4.2] or higher
* Make a copy of your .hgrc file for safekeeping and delete the original
* Make a copy of your .hgrc file for safekeeping and delete the original
* hg clone https://hg.mozilla.org/mozilla-central
* hg clone https://hg.mozilla.org/mozilla-central
* cd mozilla-central
* cd mozilla-central
* ./mach mercurial-setup
* ./mach mercurial-setup
Configure mercurial as desired <br />
 
Configure mercurial as desired. At a minimum, you need the following:
* Set your username and email.
* Enable the firefoxtree extension.
* Enable the histedit extension.
 
The following will pull all (or at least most) of the branches sheriffs need to have on hand:
The following will pull all (or at least most) of the branches sheriffs need to have on hand:
* hg pull inbound && hg pull fx-team && hg pull aurora && hg pull beta && hg pull esr38
* hg pull inbound && hg pull autoland && hg pull beta && hg pull release && hg pull esr52
If you need other branches, you can find their names in the [https://hg.mozilla.org/hgcustom/version-control-tools/file/default/pylib/mozautomation/mozautomation/repository.py firefoxtree extension source].
If you need other branches, you can find their names in the [https://hg.mozilla.org/hgcustom/version-control-tools/file/default/pylib/mozautomation/mozautomation/repository.py firefoxtree extension source].


You should now have everything set up for proper use! <br />
You should now have everything set up for proper use! <br />


Maybe rename the folder from "mozilla-central" to "unifiedrepo" or something to make it clear it's more than just mozilla-central?
If you want, you can rename the mozilla-central folder to something like "unified", since it is more than just mozilla-central at this point.


The `hg fxheads` command should list references to each of the relevant branch names, and the current revision and commit message for each.
The `hg fxheads` command should list references to each of the relevant branch names, and the current revision and commit message for each.


With [https://bugzilla.mozilla.org/show_bug.cgi?id=1116861 bug 1116861] landed in version-control-tools, you can now use the following commands to pull from groups of repositories with a single command:
To pull in newly landed changes, you can use one of the following commands:
* hg pull fxtrees # this will pull from all branches listed with the fxheads command
* hg pull fxtrees # this will pull from all branches listed with the fxheads command
* hg pull integration # this will pull from the mozilla-inbound, b2g-inbound, and fx-team branches
* hg pull integration # this will pull from the mozilla-inbound and autoland branches
* hg pull releases # this will pull from pretty much every release branch (FYI: including old, unused branches)
* hg pull releases # this will pull from pretty much every release branch (FYI: including old, unused branches)


Confirmed users
396

edits