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?

1 Answer 1

203

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.

3
  • 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
    Commented Dec 11, 2013 at 12:47
  • 2
    hg branch only lists default, but the repo has tags! To list tags, use hg tags Commented Jul 7, 2014 at 5:39
  • 1
    you can use hg clone -u <revision> to update after cloning
    – O'Rooney
    Commented Jul 31, 2019 at 23:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.