文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 <html> <style> #logo img { object-fit: cover; object-position: bottom; width: 370px; height: 68px; } </style> </html> ====== TortoiseHg - Mercurial 分散型バージョン管理システム用ツール ====== <WRAP #logo> {{windows:tortoisehg_logo.png?370|TortoiseHg Logo}} </WRAP> **TortoiseHg** とは、Microsoft Windows(Windows Explorer とダイレクトに統合)、Mac OS、Linux 等で実行可能な Mercurial の GUI フロントエンドである。\\ PyQt(Windows シェル拡張を除く)で記述されている。\\ Microsoft Windows で Mercurial を使用する場合に推奨されている。\\ GNU General Public License の下でリリースされたフリーソフトウェアである。\\ TortoiseHg は、Git サーバのクライアントとして使用可能である。\\ [[wpjp>TortoiseHg|TortoiseHg - Wikipedia]] より\\ ===== TortoiseHg のインストール ===== ==== Scoop によるインストール方法 ==== [[windows:scoop|Scoop]] 上の Tortoise シリーズを検索する🤔\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>scoop</b> search tortoise </pre></html></WRAP> <WRAP color_result><html><pre> Results from local buckets... <b class=GRN>Name Version Source Binaries ---- ------- ------ --------</b> tortoisehg 6.4.5 extras tortoisemerge 1.6.7 extras tortoisesvn 1.14.5.29465 extras </pre></html></WRAP> </WRAP> scoop コマンドでインストールする😉\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>scoop</b> install tortoisehg </pre></html></WRAP> <WRAP color_result><html><pre> Installing 'tortoisehg' (6.4.5) [64bit] from extras bucket tortoisehg-6.4.5-x64.msi (35.1 MB) [==========================================================================] 100% Checking hash of <b class=CYN>tortoisehg-6.4.5-x64.msi</b> ... <b class=GRN>ok.</b> Extracting <b class=CYN>tortoisehg-6.4.5-x64.msi</b> ... <b class=GRN>done.</b> Linking ~\scoop\apps\tortoisehg\current => ~\scoop\apps\tortoisehg\6.4.5 Creating shim for 'thg'. Creating shim for 'thgw'. Creating shim for 'hg'. Creating shim for 'Pageant'. <b class=YEL>WARN Overwriting shim ('pageant.exe' -> 'Pageant.exe') installed from putty</b> Creating shim for 'TortoiseHgOverlayServer'. Creating shim for 'kdiff3'. Creating shim for 'TortoisePlink'. Creating shortcut for Thg, TortoiseHg's GUI tools for Mercurial SCM (Hg) (thg.exe) Creating shortcut for TortoiseHg Workbench (thgw.exe) Creating shortcut for Mercurial Distributed SCM (hg.exe) Creating shortcut for Pageant is a PuTTY authentication agent (Pageant.exe) Creating shortcut for Service which gives us icons on the version-controlled files or folders (TortoiseHgOverlayServer.exe) Creating shortcut for Tool for Comparison and Merge of Files and Directories (kdiff3.exe) Creating shortcut for Command-line connection utility (based on PuTTY Plink) (TortoisePlink.exe) <b class=GRN>'tortoisehg' (6.4.5) was installed successfully!</b> </pre></html></WRAP> </WRAP> ==== 本家からダウンロードする場合 ==== TortoiseHg を以下のページよりダウンロード\\ - [[https://www.mercurial-scm.org/|Mercurial SCM]]の[[https://www.mercurial-scm.org/downloads|Download]]をクリックし、[[https://www.mercurial-scm.org/release/tortoisehg/windows/tortoisehg-5.4.2-x64.msi|TortoiseHg 5.4.2 MSI installer - x64 Windows]]をダウンロードする。 - tortoisehg-x.x.x-xxx.msi をダブルクリックして実行し、[Next]ボタンをクリックして行きインストールする。 - ポップアップメニューを日本語化するために、インストール先のregファイル(*1)を実行する。(ログオンし直すか再起動すると日本語化される)\\ *1 regファイルパス<code>C:\Program Files\TortoiseHg\i18n\cmenu\thg-cmenu-ja.reg</code> ===== ファイル名をutf-8で扱うように設定 ===== ==== 設定ファイルの編集 ==== 以下のファイルにエディタで追記する。<code> > notepad %USERPROFILE%\mercurial.ini </code> <code> # Generated by TortoiseHg settings dialog [tortoisehg] ui.language = ja [ui] username = TomoYan <tomoyan@example.com> [extdiff] cmd.winmergeu = C:\Tools\WinMerge\WinMergeU.exe opts.winmergeu = /r /e /x /ub [extensions] extdiff = </code> ==== Mercurial のエンコードを UTF-8 に設定 ==== - SystemPropertiesAdvanced.exe を起動する。 - 「詳細設定」タブの「環境変数」ボタンをクリックして、「システム環境変数」の「新規」ボタンをクリックする。 - 新しいシステム変数の画面に以下を入力して「OK」ボタンをクリックする。\\ <code>変数名: HGENCODING 変数値: utf-8 </code> ===== ファイル名をutf-8で扱うように設定(hg-fixutf8 編) ==== <html><span style="color: red">※hg-fixutf8を動作させるには、TortoiseHg 2.1.4(Mercurial 1.9.3)をインストールする必要がある。(2012/05/09現在)</span></html> ==== hg-fixutf8 の入手 ==== - エクスプローラで C:\ を開き、右クリック [TortoiseHg] - [リポジトリのクローン...]を開く。 - クローンの画面で以下を入力する。\\ ソース: http://bitbucket.org/tinyfish/hg-fixutf8/\\ ターゲット: C:\ - [クローン]ボタンをクリックする。 ==== 設定ファイルの編集 ==== 以下のファイルにエディタで追記する。\\ C:\Users\username\mercurial.ini <code> [ui] username = TomoYan <tomoyan@example.com> [extensions] fixutf8 = C:\hg-fixutf8\fixutf8.py </code> ==== Mercurial のエンコードを UTF-8 に設定 ==== - 「コントロール パネル」-「システムとセキュリティ」-「システム」-「システムの詳細設定」を開く。 - 「詳細設定」タブの「環境変数」ボタンをクリックして、「システム環境変数」の「新規」ボタンをクリックする。 - 新しいシステム変数の画面に以下を入力して「OK」ボタンをクリックする。\\ 変数名: HGENCODING\\ 変数値: utf-8 ===== 参考文献 ===== [[http://www.asukaze.net/etc/vcs/hg-fixutf8.html|TortoiseHg で日本語ファイル名 - あすかぜ・ねっと]]\\ windows/mercurial.txt 最終更新: 2023/07/28 09:37by ともやん