hg.1.txt
100 lines
| 2.4 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 | ||||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9792 | Synopsis | ||
jake@edge2.net
|
r177 | -------- | ||
Martin Geisler
|
r9158 | **hg** *command* [*option*]... [*argument*]... | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9792 | Description | ||
jake@edge2.net
|
r177 | ----------- | ||
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 | ||
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 | ||
jake@edge2.net
|
r177 | ----- | ||
Martin Geisler
|
r9158 | |||
Martin Geisler
|
r9161 | ``.hgignore`` | ||
Martin Geisler
|
r8728 | This file contains regular expressions (one per line) that | ||
Martin Geisler
|
r9161 | describe file names that should be ignored by **hg**. For details, | ||
Martin Geisler
|
r9162 | see |hgignore(5)|_. | ||
jake@edge2.net
|
r177 | |||
Martin Geisler
|
r9161 | ``.hgtags`` | ||
Martin Geisler
|
r8728 | 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. | ||||
jake@edge2.net
|
r177 | |||
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 | |||
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 | ||
jake@edge2.net
|
r177 | ---- | ||
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 | ||
Bryan O'Sullivan
|
r671 | -------- | ||
Martin Geisler
|
r9162 | |hgignore(5)|_, |hgrc(5)|_ | ||
Bryan O'Sullivan
|
r671 | |||
Martin Geisler
|
r9792 | Author | ||
jake@edge2.net
|
r177 | ------ | ||
Written by Matt Mackall <mpm@selenic.com> | ||||
Martin Geisler
|
r9792 | Resources | ||
jake@edge2.net
|
r177 | --------- | ||
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 | ||
jake@edge2.net
|
r177 | ------- | ||
Pascal Quantin
|
r10209 | Copyright (C) 2005-2010 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 | ||||