Sheriffing/How To/Merges

< Sheriffing
Revision as of 19:15, 11 March 2017 by Archaeopteryx (talk | contribs) (updated repositories, wrote full repository names to optimize it for search, replaced mcmerge with Bugherder)

Merges:

Merging around twice a day to/from autoland and mozilla-inbound to mozilla-central

Merges from the integration trees to mozilla-central are done on green PGO runs to avoid bustages on PGO which could affect as example Nightly Builds


Step 1

Merging from autoland and mozilla-inbound to mozilla-central

Example mozilla-inbound to mozilla-central merge

-> cd into your mozilla-central directory
-> hg pull ssh://hg.mozilla.org/integration/mozilla-inbound -r (the green with PGO runs inbound revision changeset) - also make sure there are no backouts  after that etc
-> hg merge && hg commit -m "merge inbound to mozilla-central"
-> push

don't forget to use Bugherder after that! It's available from the menu for the push on Treeherder

Step 2

Merging back from mozilla-central to autoland and mozilla-inbound

Example mozilla-central to mozilla-inbound merge

-> go to your mozilla-inbound tree directory
-> hg pull && hg update to make sure its the latest
-> hg pull ssh://hg.mozilla.org/mozilla-central/
-> hg merge
-> hg commit -m "merge mozilla-central to mozilla-inbound"
-> hg push
since this above might result in race conditions on the tree 

(when its busy there) this works better ->

go to your mozilla-inbound tree
hg pull && hg update && hg pull ssh://hg.mozilla.org/mozilla-central/ && hg merge && hg commit -m  "Merge mozilla-central to [TREENAME]" &&  hg push 

Aliases for the various repositories make the above easier to type!