{"id":3648,"date":"2016-05-10T17:45:35","date_gmt":"2016-05-10T15:45:35","guid":{"rendered":"https:\/\/glandium.org\/blog\/?p=3648"},"modified":"2019-09-03T15:21:15","modified_gmt":"2019-09-03T06:21:15","slug":"using-git-to-access-mercurial-repositories-without-mercurial","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=3648","title":{"rendered":"Using git to access mercurial repositories, without mercurial"},"content":{"rendered":"<p>If you've been following this blog, you know I've been working on a git remote helper that gives access to mercurial repositories, named <a href=\"https:\/\/github.com\/glandium\/git-cinnabar\/\">git-cinnabar<\/a>. So far, it has been using libraries from mercurial itself in order to talk to local or remote repositories.<\/p>\n<p>That is, until today. The current <code>master<\/code> branch now has experimental support for direct access to remote mercurial repositories, without mercurial.<\/p>\n<link rel=\"stylesheet\" type=\"text\/css\" href=\"\/asciinema-player.css\" \/>\n<div id=\"player-container\">\n<script src=\"\/asciinema-player.js\"><\/script><br \/>\n<script>asciinema.player.js.CreatePlayer('player-container', '\/blog\/wp-content\/uploads\/2016\/05\/cinnabar-without-mercurial.json', { width: 80, height: 24, poster:'data:text\/plain,make[2]: Entering directory `\/home\/ubuntu\/git-cinnabar\/git-core\/templates\\'\\r\\nmake[2]: Leaving directory `\/home\/ubuntu\/git-cinnabar\/git-core\/templates\\'\\r\\nmake[1]: Leaving directory `\/home\/ubuntu\/git-cinnabar\/git-core\\'\\r\\nmake: Leaving directory `\/home\/ubuntu\/git-cinnabar\\'\\r\\nubuntu@ip-172-31-34-250:~$ # Now we can clone\\r\\nubuntu@ip-172-31-34-250:~$ PATH=$(pwd)\/git-cinnabar\/git-core\/bin-wrappers:$PATH\\r\\nCloning into \\'hg-git\\'...~$ git clone hg::https:\/\/bitbucket.org\/durin42\/hg-git\/\\r\\nWARNING Mercurial libraries not found. Falling back to native access. \\r\\nWARNING Native access to mercurial repositories is experimental!\\r\\nReading 990 changesets\\r\\nReading 989 manifests\\r\\nReading and importing 2115 files\\r\\nImporting 989 manifests\\r \\nFinalizing 954 manifests\\r\\nImporting 990 changesets\\r\\nIt is recommended that you set \"remote.origin.prune\" or \"fetch.prune\" to \"true\".\\r\\n  git config remote.origin.prune true\\r\\nor\\r\\n  git config fetch.prune true\\r\\n\\r\\nRun the following command to update remote tags:\\r\\n  git remote update origin\\r\\nChecking connectivity... done.\\r\\nubuntu@ip-172-31-34-250:~$ ' });<\/script><\/p>\n<p><!--\n<script type=\"text\/javascript\" src=\"https:\/\/asciinema.org\/a\/5yuevciajcwt8ppsjz1v9mo95.js\" id=\"asciicast-5yuevciajcwt8ppsjz1v9mo95\" async>\n--><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve been following this blog, you know I&#8217;ve been working on a git remote helper that gives access to mercurial repositories, named git-cinnabar. So far, it has been using libraries from mercurial itself in order to talk to local or remote repositories. That is, until today. The current master branch now has experimental support [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,25],"tags":[23],"class_list":["post-3648","post","type-post","status-publish","format-standard","hentry","category-cinnabar","category-planet-mozilla","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3648"}],"version-history":[{"count":11,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3648\/revisions"}],"predecessor-version":[{"id":3910,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3648\/revisions\/3910"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}