Categories
Mozilla

Double Landings? No Problem!

I just found a really useful way to do the double landings that we have to do if we want to land anything on the 1.9.1 branch right now. hg has this handy feature that will let you import from a url, which means it’s incredibly simple to take a changeset from mozilla-central, and then push it to mozilla-1.9.1:

  1. Figure out your changeset url for mozilla-central. For this example, we’ll use http://hg.mozilla.org/mozilla-central/rev/242894260a86.
  2. In your mozilla-1.9.1 tree, run hg import and pass in the previously obtained mozilla-central revision url, with a minor modification: change rev to raw-rev (so you’ll end up with http://hg.mozilla.org/mozilla-central/raw-rev/242894260a86

Assuming it applied cleanly, you now have that changeset as a local commit in your repo. You can now push like you always do. Happy landings!

By Shawn Wilsher

The man behind the site.

9 replies on “Double Landings? No Problem!”

@Mossop
From tinderbox:

Your checkin comment should include the bug#, a clear explanation of the fix, and reviewers.

We also aren’t supposed to checkin on orange, and people land all the time with orange (even bad orange).

Comments are closed.