137

I followed the documentation in https://developer.mozilla.org/En/Developer_Guide/Source_Code/Mercurial and downloaded FF source with:

hg clone http://hg.mozilla.org/mozilla-central/ src

How can I switch to the FF3.6 'branch' or 'tag'? The documentation said

hg clone http://hg.mozilla.org/releases/mozilla-1.9.2/ 192src

but I don't want to clone both FF main and FF3.6 twice?

anatoly techtonik
  • 19,847
  • 9
  • 124
  • 140
n179911
  • 19,547
  • 46
  • 120
  • 162

1 Answers1

202

Once you have cloned the repo, you have everything: you can then hg up branchname or hg up tagname to update your working copy.

UP: hg up is a shortcut of hg update, which also has hg checkout alias for people with git habits.

anatoly techtonik
  • 19,847
  • 9
  • 124
  • 140
crazyscot
  • 11,819
  • 2
  • 39
  • 40
  • crazyscot - does one have to clone and checkout? Is it not possible to just grab what you want in 1 step (i.e., `hg clone http://hg.nginx.org/nginx -r "1.4.4"` to checkout version 1.4.4 of the project). – jww Dec 11 '13 at 12:47
  • 2
    `hg branch` only lists `default`, but the repo has tags! To list tags, use `hg tags` – Hendy Irawan Jul 07 '14 at 05:39
  • you can use hg clone -u to update after cloning – O'Rooney Jul 31 '19 at 23:34