Services/Sync/Getting Started

From MozillaWiki
Jump to navigation Jump to search

Getting started with Sync development

Configure Mercurial

Put the following in your ~/.hgrc:

 [ui]
 username = Your Name <you@mozilla.com>
 
 [extensions]
 hgext.mq = 
 [diff]
 git = 1
 unified = 8
 [defaults]
 diff = -pU8
 qdiff = -pU8
 qnew = -U
 qseries = -sv

You can also add the following to ~/.hg/hgrc:

 [paths]
 default = http://hg.mozilla.org/services/
 default-push = ssh://hg.mozilla.org/services/

Repositories

fx-sync

Sync is primarily developed in the https://hg.mozilla.org/services/fx-sync/ repository. Things that live there:

  • The Services client libraries in services/crypto/ and services/sync.
  • The Firefox Sync add-on in addon/*
  • The Firefox 3.x and Fennec 1.x UIs for the Sync add-on in ui/*

mozilla-central

mozilla-central is the repository for Firefox and the base repository for other Mozilla-based applications. How mozilla-central is relevant to Sync:

  • The client library is periodically merged from fx-sync to mozilla-central.
  • The integrated UI for Firefox Sync lives in browser/base/*, along with the rest of the Firefox UI.

Merging fx-sync to mozilla-central