个人工具
登录
查看“UbuntuHelp:Mercurial”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Mercurial”的源代码
来自Ubuntu中文
←
UbuntuHelp:Mercurial
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/Mercurial}} {{Languages|UbuntuHelp:Mercurial}} '''This wiki document explains how to setup Mercurial on Ubuntu. The intended audience is experienced Linux users and system administrators.''' === Introduction === If you are new to Mercurial this section provides a quick introduction. Mercurial is a fast, lightweight Source Control Management system designed for the efficient handling of very large distributed projects. === Assumptions === It is assumed that you are aware of how to run Linux commands, edit files, start/stop services in an Ubuntu system. It is also assumed that Ubuntu is running, you have [[UbuntuHelp:RootSudo|sudo access]] and you want to use Mercurial software. It is also assumed you have an internet connection. === Scope of this document === To install and configure Mercurial, as well as to install some useful extensions === Installation === Mercurial is included in the Universe repository - activate this repo first (if you haven't already). Once you've finished simply execute. We will also install meld, which is a graphical merge tool useful for resolving conflicting changes. <pre><nowiki> $ sudo apt-get install mercurial meld </nowiki></pre> If it fails reporting dependencies, please locate the packages and install them. If it reports any other issues, please resolve them. If you cannot resolve the issue, please refer the mailing list archive of those packages. === Configuration === The default Mercurial installation puts a blank config file in /etc/mercurial called 'hgrc'. We will add some parameters to this file to tweak how Mercurial works. Copy and Past the following into /etc/mercurial/hgrc: <pre><nowiki> # system-wide mercurial configuration file # See hgrc(5) for more information # User Interface settings [ui] username= Your Name <your.email@yourdomain.com> editor=nano merge=meld # Enabled extensions [extensions] hgext.gpg= hgext.convert= # GPG extension settings [gpg] key=<your private gpg key> </nowiki></pre> This sets the default username so that your name will show up on changesets you issue, changes the text editor to nano (default is vi) and sets meld as the merge program. This also enables some useful extensions: GPG allows changesets to be cryptographically signed, while Convert allows Mercurial repositories to be created from existing CVS, SVN, or git repositories. === References === * [http://www.selenic.com/mercurial/wiki/index.cgi/Mercurial Mercurial Homepage] * [http://www.selenic.com/mercurial/wiki/index.cgi/UsingExtensions Using Extensions] * [http://www.selenic.com/mercurial/wiki/index.cgi/GpgExtension GPG Extension] * [http://www.selenic.com/mercurial/wiki/index.cgi/ConvertExtension Convert Extension] ---- [[category:CategoryDocumentation]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Mercurial
。