Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Mercurialのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Mercurial
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:バージョン管理システム]] [[en:Mercurial]] [http://mercurial.selenic.com/ Mercurial] (しばしば '''hg''' と呼称されます) は Python で書かれた分散型バージョン管理システムであり [[Git]], [http://bazaar.canonical.com/ Bazaar], [[Darcs]] と多くの点で似ているところがあります。 == インストール == [[公式リポジトリ]]の {{Pkg|mercurial}} を[[インストール]]してください。 == 設定 == At the minimum you should configure your username or mercurial will most likely give you an error when trying to commit. Do this by editing {{ic|~/.hgrc}} and adding the following: {{hc|~/.hgrc|2=[ui]<br/>username = John Smith}} To use the graphical browser '''hgk''' aka. '''hg view''', add the following to {{ic|~/.hgrc}} (see [https://bbs.archlinux.org/viewtopic.php?id=31999 forum thread]): {{hc|~/.hgrc|2=[extensions]<br/>hgk=}} You will need to install {{Pkg|tk}} before running '''hg view''' to avoid the rather cryptic error message: {{bc|/usr/bin/env: wish: No such file or directory}} To remove Mercurial warnings of unverified certificate fingerprints, add the following to {{ic|~/.hgrc}} (see [http://mercurial.selenic.com/wiki/CACertificates Mercurial wiki]): {{hc|~/.hgrc|2=[web]<br/>cacerts = /etc/ssl/certs/ca-certificates.crt}} If you are going to be working with large repositories (e.g. {{AUR|ttf-google-fonts-hg}}), you may want to enable the ''progress'' extension by adding it to your {{ic|~/.hgrc}} file: {{hc|~/.hgrc|2=[extensions]<br/>progress =}} This will show progress bars on longer operations after 3 seconds. If you would like the progress bar to show sooner, you can append the following to your configuration file: {{hc|~/.hgrc|2=[progress]<br/>delay = 1.5}} == 使用方法 == All mercurial commands are initiated with the ''hg'' prefix. To see a list of some of the common commands, run {{bc|$ hg help}} You can either work with a pre-existing repository (collection of code or files), or create your own to share. To work with a pre-existing repository, you must clone it to a directory of your choice: {{bc|$ mkdir mercurial<br/>$ cd mercurial<br/>$ hg clone http://hg.serpentine.com/tutorial/}} To create you own, change to the directory you wish to share and initiate a mercurial project {{bc|$ cd myfiles<br/>$ hg init myfiles}} === ドットファイルリポジトリ === If you intend on creating a repo of all your {{ic|~/.}} files, you simply initiate the project in your home folder: {{bc|$ hg init}} It is then just a case of adding the specific files you wish to track: {{bc|$ hg add |file1 file2 file3}} You can then create a {{ic|~/.hgignore}} to ensure that only the files you wish to include in the repository are tracked by mercurial. {{Tip|If you include: syntax: glob at the top of the {{ic|.hgignore}} file, you can easily exclude groups of files from your repository.}} ==参照== * [http://hgbook.red-bean.com/read/ Mercurial: The Definitive Guide] * [http://hginit.com/ hginit.com] - a tutorial by Joel Spolsky * [http://mercurial.aragost.com/kick-start/en/ Mercurial Kick-Start] one more tutorial by Aragost. * [http://bitbucket.org Bitbucket] - free and commercial hosting of mercurial repositories * [http://mercurial.intuxication.org/ Intuxication] - free mercurial hosting
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:App
(
ソースを閲覧
)
テンプレート:Bc
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
Mercurial
に戻る。
検索
検索
Mercurialのソースを表示
話題を追加