python:mercurial

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
python:mercurial [2020/04/27 00:12] ともやんpython:mercurial [2024/03/14 09:30] (現在) ともやん
行 1: 行 1:
-<html> 
-  <style> 
-    #result pre, #mincode pre { 
-      overflow: scroll; 
-      overflow-x: hidden; 
-      font-size: 10px; 
-    } 
-    #result_long pre { 
-      height: 400px; 
-      overflow: scroll; 
-      overflow-x: hidden; 
-      font-size: 10px; 
-    } 
-    #logo { 
-      background-color: white; 
-      padding: 10px; 
-      width: fit-content; 
-    } 
-    #logo p { 
-      margin: 0; 
-    } 
-  </style> 
-</html> 
 ====== Mercurial - 分散型バージョン管理システム ====== ====== Mercurial - 分散型バージョン管理システム ======
 +本家: [[https://www.mercurial-scm.org/|Mercurial SCM]]\\
 +
 +関連: [[linux:tortoisehg|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]]\\
  
 ===== 前提条件 ===== ===== 前提条件 =====
行 30: 行 10:
 [[python:easy_install|easy_install、setuptools、pip - パッケージ管理]]\\ [[python:easy_install|easy_install、setuptools、pip - パッケージ管理]]\\
  
-CentOS の場合は gcc と python-devel をインストールしておく。 +Fedora の場合は gcc と python-devel をインストールしておく。 
-<code+<WRAP color_term
-$ sudo yum install gcc python-devel +<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">yum</font> install gcc python-devel 
 +</pre></html></WRAP> 
 +</WRAP> 
 ===== インストール ===== ===== インストール =====
 **pip** によるインストール。\\ **pip** によるインストール。\\
-<code+<WRAP color_term
-sudo pip install mercurial +<WRAP color_command><html><pre> 
-</code+<font color="#FF8700"><b>$</b></font> <font color="#26A269">pip</font> install <font color="#A347BA">--user</font><font color="#999999"> mercurial</font
-<WRAP prewrap 100% #result+</pre></html></WRAP> 
-<code> +<WRAP color_result><html><pre>
-WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.+
 Collecting mercurial Collecting mercurial
-  Downloading https://files.pythonhosted.org/packages/79/54/ccc37f1f55b91d48ed1de38ffbb81e32697dc69accea017c8faad21360bf/mercurial-5.3.2.tar.gz (7.5MB+  Downloading mercurial-6.6.3.tar.gz (8.3 MB) 
-     |████████████████████████████████| 7.5MB 1.2MB/s+     <font color="#729C1F">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">8.3/8.3 MB</font> <font color="#C01C28">846.3 kB/s</font> eta <font color="#2AA1B3">0:00:00</font> 
 +  Installing build dependencies ... done 
 +  Getting requirements to build wheel ... done 
 +  Preparing metadata (pyproject.toml... done 
 +Building wheels for collected packages: mercurial 
 +  Building wheel for mercurial (pyproject.toml) ... done 
 +  Created wheel for mercurial: filename=mercurial-6.6.3-cp312-cp312-linux_x86_64.whl size=4743353 sha256=a592c0a7feb366d2f05ce876e9ca095602dee4e3944359c46678136601ca6cd3 
 +  Stored in directory: /home/tomoyan/.cache/pip/wheels/57/df/cd/77d5eb43b732c34dfdd051d941d9f361391f4160b799994b7c 
 +Successfully built mercurial
 Installing collected packages: mercurial Installing collected packages: mercurial
-  Running setup.py install for mercurial ... done +Successfully installed mercurial-6.6.3 
-Successfully installed mercurial-5.3.2 +</pre></html></WRAP> 
-</code>+</WRAP> 
 + 
 +**DietPi**\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">pip</font> install <font color="#A347BA">--user</font>  mercurial 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple/ 
 +Collecting mercurial 
 +  Downloading https://www.piwheels.org/simple/mercurial/mercurial-6.6.3-cp311-cp311-linux_armv6l.whl (6.2 MB) 
 +     <font color="#5FAF00">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">6.2/6.2 MB</font> <font color="#C01C28">239.6 kB/s</font> eta <font color="#2AA1B3">0:00:00</font> 
 +Installing collected packages: mercurial 
 +Successfully installed mercurial-6.6.3 
 +</pre></html></WRAP> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">which</font> hg 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +/home/dietpi/.local/bin/hg 
 +</pre></html></WRAP>
 </WRAP> </WRAP>
  
 **dnf** によるインストール。\\ **dnf** によるインストール。\\
-<code+<WRAP color_term
-$ sudo dnf install mercurial +<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 
-<WRAP prewrap 100% #result_long+</pre></html></WRAP> 
-<code+<WRAP color_result_long><html><pre
-メタデータの期限切れの最終確認: 0:00:36 時間前の 202004月27日 000418秒 に実施しました。+メタデータの期限切れの最終確認: 2:21:11 前の 202402月27日 033909秒 に実施しました。
 依存関係が解決しました。 依存関係が解決しました。
-===================================================================================== +============================================================================================================== 
- Package             Architecture     Version                 Repository        Size + パッケージ                       アーキテクチャー     バージョン                 リポジトリー          サイズ 
-=====================================================================================+==============================================================================================================
 インストール: インストール:
- mercurial           x86_64           4.9-2.fc31              fedora           4.8 M+ <font color="#26A269"><b>mercurial                       </b></font> x86_64               6.5.3-1.fc39               updates               6.
 +依存関係のインストール: 
 + <font color="#26A269"><b>python3-zombie-imp              </b></font> noarch               0.0.2-2.fc39               fedora                 29 k
  
 トランザクションの概要 トランザクションの概要
-===================================================================================== +============================================================================================================== 
-インストール  パッケージ+インストール  パッケージ
  
-ダウンロードサイズの合計: 4.+ダウンロードサイズの合計: 6.
-インストール済みのサイズ: 24 M +インストールのサイズ: 31 M
-これでよろしいですか? [y/N]: y+
 パッケージのダウンロード: パッケージのダウンロード:
-mercurial-4.9-2.fc31.x86_64.rpm                      1.MB/s | 4.8 MB     00:03 +(1/2): python3-zombie-imp-0.0.2-2.fc39.noarch.rpm                             108 kB/s |  29 kB     00:00     
-------------------------------------------------------------------------------------- +(2/2): mercurial-6.5.3-1.fc39.x86_64.rpm                                      1.MB/s | 6.4 MB     00:03     
-合計                                                 1.MB/s | 4.MB     00:04+-------------------------------------------------------------------------------------------------------------- 
 +合計                                                                          1.MB/s | 6.MB     00:04     
 トランザクションの確認を実行中 トランザクションの確認を実行中
 トランザクションの確認に成功しました。 トランザクションの確認に成功しました。
行 81: 行 93:
 トランザクションのテストに成功しました。 トランザクションのテストに成功しました。
 トランザクションを実行中 トランザクションを実行中
-  準備             :                                                             1/1 +  準備             :                                                                                      1/1  
-  インストール中   : mercurial-4.9-2.fc31.x86_64                                 1/1 +  インストール中   : python3-zombie-imp-0.0.2-2.fc39.noarch                                               1/2  
-  scriptletの実行中: mercurial-4.9-2.fc31.x86_64                                 1/1 +  インストール中   : mercurial-6.5.3-1.fc39.x86_64                                                        2/2  
-  検証             : mercurial-4.9-2.fc31.x86_64                                 1/1+  scriptletの実行中: mercurial-6.5.3-1.fc39.x86_64                                                        2/ 
 +  検証             : python3-zombie-imp-0.0.2-2.fc39.noarch                                               1/2  
 +  検証             : mercurial-6.5.3-1.fc39.x86_64                                                        2/2 
  
 インストール済み: インストール済み:
-  mercurial-4.9-2.fc31.x86_64+  mercurial-6.5.3-1.fc39.x86_64                     python3-zombie-imp-0.0.2-2.fc39.noarch                    
  
 完了しました! 完了しました!
-</code>+</pre></html></WRAP>
 </WRAP> </WRAP>
  
 ===== 動作確認 ===== ===== 動作確認 =====
-<code+<WRAP color_term
-$ hg version +<WRAP color_command><html><pre> 
-Mercurial - 分散構成管理ツール(バージョン 3.4.1+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> version 
-(詳細は http://mercurial.selenic.com を参照)+</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +Mercurial - 分散構成管理ツール(バージョン 6.6.3
 +(詳細は https://mercurial-scm.org を参照)
  
-Copyright (C) 2005-2015 Matt Mackall  +Copyright (C) 2005-2023 Olivia Mackall and others 
-本製品はフリーソフトウェアです。 +This is free software; see the source for copying conditions. There is NO 
-頒布条件に関しては同梱されるライセンス条項をお読みください。 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
-市場適合性や特定用途への可否を含め、 本製品は無保証です。 +</pre></html></WRAP> 
-</code>+</WRAP>
  
 ===== 使い方 ===== ===== 使い方 =====
  
 ==== 初期設定 ==== ==== 初期設定 ====
-<code+<WRAP color_term
-vi ~/.hgrc +<WRAP color_command><html><pre> 
-</code+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> config <font color="#A347BA">--edit</font> 
-<code>+</pre></html></WRAP> 
 +もしくは\\ 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> EDITOR=nano <font color="#26A269">hg</font> config <font color="#A347BA">--edit</font> 
 +</pre></html></WRAP> 
 +もしくは\\ 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">nano</font> <u style="text-decoration-style:single">~/.hgrc</u> 
 +</pre></html></WRAP
 +</WRAP> 
 +※**hg** コマンドのデフォルトエディタは **EDITOR** 変数が設定されていない限りは **vi** である。\\ 
 +永続的に **nano** に変更する場合は、以下のように設定を保存する。\\ 
 + 
 +**zsh**\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">echo</font> <font color="#A2734C">&apos;export EDITOR=nano&apos;</font> <font color="#13496F"><b>&gt;&gt;</b></font> <u style="text-decoration-style:single">~/.zshrc</u> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">.</font> <u style="text-decoration-style:single">~/.zshrc</u> 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +**Bash**\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">echo</font> <font color="#A2734C">&apos;export EDITOR=nano&apos;</font> <font color="#13496F"><b>&gt;&gt;</b></font> <u style="text-decoration-style:single">~/.bashrc</u> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">.</font> <u style="text-decoration-style:single">~/.bashrc</u> 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +Mercurial のユーザー名を設定する🤔\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> config <font color="#A347BA">--edit</font> 
 +</pre></html></WRAP> 
 +<WRAP color_mincode><code ini ~/.hgrc>
 [ui] [ui]
 username = Tomoyan <tomoyan@example.com> username = Tomoyan <tomoyan@example.com>
-</code>+</code></WRAP> 
 +</WRAP>
  
 ==== リポジトリの作成 ==== ==== リポジトリの作成 ====
 既存のディレクトリでリポジトリを作成する。 既存のディレクトリでリポジトリを作成する。
-<code+<WRAP color_term
-$ mkdir repos +<WRAP color_command><html><pre> 
-cd repos +<font color="#FF8700"><b>$</b></font> <font color="#26A269">mkdir</font> repos <font color="#12488B"><b>&amp;&amp;</b></font> <font color="#26A269">cd</font> repos 
-$ hg init +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> init 
-</code>+</pre></html></WRAP> 
 +</WRAP>
  
 新たにリポジトリのディレクトリを作成する。 新たにリポジトリのディレクトリを作成する。
-<code+<WRAP color_term
-$ hg init repos +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> init repos 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== ソース管理から除外するファイルの設定 ==== ==== ソース管理から除外するファイルの設定 ====
-<code+<WRAP color_term
-vi .hgignore +<WRAP color_command><html><pre> 
-</code+<font color="#FF8700"><b>$</b></font> <font color="#26A269">nano</font> .hgignore 
-<code autoconf>+</pre></html></WRAP
 +</WRAP> 
 +<WRAP color_term> 
 +<WRAP color_mincode><code autoconf .hgignore>
 # Shell 形式パターンマッチ # Shell 形式パターンマッチ
 syntax: glob syntax: glob
行 139: 行 197:
 *.pyc *.pyc
 </code> </code>
-<code autoconf>+<code autoconf .hgignore>
 # 正規表現パターンマッチ # 正規表現パターンマッチ
 syntax: regexp syntax: regexp
  
 ^\.git/ ^\.git/
-</code>+</code></WRAP> 
 +</WRAP>
  
 ==== ファイルの追加 ==== ==== ファイルの追加 ====
-<code+<WRAP color_term
-$ hg add file.txt +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> add file.txt 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== ステータスの確認 ==== ==== ステータスの確認 ====
-<code+<WRAP color_term
-$ hg status+<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> status 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre>
 A file.txt A file.txt
-</code>+</pre></html></WRAP> 
 +</WRAP>
  
 ==== コミット ==== ==== コミット ====
-<code+<WRAP color_term
-$ hg commit +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> commit 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== 差分表示 ==== ==== 差分表示 ====
-<code+<WRAP color_term
-$ hg diff +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> diff 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== 編集取り消し ==== ==== 編集取り消し ====
-<code+<WRAP color_term
-$ hg revert file.txt +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> revert file.txt 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== コミット取り消し ==== ==== コミット取り消し ====
-<code+<WRAP color_term
-$ hg rollback +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> rollback 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== コミットログ表示 ==== ==== コミットログ表示 ====
-<code+<WRAP color_term
-$ hg log +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> log 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== リモートリポジトリの複製 ==== ==== リモートリポジトリの複製 ====
-ssh経由でリモートリポジトリをローカルに複製する。 +ssh 経由でリモートリポジトリをローカルに複製する。 
-<code+<WRAP color_term
-$ hg clone ssh://user@server:port//var/hg/hoge/fuga my-fuga +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> clone ssh://user@server:port//var/hg/hoge/fuga my-fuga 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== リモートリポジトリの変更取得 ==== ==== リモートリポジトリの変更取得 ====
-<code+<WRAP color_term
-$ hg pull +<WRAP color_command><html><pre> 
-$ hg update +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> pull 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> update 
 +</pre></html></WRAP> 
 +</WRAP> 
 作業領域の変更を破棄する場合 作業領域の変更を破棄する場合
-<code+<WRAP color_term
-$ hg update -C +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> update <font color="#A347BA">-C</font> 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== リモートリポジトリへ変更反映 ==== ==== リモートリポジトリへ変更反映 ====
-<code+<WRAP color_term
-$ hg push ssh://user@server:port//var/hg/hoge/fuga +<WRAP color_command><html><pre> 
-</code+<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> push ssh://user@server:port//var/hg/hoge/fuga 
-※push先にリポジトリが存在している必要がある。存在しない場合は作成するかcloneしておくこと。\\ +</pre></html></WRAP> 
-\\+</WRAP
 +※push 先にリポジトリが存在している必要がある。存在しない場合は作成しておくこと。\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">ssh</font> user@server <font color="#A347BA">-p22</font> hg init /var/hg/hoge/fuga 
 +</pre></html></WRAP> 
 +</WRAP>
  
-.hg/hgrc に以下の記載があるなら省略できる。 +<html><code>.hg/hgrc</code></html> に以下の記載があるなら省略できる。 
-<code>+<WRAP color_term> 
 +<WRAP color_mincode><code ini>
 [paths] [paths]
 default = ssh://user@server:port//var/hg/hoge/fuga default = ssh://user@server:port//var/hg/hoge/fuga
-</code> +</code></html></WRAP
-<code+<WRAP color_command><html><pre
-$ hg push +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> push 
-</code+</pre></html></WRAP
-\\+</WRAP>
  
-サーバーでリポジトリを作成する場合。 +サーバーでリポジトリを作成する場合。\\ 
-<code> +クライアントからサーバーへクローンすることもできるが...\\ 
-$ hg init fuga +<WRAP color_term
-</code> +<WRAP color_command><html><pre> 
-\\ +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> init fuga 
- +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> clone <u style="text-decoration-style:single">.</u> ssh://user@server:port//var/hg/hoge/fuga 
-クライアントからサーバーへクローンする場合。 +</pre></html></WRAP> 
-<code+</WRAP>
-$ hg clone . ssh://user@server:port//var/hg/hoge/fuga +
-</code>+
  
 ==== git を Mercurial へリポジトリ変換 ==== ==== git を Mercurial へリポジトリ変換 ====
 convert エクステンションを有効化する。\\ convert エクステンションを有効化する。\\
-<code+<WRAP color_term
-vi ~/.hgrc +<WRAP color_command><html><pre> 
-</code+<font color="#FF8700"><b>$</b></font> <font color="#26A269">nano</font> ~/.hgrc 
-<file ini ~/.hgrc>+</pre></html></WRAP
 +<WRAP color_mincode><html><file ini ~/.hgrc>
 [extensions] [extensions]
 convert = convert =
-</file>+</file></html></WRAP> 
 +</WRAP>
  
 git を Mercurial へ変換\\ git を Mercurial へ変換\\
-<code+<WRAP color_term
-$ hg convert [repository] [new-repository]+<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> convert <font color="#12488B"><b>[</b></font>repository<font color="#12488B"><b>]</b></font> <font color="#12488B"><b>[</b></font>new-repository<font color="#12488B"><b>]</b></font> 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre>
 変換先リポジトリ new-repository の初期化中 変換先リポジトリ new-repository の初期化中
 変換元リポジトリの走査中... 変換元リポジトリの走査中...
行 245: 行 337:
 9625 Initial structure 9625 Initial structure
 〜省略〜 〜省略〜
-$ cd new-repository +</pre></html></WRAP> 
-$ hg update +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">cd</font> new-repository 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> update 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ==== Subversion のリポジトリ を Mercurial へリポジトリ変換 ==== ==== Subversion のリポジトリ を Mercurial へリポジトリ変換 ====
 hg convert で svn を Mercurial に変換する。\\ hg convert で svn を Mercurial に変換する。\\
-<code+<WRAP color_term
-$ hg convert _wxHexEditor-v0.23-src_svn _wxHexEditor-v0.23-src_hg+<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> convert _wxHexEditor-v0.23-src_svn _wxHexEditor-v0.23-src_hg 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre>
 変換先リポジトリ _wxHexEditor-v0.23-src_hg の初期化中 変換先リポジトリ _wxHexEditor-v0.23-src_hg の初期化中
 変換元リポジトリの走査中... 変換元リポジトリの走査中...
 並べ替え中... 並べ替え中...
 変換中... 変換中...
-$ cd _wxHexEditor-v0.23-src_hg +</pre></html></WRAP> 
-$ hg update +<WRAP color_command><html><pre> 
-</code>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">cd</font> _wxHexEditor-v0.23-src_hg 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> update 
 +</pre></html></WRAP> 
 +</WRAP>
  
 === Subversion のリポジトリがリモートにしかない場合 === === Subversion のリポジトリがリモートにしかない場合 ===
 git-svn を使って svn を一度 git に変換する。\\ git-svn を使って svn を一度 git に変換する。\\
-<code+<WRAP color_term
-$ sudo dnf install git-svn +<WRAP color_command><html><pre> 
-$ git svn clone https://svn.code.sf.net/p/wxhexeditor/code/trunk wxHexEditor-v0.23-src_git+<font color="#FF8700"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:single">sudo</u></font> <font color="#26A269">dnf</font> install git-svn 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">git</font> svn clone https://svn.code.sf.net/p/wxhexeditor/code/trunk wxHexEditor-v0.23-src_git 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre>
 Initialized empty Git repository in /home/tomoyan/wxHexEditor-v0.23-src_git/.git/ Initialized empty Git repository in /home/tomoyan/wxHexEditor-v0.23-src_git/.git/
  A testfile  A testfile
行 276: 行 380:
   https://svn.code.sf.net/p/wxhexeditor/code/trunk r464   https://svn.code.sf.net/p/wxhexeditor/code/trunk r464
 creating empty directory: mhash/mhash-0.9.9/lib creating empty directory: mhash/mhash-0.9.9/lib
-</code>+</pre></html></WRAP> 
 +</WRAP> 
 hg convert で git を Mercurial に変換する。\\ hg convert で git を Mercurial に変換する。\\
-<code+<WRAP color_term
-$ hg convert wxHexEditor-v0.23-src_git wxHexEditor-v0.23-src_hg+<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> convert wxHexEditor-v0.23-src_git wxHexEditor-v0.23-src_hg 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre>
 変換先リポジトリ wxHexEditor-v0.23-src_hg の初期化中 変換先リポジトリ wxHexEditor-v0.23-src_hg の初期化中
 変換元リポジトリの走査中... 変換元リポジトリの走査中...
行 288: 行 397:
 433 DataInterpreter big endian and unsigned swithces fixed. 433 DataInterpreter big endian and unsigned swithces fixed.
 〜省略〜 〜省略〜
-2 Last touches for wxMSW.                                                                            +2 Last touches for wxMSW. 
-1 Fixed assertions due ~wxHexCtrl() cleanup code.                                                    +1 Fixed assertions due ~wxHexCtrl() cleanup code. 
-0 Updated to v0.23                                                                                  +0 Updated to v0.23
 ブックマークの更新中 ブックマークの更新中
-$ cd wxHexEditor-v0.23-src_hg +</pre></html></WRAP> 
-$ hg update +<WRAP color_command><html><pre> 
-</code+<font color="#FF8700"><b>$</b></font> <font color="#26A269">cd</font> wxHexEditor-v0.23-src_hg 
- +<font color="#FF8700"><b>$</b></font> <font color="#26A269">hg</font> update 
 +</pre></html></WRAP
 +</WRAP>
  
 ===== トラブルシューティング ===== ===== トラブルシューティング =====
行 303: 行 413:
 hgrc の所有者やグループが自分ではない時に発生する。\\ hgrc の所有者やグループが自分ではない時に発生する。\\
 表示される所有者やグループが本当に信頼できるものであれば、~/.hgrc に以下の記述を追加する。\\ 表示される所有者やグループが本当に信頼できるものであれば、~/.hgrc に以下の記述を追加する。\\
-<code+<WRAP color_term
-vi ~/.hgrc +<WRAP color_command><html><pre> 
-</code+<font color="#FF8700"><b>$</b></font> <font color="#26A269">nano</font> ~/.hgrc 
-<file ini ~/.hgrc>+</pre></html></WRAP
 +<WRAP color_mincode><file ini ~/.hgrc>
 [trusted] [trusted]
 users = root users = root
 groups = root groups = root
-</file>+</file></html></WRAP> 
 +</WRAP>
  
 ==== インストール時に「gcc: エラー」が発生する ==== ==== インストール時に「gcc: エラー」が発生する ====
行 317: 行 429:
 \\ \\
 redhat-rpm-config パッケージをインストールしてから行う。 redhat-rpm-config パッケージをインストールしてから行う。
-<code+<WRAP color_term
-$ sudo dnf install redhat-rpm-config +<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 redhat-rpm-config 
 +</pre></html></WRAP> 
 +</WRAP>
  
 ===== 参考文献 ===== ===== 参考文献 =====
行 327: 行 441:
 [[http://mercurial-users.jp/manual/hgignore.5.html|hgignore]]\\ [[http://mercurial-users.jp/manual/hgignore.5.html|hgignore]]\\
 [[https://ask.fedoraproject.org/en/question/61075/mysql_config-cflags-does-not-work-on-fedora-21/|"mysql_config --cflags" does not work on fedora 21]]\\ [[https://ask.fedoraproject.org/en/question/61075/mysql_config-cflags-does-not-work-on-fedora-21/|"mysql_config --cflags" does not work on fedora 21]]\\
 +[[https://swcarpentry.github.io/hg-novice/02-configuration/|Version Control with Mercurial: Configuring Mercurial]]\\
 +
  • python/mercurial.1587913958.txt.gz
  • 最終更新: 2020/04/27 00:12
  • by ともやん