sapling/doc/hg.1.txt

101 lines
2.4 KiB
Plaintext
Raw Normal View History

====
hg
====
---------------------------------------
Mercurial source code management system
---------------------------------------
:Author: Matt Mackall <mpm@selenic.com>
:Organization: Mercurial
:Manual section: 1
:Manual group: Mercurial Manual
2005-05-27 18:16:58 +04:00
.. contents::
:backlinks: top
:class: htmlonly
2005-05-27 18:16:58 +04:00
Synopsis
2005-05-27 18:16:58 +04:00
--------
**hg** *command* [*option*]... [*argument*]...
2005-05-27 18:16:58 +04:00
Description
2005-05-27 18:16:58 +04:00
-----------
The **hg** command provides a command line interface to the Mercurial
system.
2005-05-27 18:16:58 +04:00
Command Elements
2005-05-27 18:16:58 +04:00
----------------
files...
indicates one or more filename or relative path filenames; see
`File Name Patterns`_ for information on pattern matching
2005-05-27 18:16:58 +04:00
path
2005-05-27 18:16:58 +04:00
indicates a path on the local machine
revision
indicates a changeset which can be specified as a changeset
revision number, a tag, or a unique substring of the changeset
hash value
2005-05-27 18:16:58 +04:00
repository path
either the pathname of a local repository or the URI of a remote
2008-10-23 00:41:32 +04:00
repository.
.. include:: hg.1.gendoc.txt
Files
2005-05-27 18:16:58 +04:00
-----
``.hgignore``
This file contains regular expressions (one per line) that
describe file names that should be ignored by **hg**. For details,
2009-07-17 01:25:26 +04:00
see |hgignore(5)|_.
2005-05-27 18:16:58 +04:00
``.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.
2005-05-27 18:16:58 +04:00
``/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.
2009-07-17 01:25:26 +04:00
See |hgrc(5)|_ for details of the contents and format of these
files.
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.
Bugs
2005-05-27 18:16:58 +04:00
----
Probably lots, please post them to the mailing list (see Resources_
below) when you find them.
2005-05-27 18:16:58 +04:00
See Also
--------
2009-07-17 01:25:26 +04:00
|hgignore(5)|_, |hgrc(5)|_
Author
2005-05-27 18:16:58 +04:00
------
Written by Matt Mackall <mpm@selenic.com>
Resources
2005-05-27 18:16:58 +04:00
---------
Main Web Site: http://mercurial.selenic.com/
2005-05-27 18:16:58 +04:00
Source code repository: http://selenic.com/hg
2005-05-27 18:16:58 +04:00
Mailing list: http://selenic.com/mailman/listinfo/mercurial
2005-05-27 18:16:58 +04:00
Copying
2005-05-27 18:16:58 +04:00
-------
2010-01-05 01:45:45 +03:00
Copyright (C) 2005-2010 Matt Mackall.
2005-05-27 18:16:58 +04:00
Free use of this software is granted under the terms of the GNU General
2010-01-20 07:20:08 +03:00
Public License version 2 or any later version.
2009-07-17 01:25:26 +04:00
.. include:: common.txt