{"id":227,"date":"2008-06-05T11:38:52","date_gmt":"2008-06-05T15:38:52","guid":{"rendered":"http:\/\/benjamin.smedbergs.us\/blog\/?p=227"},"modified":"2008-06-05T11:38:52","modified_gmt":"2008-06-05T15:38:52","slug":"getting-mozilla-central-with-limited-bandwidth","status":"publish","type":"post","link":"http:\/\/benjamin.smedbergs.us\/blog\/2008-06-05\/getting-mozilla-central-with-limited-bandwidth\/","title":{"rendered":"Getting mozilla-central with limited bandwidth"},"content":{"rendered":"<p>Recently we <a href=\"http:\/\/developer.mozilla.org\/devnews\/index.php\/2008\/06\/02\/mozilla-central-open-for-business\/\">opened up mozilla-central<\/a> for checkins for Mozilla 1.9.1\/Firefox.Next.  As people on IRC have started using the repository, one of the major complaints has been that cloning the entire repository for the first time can take a very long time over a slow network&#8230; and for flaky networks, it may be impossible to clone at all.<\/p>\n<p>There is a solution: instead of cloning directly from hg.mozilla.org (<tt>hg clone http:\/\/hg.mozilla.org\/mozilla-central\/<\/tt>), download a changeset bundle and unbundle it to create a local repository.<\/p>\n<ol>\n<li>Download a mozilla-central bundle. For the moment, I&#8217;m hosting one <a href=\"http:\/\/benjamin.smedbergs.us\/downloads\/mozilla-central.bundle\">here<\/a>. I&#8217;m going to ask the mozilla release team to produce one nightly and host it on the mozilla FTP server. The bundle file is approximately 65MB.\n<li>Create a new, empty repository:\n<pre>$ hg init mozilla-central<\/pre>\n<li>Un-bundle the real mozilla-central changes to that repository:\n<pre>$ cd mozilla-central;\r\n$ hg unbundle \/path\/to\/mozilla-central.bundle<\/pre>\n<li>Tell mercurial where you normally want to pull from by copying the following content into your <tt>mozilla-central\/.hg\/hgrc<\/tt> file:\n<pre>[paths]\r\ndefault = http:\/\/hg.mozilla.org\/mozilla-central\/<\/pre>\n<li>Pull any additional changes that happened since the bundle was created:\n<pre>$ hg pull<\/pre>\n<li>Update your working directory to the latest change:\n<pre>$ hg up<\/pre>\n<\/ul>\n<p>Happy hacking!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently we opened up mozilla-central for checkins for Mozilla 1.9.1\/Firefox.Next. As people on IRC have started using the repository, one of the major complaints has been that cloning the entire repository for the first time can take a very long time over a slow network&#8230; and for flaky networks, it may be impossible to clone [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[41,124],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-mozilla","tag-mercurial","tag-mozilla-central"],"_links":{"self":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":0,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"wp:attachment":[{"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/benjamin.smedbergs.us\/blog\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}