hg.1.txt
119 lines
| 3.1 KiB
| text/plain
|
TextLexer
/ doc / hg.1.txt
Martin Geisler
|
r9158 | ==== | ||
hg | ||||
==== | ||||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9158 | --------------------------------------- | ||
Mercurial source code management system | ||||
--------------------------------------- | ||||
:Author: Matt Mackall <mpm@selenic.com> | ||||
:Organization: Mercurial | ||||
:Manual section: 1 | ||||
:Manual group: Mercurial Manual | ||||
Martin Geisler
|
r9422 | .. contents:: | ||
:backlinks: top | ||||
:class: htmlonly | ||||
Martin Geisler
|
r12776 | :depth: 1 | ||
Martin Geisler
|
r9422 | |||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9792 | Synopsis | ||
FUJIWARA Katsunori
|
r17267 | """""""" | ||
Martin Geisler
|
r9158 | **hg** *command* [*option*]... [*argument*]... | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9792 | Description | ||
FUJIWARA Katsunori
|
r17267 | """"""""""" | ||
Martin Geisler
|
r9161 | The **hg** command provides a command line interface to the Mercurial | ||
Martin Geisler
|
r8728 | system. | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9792 | Command Elements | ||
FUJIWARA Katsunori
|
r17267 | """""""""""""""" | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9158 | files... | ||
Bryan O'Sullivan
|
r724 | indicates one or more filename or relative path filenames; see | ||
Martin Geisler
|
r9702 | `File Name Patterns`_ for information on pattern matching | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9158 | path | ||
jake@edge2.net
|
r177 | indicates a path on the local machine | ||
Martin Geisler
|
r9158 | revision | ||
Martin Geisler
|
r8728 | indicates a changeset which can be specified as a changeset | ||
revision number, a tag, or a unique substring of the changeset | ||||
hash value | ||||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9158 | repository path | ||
mpm@selenic.com
|
r498 | either the pathname of a local repository or the URI of a remote | ||
Matt Mackall
|
r7211 | repository. | ||
mpm@selenic.com
|
r438 | |||
Martin Geisler
|
r9158 | .. include:: hg.1.gendoc.txt | ||
mpm@selenic.com
|
r438 | |||
Martin Geisler
|
r9792 | Files | ||
FUJIWARA Katsunori
|
r17267 | """"" | ||
Martin Geisler
|
r9158 | |||
Martin Geisler
|
r9161 | ``/etc/mercurial/hgrc``, ``$HOME/.hgrc``, ``.hg/hgrc`` | ||
This file contains defaults and configuration. Values in | ||||
``.hg/hgrc`` override those in ``$HOME/.hgrc``, and these override | ||||
settings made in the global ``/etc/mercurial/hgrc`` configuration. | ||||
Martin Geisler
|
r9162 | See |hgrc(5)|_ for details of the contents and format of these | ||
Martin Geisler
|
r9161 | files. | ||
mpm@selenic.com
|
r321 | |||
Olav Reinert
|
r15616 | ``.hgignore`` | ||
This file contains regular expressions (one per line) that | ||||
describe file names that should be ignored by **hg**. For details, | ||||
see |hgignore(5)|_. | ||||
``.hgsub`` | ||||
This file defines the locations of all subrepositories, and | ||||
tells where the subrepository checkouts came from. For details, see | ||||
:hg:`help subrepos`. | ||||
``.hgsubstate`` | ||||
This file is where Mercurial stores all nested repository states. *NB: This | ||||
file should not be edited manually.* | ||||
``.hgtags`` | ||||
This file contains changeset hash values and text tag names (one | ||||
of each separated by spaces) that correspond to tagged versions of | ||||
the repository contents. The file content is encoded using UTF-8. | ||||
``.hg/last-message.txt`` | ||||
This file is used by :hg:`commit` to store a backup of the commit message | ||||
in case the commit fails. | ||||
``.hg/localtags`` | ||||
This file can be used to define local tags which are not shared among | ||||
repositories. The file format is the same as for ``.hgtags``, but it is | ||||
encoded using the local system encoding. | ||||
Mads Kiilerich
|
r18960 | |||
Martin Geisler
|
r9161 | Some commands (e.g. revert) produce backup files ending in ``.orig``, | ||
if the ``.orig`` file already exists and is not tracked by Mercurial, | ||||
it will be overwritten. | ||||
Benoit Boissinot
|
r3021 | |||
Martin Geisler
|
r9792 | Bugs | ||
FUJIWARA Katsunori
|
r17267 | """" | ||
Martin Geisler
|
r9702 | Probably lots, please post them to the mailing list (see Resources_ | ||
Martin Geisler
|
r8728 | below) when you find them. | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9792 | See Also | ||
FUJIWARA Katsunori
|
r17267 | """""""" | ||
Martin Geisler
|
r9162 | |hgignore(5)|_, |hgrc(5)|_ | ||
Bryan O'Sullivan
|
r671 | |||
Martin Geisler
|
r9792 | Author | ||
FUJIWARA Katsunori
|
r17267 | """""" | ||
jake@edge2.net
|
r177 | Written by Matt Mackall <mpm@selenic.com> | ||
Martin Geisler
|
r9792 | Resources | ||
FUJIWARA Katsunori
|
r17267 | """"""""" | ||
Martin Geisler
|
r9158 | Main Web Site: http://mercurial.selenic.com/ | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9158 | Source code repository: http://selenic.com/hg | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9158 | Mailing list: http://selenic.com/mailman/listinfo/mercurial | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9792 | Copying | ||
FUJIWARA Katsunori
|
r17267 | """"""" | ||
Martin Geisler
|
r16548 | Copyright (C) 2005-2012 Matt Mackall. | ||
jake@edge2.net
|
r177 | Free use of this software is granted under the terms of the GNU General | ||
Matt Mackall
|
r10263 | Public License version 2 or any later version. | ||
Martin Geisler
|
r9162 | |||
.. include:: common.txt | ||||