$ sudo yum install gcc python-devel
$ pip install --user mercurial
Collecting mercurial Downloading mercurial-6.6.3.tar.gz (8.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.3/8.3 MB 846.3 kB/s eta 0:00:00 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 Successfully installed mercurial-6.6.3
$ pip install --user mercurial
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) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 239.6 kB/s eta 0:00:00 Installing collected packages: mercurial Successfully installed mercurial-6.6.3
$ which hg
/home/dietpi/.local/bin/hg
$ sudo dnf install -y mercurial
メタデータの期限切れの最終確認: 2:21:11 前の 2024年02月27日 03時39分09秒 に実施しました。 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: mercurial x86_64 6.5.3-1.fc39 updates 6.4 M 依存関係のインストール: python3-zombie-imp noarch 0.0.2-2.fc39 fedora 29 k トランザクションの概要 ============================================================================================================== インストール 2 パッケージ ダウンロードサイズの合計: 6.5 M インストール後のサイズ: 31 M パッケージのダウンロード: (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.8 MB/s | 6.4 MB 00:03 -------------------------------------------------------------------------------------------------------------- 合計 1.3 MB/s | 6.5 MB 00:04 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : python3-zombie-imp-0.0.2-2.fc39.noarch 1/2 インストール中 : mercurial-6.5.3-1.fc39.x86_64 2/2 scriptletの実行中: mercurial-6.5.3-1.fc39.x86_64 2/2 検証 : python3-zombie-imp-0.0.2-2.fc39.noarch 1/2 検証 : mercurial-6.5.3-1.fc39.x86_64 2/2 インストール済み: mercurial-6.5.3-1.fc39.x86_64 python3-zombie-imp-0.0.2-2.fc39.noarch 完了しました!
$ hg version
Mercurial - 分散構成管理ツール(バージョン 6.6.3) (詳細は https://mercurial-scm.org を参照) 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.
$ hg config --edit
$ EDITOR=nano hg config --edit
$ nano ~/.hgrc
$ echo 'export EDITOR=nano' >> ~/.zshrc $ . ~/.zshrc
$ echo 'export EDITOR=nano' >> ~/.bashrc $ . ~/.bashrc
$ hg config --edit
[ui]
username = Tomoyan
$ mkdir repos && cd repos $ hg init
$ hg init repos
$ nano .hgignore
# Shell 形式パターンマッチ
syntax: glob
*.pyc
# 正規表現パターンマッチ
syntax: regexp
^\.git/
$ hg add file.txt
$ hg status
A file.txt
$ hg commit
$ hg diff
$ hg revert file.txt
$ hg rollback
$ hg log
$ hg clone ssh://user@server:port//var/hg/hoge/fuga my-fuga
$ hg pull $ hg update
$ hg update -C
$ hg push ssh://user@server:port//var/hg/hoge/fuga
$ ssh user@server -p22 hg init /var/hg/hoge/fuga
.hg/hgrc
に以下の記載があるなら省略できる。
[paths]
default = ssh://user@server:port//var/hg/hoge/fuga