Created
March 27, 2014 15:41
-
-
Save jryans/9810446 to your computer and use it in GitHub Desktop.
moz-git-push
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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