Differences between revisions 6 and 7
Revision 6 as of 2005-08-26 01:36:32
Size: 1527
Editor: waste
Comment:
Revision 7 as of 2005-09-21 22:46:52
Size: 1674
Editor: AdrienBeau
Comment: Updated to Mercurial 0.7 output
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
Once we're done, we'll come back here. Once you're done, come back here.
Line 10: Line 10:
'''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. '''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. This tutorial was last updated for ["Mercurial"] 0.7.
Line 14: Line 14:
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

basic commands (use "hg help" for the full list or option "-v" for details):
Line 23: Line 25:
 ... (...)
Line 25: Line 27:
If this does not happen, there is something wrong with our installation, and we should take a look at InstallTroubleshooting.
Line 27: Line 28:
To determine what version of Mercurial you are running, type: If this is not the case, there is something wrong with your installation, and you should take a look at InstallTroubleshooting.

To determine what version of Mercurial we are running, let's type:
Line 30: Line 33:
 $ hg version
 Mercurial version fa3578bfafbf+20050629
$ hg version
Mercurial Distributed SCM (version 0.7)
Line 33: Line 36:
 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
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.
Line 37: Line 40:

Tutorial - getting started: installation

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.

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. This tutorial was last updated for ["Mercurial"] 0.7.

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 (use "hg help" for the full list or option "-v" for details):

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

If this is not the case, there is something wrong with your installation, and you should take a look at InstallTroubleshooting.

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

$ hg version
Mercurial Distributed SCM (version 0.7)

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.

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

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