両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
linux:tortoisehg [2015/07/20 21:05] – 外部編集 非ログインユーザー | linux:tortoisehg [2024/02/27 06:46] (現在) – [TortoiseHg - Mercurial 分散型バージョン管理システム用ツール] ともやん |
---|
====== TortoiseHg ====== | ====== TortoiseHg - Mercurial 分散型バージョン管理システム用ツール ====== |
{{:linux:tortoisehg.png?640|Screenshot_from_2013-03-19 23:59:18}} | {{:linux:tortoisehg.png?640|Screenshot_from_2013-03-19 23:59:18}}\\ |
| |
| [[python:mercurial|Mercurial - 分散型バージョン管理システム]] も参照🤔\\ |
| |
===== インストール ===== | ===== インストール ===== |
CentOS 7.1\\ | CentOS 7.1\\ |
\\ | \\ |
[[linux:centos_rpmfusion|CentOS 7 で EPEL, RPM Fusion, Remi, RepoForge(RPM Forge), Nux Dextop リポジトリを利用する]] の手順を行ってから、以下の手順でインストールする。 | [[linux:centos:rpmfusion|CentOS 7 で EPEL, RPM Fusion, Remi, RepoForge(RPM Forge), Nux Dextop リポジトリを利用する]] の手順を行ってから、以下の手順でインストールする。 |
<code> | <code> |
$ sudo yum install PyQt4-devel python-devel python-iniparse gcc gettext | $ sudo yum install PyQt4-devel python-devel python-iniparse gcc gettext |
| |
Fedora | Fedora |
<code> | <WRAP color_term> |
$ sudo yum install mercurial tortoisehg tortoisehg-nautilus | <WRAP color_command><html><pre> |
</code> | <font color="#FF8700"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">sudo</u></font> <font color="#26A269">dnf</font> install <font color="#A347BA">-y</font> mercurial tortoisehg tortoisehg-nautilus |
| </pre></html></WRAP> |
| <WRAP color_result_long><html><pre> |
| メタデータの期限切れの最終確認: 0:02:48 前の 2024年02月27日 06時39分58秒 に実施しました。 |
| 依存関係が解決しました。 |
| ============================================================================================================== |
| パッケージ アーキテクチャー バージョン リポジトリー サイズ |
| ============================================================================================================== |
| インストール: |
| <font color="#26A269"><b>mercurial </b></font> x86_64 6.5.3-1.fc39 updates 6.4 M |
| <font color="#26A269"><b>tortoisehg </b></font> noarch 6.5.1-1.fc39 fedora 3.4 M |
| <font color="#26A269"><b>tortoisehg-nautilus </b></font> noarch 6.5.1-1.fc39 fedora 13 k |
| 依存関係のインストール: |
| <font color="#26A269"><b>nautilus-python </b></font> x86_64 4.0-4.fc39 fedora 30 k |
| <font color="#26A269"><b>python-pyqt6-rpm-macros </b></font> noarch 6.6.1-5.fc39 updates 9.4 k |
| <font color="#26A269"><b>python3-iniparse </b></font> noarch 0.5-6.fc39 fedora 54 k |
| <font color="#26A269"><b>python3-pygments </b></font> noarch 2.15.1-4.fc39 fedora 2.4 M |
| <font color="#26A269"><b>python3-pyqt6 </b></font> x86_64 6.6.1-5.fc39 updates 1.1 M |
| <font color="#26A269"><b>python3-pyqt6-base </b></font> x86_64 6.6.1-5.fc39 updates 3.3 M |
| <font color="#26A269"><b>python3-pyqt6-sip </b></font> x86_64 13.6.0-1.fc39 updates 77 k |
| <font color="#26A269"><b>python3-qscintilla-qt6 </b></font> x86_64 2.13.4-3.fc39 fedora 317 k |
| <font color="#26A269"><b>python3-zombie-imp </b></font> noarch 0.0.2-2.fc39 fedora 29 k |
| <font color="#26A269"><b>qscintilla-qt6 </b></font> x86_64 2.13.4-3.fc39 fedora 1.1 M |
| <font color="#26A269"><b>qt6-qtconnectivity </b></font> x86_64 6.6.2-1.fc39 updates 470 k |
| <font color="#26A269"><b>qt6-qtmultimedia </b></font> x86_64 6.6.2-1.fc39 updates 1.0 M |
| <font color="#26A269"><b>qt6-qtpdf </b></font> x86_64 6.6.2-1.fc39 updates 2.4 M |
| <font color="#26A269"><b>qt6-qtpositioning </b></font> x86_64 6.6.2-1.fc39 updates 443 k |
| <font color="#26A269"><b>qt6-qtquick3d </b></font> x86_64 6.6.2-1.fc39 updates 4.1 M |
| <font color="#26A269"><b>qt6-qtquicktimeline </b></font> x86_64 6.6.2-1.fc39 updates 59 k |
| <font color="#26A269"><b>qt6-qtremoteobjects </b></font> x86_64 6.6.2-1.fc39 updates 475 k |
| <font color="#26A269"><b>qt6-qtsensors </b></font> x86_64 6.6.2-1.fc39 updates 226 k |
| <font color="#26A269"><b>qt6-qtserialport </b></font> x86_64 6.6.2-1.fc39 updates 76 k |
| <font color="#26A269"><b>qt6-qtshadertools </b></font> x86_64 6.6.2-1.fc39 updates 1.4 M |
| <font color="#26A269"><b>qt6-qtspeech </b></font> x86_64 6.6.2-1.fc39 updates 111 k |
| <font color="#26A269"><b>qt6-qttools-common </b></font> noarch 6.6.2-1.fc39 updates 11 k |
| <font color="#26A269"><b>qt6-qttools-libs-designer </b></font> x86_64 6.6.2-1.fc39 updates 2.9 M |
| <font color="#26A269"><b>qt6-qttools-libs-help </b></font> x86_64 6.6.2-1.fc39 updates 199 k |
| <font color="#26A269"><b>qt6-qtwebchannel </b></font> x86_64 6.6.2-1.fc39 updates 151 k |
| <font color="#26A269"><b>qt6-qtwebsockets </b></font> x86_64 6.6.2-1.fc39 updates 104 k |
| 弱い依存関係のインストール: |
| <font color="#26A269"><b>qt6-qtspeech-speechd </b></font> x86_64 6.6.2-1.fc39 updates 34 k |
| |
| トランザクションの概要 |
| ============================================================================================================== |
| インストール 30 パッケージ |
| |
| ダウンロードサイズの合計: 32 M |
| インストール後のサイズ: 122 M |
| パッケージのダウンロード: |
| (1/30): nautilus-python-4.0-4.fc39.x86_64.rpm 162 kB/s | 30 kB 00:00 |
| (2/30): python3-iniparse-0.5-6.fc39.noarch.rpm 208 kB/s | 54 kB 00:00 |
| (3/30): python3-zombie-imp-0.0.2-2.fc39.noarch.rpm 143 kB/s | 29 kB 00:00 |
| (4/30): python3-qscintilla-qt6-2.13.4-3.fc39.x86_64.rpm 315 kB/s | 317 kB 00:01 |
| (5/30): tortoisehg-6.5.1-1.fc39.noarch.rpm 2.2 MB/s | 3.4 MB 00:01 |
| (6/30): tortoisehg-nautilus-6.5.1-1.fc39.noarch.rpm 85 kB/s | 13 kB 00:00 |
| (7/30): qscintilla-qt6-2.13.4-3.fc39.x86_64.rpm 399 kB/s | 1.1 MB 00:02 |
| (8/30): mercurial-6.5.3-1.fc39.x86_64.rpm 2.0 MB/s | 6.4 MB 00:03 |
| (9/30): python-pyqt6-rpm-macros-6.6.1-5.fc39.noarch.rpm 3.2 kB/s | 9.4 kB 00:02 |
| (10/30): python3-pygments-2.15.1-4.fc39.noarch.rpm 393 kB/s | 2.4 MB 00:06 |
| (11/30): python3-pyqt6-6.6.1-5.fc39.x86_64.rpm 3.1 MB/s | 1.1 MB 00:00 |
| (12/30): python3-pyqt6-base-6.6.1-5.fc39.x86_64.rpm 2.5 MB/s | 3.3 MB 00:01 |
| (13/30): python3-pyqt6-sip-13.6.0-1.fc39.x86_64.rpm 62 kB/s | 77 kB 00:01 |
| (14/30): qt6-qtconnectivity-6.6.2-1.fc39.x86_64.rpm 458 kB/s | 470 kB 00:01 |
| (15/30): qt6-qtmultimedia-6.6.2-1.fc39.x86_64.rpm 2.3 MB/s | 1.0 MB 00:00 |
| (16/30): qt6-qtpdf-6.6.2-1.fc39.x86_64.rpm 3.1 MB/s | 2.4 MB 00:00 |
| (17/30): qt6-qtpositioning-6.6.2-1.fc39.x86_64.rpm 535 kB/s | 443 kB 00:00 |
| (18/30): qt6-qtquick3d-6.6.2-1.fc39.x86_64.rpm 3.0 MB/s | 4.1 MB 00:01 |
| (19/30): qt6-qtquicktimeline-6.6.2-1.fc39.x86_64.rpm 60 kB/s | 59 kB 00:00 |
| (20/30): qt6-qtremoteobjects-6.6.2-1.fc39.x86_64.rpm 475 kB/s | 475 kB 00:01 |
| (21/30): qt6-qtsensors-6.6.2-1.fc39.x86_64.rpm 765 kB/s | 226 kB 00:00 |
| (22/30): qt6-qtserialport-6.6.2-1.fc39.x86_64.rpm 299 kB/s | 76 kB 00:00 |
| (23/30): qt6-qtshadertools-6.6.2-1.fc39.x86_64.rpm 2.0 MB/s | 1.4 MB 00:00 |
| (24/30): qt6-qtspeech-6.6.2-1.fc39.x86_64.rpm 213 kB/s | 111 kB 00:00 |
| (25/30): qt6-qtspeech-speechd-6.6.2-1.fc39.x86_64.rpm 63 kB/s | 34 kB 00:00 |
| (26/30): qt6-qttools-common-6.6.2-1.fc39.noarch.rpm 82 kB/s | 11 kB 00:00 |
| (27/30): qt6-qttools-libs-designer-6.6.2-1.fc39.x86_64.rpm 1.6 MB/s | 2.9 MB 00:01 |
| (28/30): qt6-qttools-libs-help-6.6.2-1.fc39.x86_64.rpm 105 kB/s | 199 kB 00:01 |
| (29/30): qt6-qtwebchannel-6.6.2-1.fc39.x86_64.rpm 67 kB/s | 151 kB 00:02 |
| (30/30): qt6-qtwebsockets-6.6.2-1.fc39.x86_64.rpm 230 kB/s | 104 kB 00:00 |
| -------------------------------------------------------------------------------------------------------------- |
| 合計 2.5 MB/s | 32 MB 00:13 |
| トランザクションの確認を実行中 |
| トランザクションの確認に成功しました。 |
| トランザクションのテストを実行中 |
| トランザクションのテストに成功しました。 |
| トランザクションを実行中 |
| 準備 : 1/1 |
| インストール中 : qt6-qttools-common-6.6.2-1.fc39.noarch 1/30 |
| インストール中 : qt6-qtserialport-6.6.2-1.fc39.x86_64 2/30 |
| インストール中 : qt6-qtmultimedia-6.6.2-1.fc39.x86_64 3/30 |
| インストール中 : qt6-qtspeech-speechd-6.6.2-1.fc39.x86_64 4/30 |
| インストール中 : qt6-qtspeech-6.6.2-1.fc39.x86_64 5/30 |
| インストール中 : python3-pyqt6-sip-13.6.0-1.fc39.x86_64 6/30 |
| インストール中 : qt6-qtpositioning-6.6.2-1.fc39.x86_64 7/30 |
| インストール中 : qt6-qttools-libs-designer-6.6.2-1.fc39.x86_64 8/30 |
| インストール中 : qt6-qttools-libs-help-6.6.2-1.fc39.x86_64 9/30 |
| インストール中 : qt6-qtwebsockets-6.6.2-1.fc39.x86_64 10/30 |
| インストール中 : qt6-qtwebchannel-6.6.2-1.fc39.x86_64 11/30 |
| インストール中 : qt6-qtshadertools-6.6.2-1.fc39.x86_64 12/30 |
| インストール中 : qt6-qtsensors-6.6.2-1.fc39.x86_64 13/30 |
| インストール中 : qt6-qtremoteobjects-6.6.2-1.fc39.x86_64 14/30 |
| インストール中 : qt6-qtquicktimeline-6.6.2-1.fc39.x86_64 15/30 |
| インストール中 : qt6-qtquick3d-6.6.2-1.fc39.x86_64 16/30 |
| インストール中 : qt6-qtpdf-6.6.2-1.fc39.x86_64 17/30 |
| インストール中 : qt6-qtconnectivity-6.6.2-1.fc39.x86_64 18/30 |
| インストール中 : python-pyqt6-rpm-macros-6.6.1-5.fc39.noarch 19/30 |
| インストール中 : python3-pyqt6-base-6.6.1-5.fc39.x86_64 20/30 |
| インストール中 : python3-pyqt6-6.6.1-5.fc39.x86_64 21/30 |
| インストール中 : qscintilla-qt6-2.13.4-3.fc39.x86_64 22/30 |
| インストール中 : python3-qscintilla-qt6-2.13.4-3.fc39.x86_64 23/30 |
| インストール中 : python3-zombie-imp-0.0.2-2.fc39.noarch 24/30 |
| インストール中 : mercurial-6.5.3-1.fc39.x86_64 25/30 |
| インストール中 : python3-pygments-2.15.1-4.fc39.noarch 26/30 |
| インストール中 : python3-iniparse-0.5-6.fc39.noarch 27/30 |
| インストール中 : tortoisehg-6.5.1-1.fc39.noarch 28/30 |
| インストール中 : nautilus-python-4.0-4.fc39.x86_64 29/30 |
| インストール中 : tortoisehg-nautilus-6.5.1-1.fc39.noarch 30/30 |
| scriptletの実行中: tortoisehg-nautilus-6.5.1-1.fc39.noarch 30/30 |
| 検証 : nautilus-python-4.0-4.fc39.x86_64 1/30 |
| 検証 : python3-iniparse-0.5-6.fc39.noarch 2/30 |
| 検証 : python3-pygments-2.15.1-4.fc39.noarch 3/30 |
| 検証 : python3-qscintilla-qt6-2.13.4-3.fc39.x86_64 4/30 |
| 検証 : python3-zombie-imp-0.0.2-2.fc39.noarch 5/30 |
| 検証 : qscintilla-qt6-2.13.4-3.fc39.x86_64 6/30 |
| 検証 : tortoisehg-6.5.1-1.fc39.noarch 7/30 |
| 検証 : tortoisehg-nautilus-6.5.1-1.fc39.noarch 8/30 |
| 検証 : mercurial-6.5.3-1.fc39.x86_64 9/30 |
| 検証 : python-pyqt6-rpm-macros-6.6.1-5.fc39.noarch 10/30 |
| 検証 : python3-pyqt6-6.6.1-5.fc39.x86_64 11/30 |
| 検証 : python3-pyqt6-base-6.6.1-5.fc39.x86_64 12/30 |
| 検証 : python3-pyqt6-sip-13.6.0-1.fc39.x86_64 13/30 |
| 検証 : qt6-qtconnectivity-6.6.2-1.fc39.x86_64 14/30 |
| 検証 : qt6-qtmultimedia-6.6.2-1.fc39.x86_64 15/30 |
| 検証 : qt6-qtpdf-6.6.2-1.fc39.x86_64 16/30 |
| 検証 : qt6-qtpositioning-6.6.2-1.fc39.x86_64 17/30 |
| 検証 : qt6-qtquick3d-6.6.2-1.fc39.x86_64 18/30 |
| 検証 : qt6-qtquicktimeline-6.6.2-1.fc39.x86_64 19/30 |
| 検証 : qt6-qtremoteobjects-6.6.2-1.fc39.x86_64 20/30 |
| 検証 : qt6-qtsensors-6.6.2-1.fc39.x86_64 21/30 |
| 検証 : qt6-qtserialport-6.6.2-1.fc39.x86_64 22/30 |
| 検証 : qt6-qtshadertools-6.6.2-1.fc39.x86_64 23/30 |
| 検証 : qt6-qtspeech-6.6.2-1.fc39.x86_64 24/30 |
| 検証 : qt6-qtspeech-speechd-6.6.2-1.fc39.x86_64 25/30 |
| 検証 : qt6-qttools-common-6.6.2-1.fc39.noarch 26/30 |
| 検証 : qt6-qttools-libs-designer-6.6.2-1.fc39.x86_64 27/30 |
| 検証 : qt6-qttools-libs-help-6.6.2-1.fc39.x86_64 28/30 |
| 検証 : qt6-qtwebchannel-6.6.2-1.fc39.x86_64 29/30 |
| 検証 : qt6-qtwebsockets-6.6.2-1.fc39.x86_64 30/30 |
| |
| インストール済み: |
| mercurial-6.5.3-1.fc39.x86_64 nautilus-python-4.0-4.fc39.x86_64 |
| python-pyqt6-rpm-macros-6.6.1-5.fc39.noarch python3-iniparse-0.5-6.fc39.noarch |
| python3-pygments-2.15.1-4.fc39.noarch python3-pyqt6-6.6.1-5.fc39.x86_64 |
| python3-pyqt6-base-6.6.1-5.fc39.x86_64 python3-pyqt6-sip-13.6.0-1.fc39.x86_64 |
| python3-qscintilla-qt6-2.13.4-3.fc39.x86_64 python3-zombie-imp-0.0.2-2.fc39.noarch |
| qscintilla-qt6-2.13.4-3.fc39.x86_64 qt6-qtconnectivity-6.6.2-1.fc39.x86_64 |
| qt6-qtmultimedia-6.6.2-1.fc39.x86_64 qt6-qtpdf-6.6.2-1.fc39.x86_64 |
| qt6-qtpositioning-6.6.2-1.fc39.x86_64 qt6-qtquick3d-6.6.2-1.fc39.x86_64 |
| qt6-qtquicktimeline-6.6.2-1.fc39.x86_64 qt6-qtremoteobjects-6.6.2-1.fc39.x86_64 |
| qt6-qtsensors-6.6.2-1.fc39.x86_64 qt6-qtserialport-6.6.2-1.fc39.x86_64 |
| qt6-qtshadertools-6.6.2-1.fc39.x86_64 qt6-qtspeech-6.6.2-1.fc39.x86_64 |
| qt6-qtspeech-speechd-6.6.2-1.fc39.x86_64 qt6-qttools-common-6.6.2-1.fc39.noarch |
| qt6-qttools-libs-designer-6.6.2-1.fc39.x86_64 qt6-qttools-libs-help-6.6.2-1.fc39.x86_64 |
| qt6-qtwebchannel-6.6.2-1.fc39.x86_64 qt6-qtwebsockets-6.6.2-1.fc39.x86_64 |
| tortoisehg-6.5.1-1.fc39.noarch tortoisehg-nautilus-6.5.1-1.fc39.noarch |
| |
| 完了しました! |
| </pre></html></WRAP> |
| </WRAP> |
===== 起動 ===== | ===== 起動 ===== |
アクティビティ -> アプリケーションを表示する -> TortoiseHg をクリック。\\ | アクティビティ -> アプリケーションを表示する -> TortoiseHg をクリック。\\ |
===== トラブルシューティング ===== | ===== トラブルシューティング ===== |
==== TortoiseHgバグ報告が表示される ==== | ==== TortoiseHgバグ報告が表示される ==== |
Fedora 20 で tortoisehg-2.11、mercurial-2.8.1の場合は、画面に以下の内容が表示されてしまう。 | Fedora 23 で tortoisehg-3.5.1、mercurial-3.6.3の場合は、画面に以下の内容が表示されてしまう。 |
<code> | <code> |
#!python | #!python |
** Mercurial version (2.8.1). TortoiseHg version (2.11) | ** ** Mercurial version (3.6.3). TortoiseHg version (3.5.1) |
** Command: --nofork | ** Command: --nofork |
** CWD: /var/www/vhosts/localhost/private/cloud_manager | ** CWD: /var/www/vhosts/localhost/private/cloud_manager |
** Encoding: UTF-8 | ** Encoding: UTF-8 |
** Extensions loaded: | ** Extensions loaded: |
** Python version: 2.7.5 (default, Feb 19 2014, 13:47:28) | ** Python version: 2.7.10 (default, Sep 8 2015, 17:20:17) |
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] | [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] |
** System: Linux hostname.localdomain 3.13.5-202.fc20.x86_64 | ** System: Linux hostname.localdomain 4.2.8-300.fc23.x86_64 |
#1 SMP Mon Mar 3 19:08:00 UTC 2014 x86_64 | #1 SMP Tue Dec 15 16:49:06 UTC 2015 x86_64 |
** Qt-4.8.5 PyQt-4.10.2 QScintilla-2.7.2 | ** Qt-4.8.7 PyQt-4.11.4 QScintilla-2.9.1 |
| |
This version of TortoiseHg requires Mercurial version 2.6.n to 2.7.n, but found 2.8.1 | This version of TortoiseHg requires Mercurial version 3.4.n to 3.5.n, but found 3.6.3 |
</code> | </code> |
| |
\\ | \\ |
その場合は、tortoisehg の checkhgversion() を修正することで、ひとまず動作させることができる。\\ | その場合は、tortoisehg の checkhgversion() で判定しているバージョンを修正することで、ひとまず動作させることができる。\\ |
- hgversion.pyのパスを調べる。 | - hgversion.pyのパスを調べる。<code> |
<code> | |
$ rpm -ql tortoisehg | grep hgversion.py | $ rpm -ql tortoisehg | grep hgversion.py |
/usr/lib/python2.7/site-packages/tortoisehg/util/hgversion.py | /usr/lib/python2.7/site-packages/tortoisehg/util/hgversion.py |
</code> | </code> |
- checkhgversion() 関数のバージョンを2.6から2.8へ変更する。 | - checkhgversion() 関数の手前の testedwith 変数を書き足す。<code> |
<code> | |
$ sudo vi /usr/lib/python2.7/site-packages/tortoisehg/util/hgversion.py | $ sudo vi /usr/lib/python2.7/site-packages/tortoisehg/util/hgversion.py |
| </code><code python> |
| #testedwith = '3.4 3.5' |
| testedwith = '3.4 3.5 3.6' |
</code> | </code> |
<code python> | \\ |
| 古い tortoisehg の場合は以下のように直す。 |
| - checkhgversion() 関数のバージョンを2.6から2.8へ変更する。<code> |
| $ sudo vi /usr/lib/python2.7/site-packages/tortoisehg/util/hgversion.py |
| </code><code python> |
def checkhgversion(v): | def checkhgversion(v): |
"""range check the Mercurial version""" | """range check the Mercurial version""" |
v = v.split('+')[0] | v = v.split('+')[0] |
</code> | </code> |
| |
==== 何も表示されず起動もしない... orz ==== | ==== 何も表示されず起動もしない... orz ==== |
Qtまわりが原因で起動しない場合は何も表示されないようである。\\ | Qtまわりが原因で起動しない場合は何も表示されないようである。\\ |