Differences between revisions 1 and 16 (spanning 15 versions)
Revision 1 as of 2005-08-26 00:57:53
Size: 1549
Editor: waste
Comment:
Revision 16 as of 2009-05-19 19:30:59
Size: 1849
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== ["Tutorial"] - getting started: installation == == Tutorial - Getting started: installation ==
Line 3: Line 3:
Installing ["Mercurial"] is straightforward. ''(This page is part 1 of 9 of the [[Tutorial]] series. Next part is [[TutorialClone]])''

Installing Mercurial is straightforward.
Line 8: Line 10:
Once we're done, we'll come back here. Once you're done, come back here.
Line 10: Line 12:
'''Note:''' This tutorial assumes you are running a version of ["Mercurial"] later than 0.6. In other words, if you have the 0.6 release, the tutorial will not work for you. The Mercurial program is named {{{hg}}}. Every Mercurial command starts with {{{hg}}}, followed by the command name, followed by any relevant options and arguments.
Line 12: Line 14:
The ["Mercurial"] program is named ''hg''. Every ["Mercurial"] command starts with ''hg'', followed by the command name, followed by any relevant options and arguments.

Now
we should be able to simply type ''hg'' at the prompt, and the program should display some helpful command summaries:
Now that Mercurial is installed, we should be able to simply type {{{hg}}} at the prompt, and the program should display some helpful command summaries:
Line 17: Line 17:
 $ hg
 basic hg commands (use "hg help -v" for more):
}}}
$ hg
Mercurial Distributed SCM
Line 21: Line 20:
{{{ basic commands:
Line 25: Line 25:
 ...  commit commit the specified files or all outstanding changes
 (...)

use "hg help" for the full list of commands or "hg -v" for details
Line 28: Line 31:
If this does not happen, there is something wrong with our installation, and we should take a look at InstallTroubleshooting.

To determine what version of Mercurial you are running, type:
To determine what version of Mercurial we are running, let's type:
Line 33: Line 34:
 $ hg version
 Mercurial version fa3578bfafbf+20050629
$ hg version
Mercurial Distributed SCM (version 1.0)

Copyright (C) 2005-2008 Matt Mackall <mpm@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
Line 37: Line 42:
By default Mercurial uses a username of the form `user@localhost` for [[Commit|commits]].
This is often meaningless. It's best to configure a proper email address in `~/.hgrc`
(or on Windows in `%USERPROFILE%\Mercurial.ini`, MercurialIni) by adding lines such as the following:
Line 38: Line 47:
 Copyright (C) 2005 Matt Mackall <mpm@selenic.com>
 This is free software; see the source for copying conditions. There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
[ui]
username = John Doe <john@example.com>
Line 44: Line 52:

----
CategoryTutorial

Tutorial - Getting started: installation

(This page is part 1 of 9 of the Tutorial series. Next part is TutorialClone)

Installing Mercurial is straightforward.

  • For Linux, MacOS X, and other Unix variants, follow the UnixInstall directions.

  • On Windows, follow the WindowsInstall instructions.

Once you're done, come back here.

The Mercurial program is named hg. Every Mercurial command starts with hg, followed by the command name, followed by any relevant options and arguments.

Now that Mercurial is installed, we should be able to simply type hg at the prompt, and the program should display some helpful command summaries:

$ hg
Mercurial Distributed SCM

basic commands:

 add        add the specified files on the next commit
 annotate   show changeset information per file line
 clone      make a copy of an existing repository
 commit     commit the specified files or all outstanding changes
 (...)

use "hg help" for the full list of commands or "hg -v" for details

To determine what version of Mercurial we are running, let's type:

$ hg version
Mercurial Distributed SCM (version 1.0)

Copyright (C) 2005-2008 Matt Mackall <mpm@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

By default Mercurial uses a username of the form user@localhost for commits. This is often meaningless. It's best to configure a proper email address in ~/.hgrc (or on Windows in %USERPROFILE%\Mercurial.ini, MercurialIni) by adding lines such as the following:

[ui]
username = John Doe <john@example.com>

If all has gone well, let's continue on to TutorialClone.


CategoryTutorial

TutorialInstall (last edited 2011-07-08 14:52:05 by 84)