{"id":298610,"date":"2020-02-13T09:00:09","date_gmt":"2020-02-13T09:00:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298610"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-02-13T09:00:09","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298610","title":{"rendered":"\u041a\u043e\u0440\u0437\u0438\u043d\u043a\u0430 \u0441 \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u0430\u043c\u0438 \u2014 c\u043f\u0430\u0441\u0442\u0438 \u0440\u044f\u0434\u043e\u0432\u043e\u0433\u043e Mercurial"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/488038\/\">TLDR: \u0421\u0434\u0435\u043b\u0430\u043b <a href=\"https:\/\/github.com\/lebedevsergey\/BitbucketMercurialMigration\" rel=\"nofollow\">\u043d\u0430\u0431\u043e\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/a> \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 Bitbucket \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u0441 Mercurial \u043d\u0430 Git.<\/p>\n<p>  \u0412 \u043e\u0434\u0438\u043d \u043d\u0435\u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u043c\u043e\u0439 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 Bitbucket <a href=\"https:\/\/bitbucket.org\/blog\/sunsetting-mercurial-support-in-bitbucket\" rel=\"nofollow\">\u043e\u0431\u044a\u044f\u0432\u0438\u043b<\/a> \u043e \u0441\u043a\u043e\u0440\u043e\u043c \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 Mercurial \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 Git, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u0441\u0435 Mercurial \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u044b.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wk\/-x\/k0\/wk-xk0cp5vycomauj-icydh0n-4.jpeg\" alt=\"image\"><br \/>  <a name=\"habracut\"><\/a> <br \/>  \u041d\u0430 Bitbucket \u0443 \u043c\u0435\u043d\u044f \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 Mercurial, \u0442\u0435\u0440\u044f\u0442\u044c \u0438\u0445 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 \u0438\u0445 \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432. \u041f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0442\u044c \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u2014 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u043a Bitbucket \u044f \u043f\u0440\u0438\u0432\u044b\u043a. \u0421\u0430\u043c\u0438 Bitbucket, \u043a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u043d\u0435 \u0441\u043f\u043e\u0434\u043e\u0431\u0438\u043b\u0438\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c in-place \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u043e\u0440. \u041e\u043d\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e, \u043e\u0442\u0441\u044b\u043b\u0430\u044f \u0432\u0441\u0435\u0445 \u043d\u0430 <a href=\"https:\/\/community.atlassian.com\/t5\/Bitbucket-articles\/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets\/ba-p\/1155380\" rel=\"nofollow\">\u0444\u043e\u0440\u0443\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u043c\u043c\u044c\u044e\u043d\u0438\u0442\u0438<\/a> \u2014 \u0441 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u0438\u0435\u0437\u0443\u0438\u0442\u0441\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u043e\u0439 (We are happy to support your migration, and you can find a discussion about available options in our dedicated Community thread) \u2014 \u043c\u043e\u043b, \u043c\u044b \u0440\u0430\u0434\u044b \u043f\u0435\u0440\u0435\u0435\u0437\u0434\u0443 \u0432\u0430\u0448\u0438\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u043f\u043e\u0434 Git, \u0430 \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u043e\u0431\u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0430\u043c\u0438 \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u0432 \u0442\u043e\u043c \u0436\u0435 \u043f\u043e\u0441\u0442\u0435 \u043e\u043d\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0430\u0440\u0443 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u043e\u0432 <a href=\"https:\/\/github.com\/frej\/fast-export\" rel=\"nofollow\">hg-fast-export<\/a> \u0438 <a href=\"https:\/\/hg-git.github.io\/\" rel=\"nofollow\">hg-git<\/a>. <br \/>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u2014 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Python, \u0432\u0442\u043e\u0440\u043e\u0439 \u2014 \u043f\u043b\u0430\u0433\u0438\u043d, \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u043c\u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0437 Mercurial. \u0412 Google \u043d\u0430\u0448\u043b\u043e\u0441\u044c \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0448\u0430\u043b\u0438 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u044f Mercurial \u043f\u043e\u0434 Git: <a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-and-Other-Systems-Migrating-to-Git\" rel=\"nofollow\">\u0432\u043e\u0442<\/a>, <a href=\"https:\/\/hackernoon.com\/migrating-140-000-commits-from-mercurial-to-git-5cf46f134261\" rel=\"nofollow\">\u0432\u043e\u0442<\/a>, \u0438 <a href=\"https:\/\/markheath.net\/post\/how-to-convert-mercurial-repository-to\" rel=\"nofollow\">\u0432\u043e\u0442<\/a>. \u0412 \u043d\u0438\u0445 \u0442\u0430\u043a\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043b\u0438\u0431\u043e hg-fast-export, \u043b\u0438\u0431\u043e hg-git. \u0412\u0442\u043e\u0440\u043e\u0439 \u0431\u044b\u043b \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0443\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u2014 hg-git \u044f \u0440\u0430\u043d\u044c\u0448\u0435 \u0438\u043d\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u043b \u043d\u0430 Github \u0438\u0437 Mercurial \u2014 \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0432 Git, \u043a\u0430\u043a \u044d\u0442\u043e \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c \u0438\u0437 Git \u0436\u0435. \u0422\u0430\u043a \u0447\u0442\u043e \u0434\u043b\u044f \u0441\u0432\u043e\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u044f \u0432\u044b\u0431\u0440\u0430\u043b hg-git.<br \/>  <a href=\"https:\/\/markheath.net\/post\/how-to-convert-mercurial-repository-to\" rel=\"nofollow\">\u0422\u0443\u0442<\/a> \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d Powershell-\u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0441\u0442\u0430\u043b \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u043c\u043e\u0435\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043d\u043e \u0434\u043b\u044f Linux \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0430 Bash. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044e \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 Git-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439, \u0438 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0442\u0443\u0434\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0441\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e Git-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043d\u0430 Bitbucket. \u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0440\u0430\u0431\u043e\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430:  <\/p>\n<pre><code class=\"bash\">$ .\/convert_repo.sh lebedevsergey advertisements_parser 2a51eee7ade0 requesting all changes adding changesets adding manifests adding file changes added 1 changesets with 5 changes to 5 files updating to branch default 5 files updated, 0 files merged, 0 files removed, 0 files unresolved Initialized empty Git repository in \/home\/serge\/project\/_probes\/hg2git\/src\/advertisements_parser-git\/ pushing to ..\/advertisements_parser-git searching for changes adding objects added 1 commits with 2 trees and 5 blobs error: Could not remove config section 'remote.origin' Branch master set up to track <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u043e \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043d\u043e \u043e\u043d\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e \u0440\u0443\u0447\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u2014 \u043f\u0435\u0440\u0435\u0434 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0430 Bitbucket Git-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043a\u0443\u0434\u0430 \u043f\u0443\u0448\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. \u041f\u043e\u0433\u043b\u044f\u0434\u0435\u0432 \u043d\u0430 \u0441\u0432\u043e\u0438 100500 \u043f\u043e\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432, \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0442\u0430\u043a \u044f \u0434\u043e\u043b\u0433\u043e \u0431\u0443\u0434\u0443 \u0438\u0445 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0447\u0442\u043e\u0431\u044b \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b Git \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0434\u043b\u044f \u0441\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445, \u0430 \u0435\u0449\u0435 \u043b\u0443\u0447\u0448\u0435 \u2014 \u0441\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0441\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0438\u0445 Mercurial \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043f\u043e \u043d\u0435\u043c\u0443. \u042d\u0442\u043e \u044f\u0432\u043d\u043e \u0432\u044b\u0445\u043e\u0434\u0438\u043b\u043e \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 \u0443\u043c\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0442\u043e\u0433\u043e Mercurial, \u0442\u0443\u0442 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0441\u0430\u043c\u043e\u0433\u043e Bitbucket, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u2014 <a href=\"https:\/\/developer.atlassian.com\/bitbucket\/api\/2\/reference\/\" rel=\"nofollow\">Bitbucket API<\/a>. <br \/>  \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Bitbucket API \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u0434\u043b\u044f Python \u2014 \u043f\u043e-\u0432\u0438\u0434\u0438\u043c\u043e\u043c\u0443 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 <a href=\"https:\/\/github.com\/atlassian-api\/atlassian-python-api\" rel=\"nofollow\">SDK<\/a> (\u043d\u0435 \u043f\u0443\u0442\u0430\u0442\u044c \u0441 \u043b\u0435\u0436\u0430\u0449\u0438\u043c \u043d\u0430 \u0441\u0430\u043c\u043e\u043c Bitbucket \u0434\u0430\u0432\u043d\u043e \u0437\u0430\u0431\u0440\u043e\u0448\u0435\u043d\u043d\u044b\u043c, \u043d\u043e \u043a\u043e\u0433\u0434\u0430-\u0442\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c <a href=\"https:\/\/bitbucket.org\/atlassian\/python-bitbucket\" rel=\"nofollow\">SDK<\/a>). \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 Bitbucket API \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0434\u043b\u044f <a href=\"https:\/\/vx68k.bitbucket.io\/bitbucket-api-client.java\/\" rel=\"nofollow\">Java<\/a>, <a href=\"https:\/\/github.com\/MunifTanjim\/node-bitbucket\" rel=\"nofollow\">NodeJS<\/a> \u0438 <a href=\"https:\/\/github.com\/BitbucketAPI\/Client\" rel=\"nofollow\">PHP<\/a>. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044f \u0438 \u0432\u044b\u0431\u0440\u0430\u043b.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0438 \u0435\u0433\u043e \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0442\u0430\u043c \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043b\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u0441\u0434\u0435\u043b\u0430\u0432 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b protected, \u0442\u0430\u043a \u0447\u0442\u043e, \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0432 \u043a\u043b\u0430\u0441\u0441 \u0438\u0445 API-\u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043e\u0434\u044b, \u0434\u0435\u043b\u0430\u044e\u0449\u0438\u0435 \u0442\u043e \u0447\u0442\u043e \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e:<\/p>\n<pre><code class=\"php\">class ExtendedClient extends Client {     \/**      * @return \\Bitbucket\\Api\\Repositories      *\/     public function repositories()     {         return new ExtendedRepositories($this-&gt;getHttpClient());     } }  class ExtendedRepositories extends Repositories {         public function listWorkspace(string $workspaceName, array $params = [])     {         $path = $this-&gt;buildRepositoriesPath($workspaceName);         return $this-&gt;get($path, $params);     }      public function create(string $workspaceName, string $repoName, array $params = [])     {         $path = $this-&gt;buildRepositoriesPath($workspaceName, $repoName);          return $this-&gt;post($path, $params);     } } <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e, \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u0430\u0440\u0443 PHP-\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0438 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d Bash-\u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0438\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u0430, \u0438 \u0447\u0435\u0440\u0435\u0437 \u0447\u0430\u0441 \u0443\u0436\u0435 \u043c\u043e\u0433 \u043b\u044e\u0431\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u043a\u0430\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0432\u043c\u0435\u0441\u0442\u043e \u043c\u0435\u043d\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440:<\/p>\n<pre><code class=\"bash\">Checking repository: mysett Trying to create Git repository: git_mysett Created Git repository: git_mysett 20abecfb36fe applying clone bundle from https:\/\/api.media.atlassian.com\/file\/4d5980dc-148f-400c-97f7-8067506778a5\/binary?client=403e8d2f-6661-452a-8307-5c68f82c1a13&amp;token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3MiOnsidXJuOmZpbGVzdG9yZTpmaWxE2bUg7aRIzuKbjwOn5SF8IbGEVs33WHDVb-JYto adding changesets adding manifests adding file changes added 27 changesets with 56 changes to 41 files finished applying clone bundle searching for changes no changes found updating to branch default 35 files updated, 0 files merged, 0 files removed, 0 files unresolved Initialized empty Git repository in \/home\/serge\/project\/hg2git\/src\/mysett-git\/ pushing to ..\/mysett-git searching for changes adding objects added 27 commits with 82 trees and 50 blobs error: Could not remove config section 'remote.origin' Counting objects: 159, done. Delta compression using up to 12 threads. Compressing objects: 100% (133\/133), done. Writing objects: 100% (159\/159), 12.95 MiB | 7.95 MiB\/s, done. Total 159 (delta 0), reused 159 (delta 0) To git@bitbucket.org:lebedevsergey\/git_mysett.git  * [new branch]      master -&gt; master Branch master set up to track remote branch master from origin. Checking repository: jazzz Trying to create Git repository: git_jazzz <\/code><\/pre>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435, \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u044f \u0437\u0430\u043d\u044f\u043b\u0430 \u043e\u043a\u043e\u043b\u043e \u0447\u0430\u0441\u0430 \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u044e \u0441\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 Git-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u043e\u0441\u044c. \u0418 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0443\u0434\u0430\u043b\u044f\u044e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 Mercurial-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u0441 Bitbucket Mercurial-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0441\u0438\u0438, \u043d\u043e \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0442\u0443\u0442 \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439, \u043a\u043e\u0433\u0434\u0430 \u0438\u0437\u043b\u0438\u0448\u043d\u044f\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u0440\u0435\u0434\u0438\u0442\u044c.<\/p>\n<p>  \u0413\u043e\u0442\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <a href=\"https:\/\/github.com\/lebedevsergey\/BitbucketMercurialMigration\" rel=\"nofollow\">\u0442\u0443\u0442<\/a><\/p>\n<p>  P.S.\u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0441\u043b\u0443\u0447\u0430\u0435\u043c, \u043f\u043e\u0434\u043d\u0438\u043c\u0443 \u0440\u0438\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u043e\u043f\u0440\u043e\u0441 \u2014 \u043f\u043e\u0447\u0435\u043c\u0443 Git, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0432\u0440\u0435\u043c\u0435\u043d\u0430\u043c\u0438 \u0441 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0430\u043a\u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439, \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0435\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0433\u043e Mercurial, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0448\u044c, \u0441\u043e\u0437\u0434\u0430\u0435\u0448\u044c \u0432\u0435\u0442\u043a\u0438, \u0438, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a, \u2014 \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u0435\u0448\u044c \u043a\u043e\u043c\u043c\u0438\u0442\u044b, \u043d\u0435 \u0434\u0443\u043c\u0430\u044f \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439, \u0438 \u043e\u0431 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435 \u043d\u0430 Head, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u044f \u0442\u043e, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e? \u041d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u044d\u0442\u043e \u043d\u0435\u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e, \u0432\u0435\u0434\u044c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u043b\u0443\u0447\u0448\u0435 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0433\u043e, \u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 Mercurial \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442 Bitbucket \u2014 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u0442\u043e\u043b\u043f\u043e\u0432 \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u0435\u0439\u043d\u0441\u0442\u0440\u0438\u043c\u0443 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0439.<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/488038\/\"> https:\/\/habr.com\/ru\/post\/488038\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/488038\/\">TLDR: \u0421\u0434\u0435\u043b\u0430\u043b <a href=\"https:\/\/github.com\/lebedevsergey\/BitbucketMercurialMigration\" rel=\"nofollow\">\u043d\u0430\u0431\u043e\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432<\/a> \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 Bitbucket \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u0441 Mercurial \u043d\u0430 Git.<\/p>\n<p>  \u0412 \u043e\u0434\u0438\u043d \u043d\u0435\u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u043c\u043e\u0439 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 Bitbucket <a href=\"https:\/\/bitbucket.org\/blog\/sunsetting-mercurial-support-in-bitbucket\" rel=\"nofollow\">\u043e\u0431\u044a\u044f\u0432\u0438\u043b<\/a> \u043e \u0441\u043a\u043e\u0440\u043e\u043c \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 Mercurial \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 Git, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u0441\u0435 Mercurial \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u044b.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/wk\/-x\/k0\/wk-xk0cp5vycomauj-icydh0n-4.jpeg\" alt=\"image\">  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298610","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298610"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298610\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}