CloudServices/Sync/FxSync/WarOnSpinningEventLoop: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 47: Line 47:
* Install [http://hg-git.github.com/ hg-git].
* Install [http://hg-git.github.com/ hg-git].
* '''Simply hg push and pull to the git repository directory.'''
* '''Simply hg push and pull to the git repository directory.'''
Assuming that alder is ahead of your m-c git repo (if not, pull first):
  cd alder
  hg push ../../git/mozilla-central

Revision as of 02:01, 21 April 2011

Project branch

Mercurial

We have the project branch Alder until 2011-07-30:

https://wiki.mozilla.org/ReleaseEngineering/DisposableProjectBranches#BOOKING_SCHEDULE

This will give us tbpl and such. Hooray!

Cloning from your local s-c (much faster this way!):

 hg clone services-central alder
 # You'll need >| if you're using zsh.
 echo "[paths]\ndefault = ssh://hg.mozilla.org/projects/alder" > alder/.hg/hgrc
 echo "sc = ssh://hg.mozilla.org/services/services-central" >> alder/.hg/hgrc
 cd alder
 hg pull -u

Now you have an hg repo from which you can

 hg pull -u

to update from alder, and

 hg pull -u sc

to update from mainline s-c.

Git

We do our work in Git because it sucks less.

Cloning:

 # Ask me (rnewman) to add you as a collaborator on GitHub, or 
 # fork my repo and clone your fork.
 cd wherever
 git clone git@github.com:rnewman/mozilla-central.git
 cd mozilla-central
 git remote add doublec https://github.com/doublec/mozilla-central.git

Now you have a git mirror of my mozilla-central repo, with a remote for doublec's automatically-updated version.

Now we can link to alder. This is a two-step process:

  • Install hg-git.
  • Simply hg push and pull to the git repository directory.

Assuming that alder is ahead of your m-c git repo (if not, pull first):

 cd alder
 hg push ../../git/mozilla-central