mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-25 16:23:37 +03:00
Multiple changes
- Remove double newlines - Merge lists - fix locations where lines are > 80 chars. - Remove excess whitespace in table
This commit is contained in:
parent
cc2b3dca73
commit
7825aa8384
@ -18,82 +18,58 @@ anyone working with versioned files.
|
||||
Version control is a system that keeps track fo changes to a set of file(s)
|
||||
and/or directorie(s) over time.
|
||||
|
||||
|
||||
### Why Use Mercurial
|
||||
|
||||
* Distributed Architecture
|
||||
* Fast
|
||||
* Platform Independent
|
||||
* Extensible
|
||||
* Easy to use
|
||||
* Open Source
|
||||
* Distributed Architecture - Traditionally version control systems such as CVS
|
||||
and Subversion are a client server architecture with a central server to
|
||||
store the revsion history of a project. Mercurial however is a truly
|
||||
distributed architecture, giving each devloper a full local copy of the
|
||||
entire development history. It works independently of a central server.
|
||||
|
||||
* Fast - Traditionally version control systems such as CVS and Subversion are a
|
||||
client server architecture with a central server to store the revsion history
|
||||
of a project. Mercurial however is a truly distributed architecture, giving
|
||||
each devloper a full local copy of the entire development history. It works
|
||||
independently of a central server.
|
||||
|
||||
#### Distributed Architecture
|
||||
* Platform Independent - Mercurial was written to be highly platform
|
||||
independent. Much of Mercurial is written in Python, with small performance
|
||||
critical parts written in portable C. Binary releases are available for all
|
||||
major platforms.
|
||||
|
||||
Traditionally version control systems such as CVS and Subversion are a client server
|
||||
architecture with a central server to store the revsion history of a project. Mercurial however
|
||||
is a truly distributed architecture, giving each devloper a full local copy of the entire
|
||||
development history. It works independently of a central server.
|
||||
* Extensible - The functionality of Mercurial can be increased with extensions,
|
||||
either by activating the official ones which are shipped with Mercurial or
|
||||
downloading some [from the
|
||||
wiki](https://www.mercurial-scm.org/wiki/UsingExtensions) or by [writing your
|
||||
own](https://www.mercurial-scm.org/wiki/WritingExtensions). Extensions are
|
||||
written in Python and can change the workings of the basic commands, add new
|
||||
commands and access all the core functions of Mercurial.
|
||||
|
||||
* Easy to use - The Mercurial command set is consistent with what subversion
|
||||
users would expect, so they are likely to feel right at home. Most dangerous
|
||||
actions are part of extensions that need to be enabled to be used.
|
||||
|
||||
#### Fast
|
||||
|
||||
Mercurial is implemented to be fast. You are able to generate diffs between
|
||||
revsions, and switch between tags and branches with little time and effort.
|
||||
Mercurial is used by large projects such as OpenJDK
|
||||
([hg](http://hg.openjdk.java.net/jdk7/jdk7)) and NetBeans
|
||||
([hg](http://hg.netbeans.org/)).
|
||||
|
||||
#### Platform Independent
|
||||
|
||||
Mercurial was written to be highly platform independent. Much of Mercurial is
|
||||
written in Python, with small performance critical parts written in portable
|
||||
C. Binary releases are available for all major platforms.
|
||||
|
||||
|
||||
#### Extensible
|
||||
|
||||
The functionality of Mercurial can be increased with extensions, either by
|
||||
activating the official ones which are shipped with Mercurial or downloading
|
||||
some [from the wiki](https://www.mercurial-scm.org/wiki/UsingExtensions) or by
|
||||
[writing your own](https://www.mercurial-scm.org/wiki/WritingExtensions).
|
||||
Extensions are written in Python and can change the workings of the basic
|
||||
commands, add new commands and access all the core functions of Mercurial.
|
||||
|
||||
|
||||
#### Easy to Use
|
||||
|
||||
The Mercurial command set is consistent with what subversion users would
|
||||
expect, so they are likely to feel right at home. Most dangerous actions
|
||||
are part of extensions that need to be enabled to be used.
|
||||
|
||||
|
||||
#### Open Source
|
||||
|
||||
Mercurial is free software licensed under the terms of the [GNU General Public
|
||||
License Version 2](http://www.gnu.org/licenses/gpl-2.0.txt) or any later
|
||||
version.
|
||||
|
||||
* Open Source - Mercurial is free software licensed under the terms of the [GNU
|
||||
General Public License Version 2](http://www.gnu.org/licenses/gpl-2.0.txt) or
|
||||
any later version.
|
||||
|
||||
## Terminology
|
||||
|
||||
| Term | Definition |
|
||||
| Term | Definition |
|
||||
| ------------- | ---------------------------------- |
|
||||
| Repository | A repository is a collection of revisions |
|
||||
| hgrc | A configuration file which stores the defaults for a repository. |
|
||||
| revision | A committed changeset: has a REV number |
|
||||
| changeset | Set of changes saved as diffs |
|
||||
| diff | Changes between file(s) |
|
||||
| tag | A named named revision |
|
||||
| parent(s) | Immediate ancestor(s) of a revison |
|
||||
| branch | A child of a revision |
|
||||
| head | A head is a changeset with no child changesets |
|
||||
| merge | The process of merging two HEADS |
|
||||
| tip | The latest revision in any branch |
|
||||
| patch | All of the diffs between two revisions |
|
||||
| bundle | Patch with permissions and rename support |
|
||||
|
||||
| Repository | A repository is a collection of revisions |
|
||||
| hgrc | A configuration file which stores the defaults for a repository. |
|
||||
| revision | A committed changeset: has a REV number |
|
||||
| changeset | Set of changes saved as diffs |
|
||||
| diff | Changes between file(s) |
|
||||
| tag | A named named revision |
|
||||
| parent(s) | Immediate ancestor(s) of a revison |
|
||||
| branch | A child of a revision |
|
||||
| head | A head is a changeset with no child changesets |
|
||||
| merge | The process of merging two HEADS |
|
||||
| tip | The latest revision in any branch |
|
||||
| patch | All of the diffs between two revisions |
|
||||
| bundle | Patch with permissions and rename support |
|
||||
|
||||
## Commands
|
||||
|
||||
@ -133,7 +109,6 @@ $ hg status
|
||||
|
||||
# Get help on the status subcommand
|
||||
$ hg help status
|
||||
|
||||
```
|
||||
|
||||
### add
|
||||
@ -227,7 +202,8 @@ $ hg commit --amend -m "Correct message"
|
||||
|
||||
### diff
|
||||
|
||||
Show differences between revisions for the specified files using the unified diff format.
|
||||
Show differences between revisions for the specified files using the unified
|
||||
diff format.
|
||||
|
||||
```bash
|
||||
# Show the diff between the current directory and a previous revision
|
||||
@ -384,4 +360,4 @@ $ hg remove *.txt
|
||||
|
||||
* [Learning Mercurial in Workflows](https://www.mercurial-scm.org/guid)
|
||||
* [Mercurial Quick Start](https://www.mercurial-scm.org/wiki/QuickStart)
|
||||
* [Mercurial: The Definitive Guide by Bryan O'Sullivan](http://hgbook.red-bean.com/)
|
||||
* [Mercurial: The Definitive Guide by Bryan O'Sullivan](http://hgbook.red-bean.com/)
|
Loading…
Reference in New Issue
Block a user