Skip to content

Instantly share code, notes, and snippets.

@jryans
Created March 27, 2014 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jryans/9810446 to your computer and use it in GitHub Desktop.
Save jryans/9810446 to your computer and use it in GitHub Desktop.
moz-git-push
# Clone the target mercurial repo
$ hg clone http://hg.mozilla.org/integration/fx-team
# Then when you are ready to land, first ensure cleaning up the mercurial repo
$ cd ~/fx-team && hg strip --no-backup 'roots(outgoing())' && hg pull -u
# Then transfer your commits from git to mercurial
# Here for just some very specific changesets
$ cd git-mozilla-central-repo/ && git push-to-hg -t REV1..REV2 ~/fx-team
# Or just one
$ cd git-mozilla-central-repo/ && git push-to-hg -t REV ~/fx-team
# Then (unfortunately) you still have to do some manual hg commands
$ cd ~/fx-team && hg qfinish -a && hg push fx-team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment