#author("2021-02-11T09:11:25+00:00","default:hotate","hotate")
#author("2021-02-11T09:14:58+00:00","default:hotate","hotate")
#contents
&tag(Mercurial);

* [[Git]]リポジトリへ変換 [#vc0a1a6c]
** ツール [#p4ae632f]
- [[Hg-Git Mercurial Plugin>http://hg-git.github.io/]]
 This is the Hg-Git plugin for Mercurial, adding the ability to push to and pull from a Git server repository from Mercurial. 
- [[frej/fast-export: A mercurial to git converter using git-fast-import>https://github.com/frej/fast-export]]
 On windows the bash that comes with "Git for Windows" is known to work well.

** [[Windows]] [#h11be205]
- [[BitbucketのMercurialリポジトリをGitHubのGitリポジトリに移動させた話 - Qiita>https://qiita.com/wa2c/items/26e55fbdbeaa0b311db4]]
 作業OS: Windows
 本内容は、BitbucketのMercurialで管理していたソースコードを、GitHubに移動させた時のやり方を残したメモ的な物です。内容のポイントは、履歴やタグなどの情報を保持したMercurialとGitのリポジトリ変換です。

** [[macOS]] [#s5e385b2]
- [[MacでMercurialリポジトリをGitリポジトリに変換する - Qiita>https://qiita.com/segur/items/53d047cfc8141ee447da]]
 この方法では少なくとも、コミットログ(日時・作成者)を維持して変換することができます。
- 簡単な移行スクリプト
 hg clone ~/path/hg/src hg_repo
 cd hg_repo
 hg log | grep user:
 cd ..
 hg convert --authormap authors.txt hg_repo hg_repo_2
 
 git init git_repo
 cd git_repo
 git config core.ignoreCase false
 ../hg-fast-export.sh -r ../hg_repo_2
 git checkout HEAD
 cd ..

* [[macOS]] [#da168c19]
** [[Apache]]連携 [#me554bb4]
- [[HgWebDirStepByStep - Mercurial>http://mercurial.selenic.com/wiki/HgWebDirStepByStep]]

* 関連 [#f81baaa9]
#taglist(tag=Mercurial)

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS