Differences between revisions 4 and 5
Revision 4 as of 2005-08-26 01:31:25
Size: 1540
Editor: waste
Comment:
Revision 5 as of 2005-08-26 01:33:21
Size: 1531
Editor: waste
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
  basic hg commands (use "hg help -v" for more):  basic hg commands (use "hg help -v" for more):
Line 20: Line 20:
  add add the specified files on the next commit
  annotate show changeset information per file line
  clone make a copy of an existing repository
  ...
 add add the specified files on the next commit
 annotate show changeset information per file line
 clone make a copy of an existing repository
 ...
Line 32: Line 32:
  Mercurial version fa3578bfafbf+20050629  Mercurial version fa3578bfafbf+20050629
Line 34: Line 34:
  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

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 we're done, we'll 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.

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:

 $ hg
 basic hg commands (use "hg help -v" for more):

 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 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:

 $ hg version
 Mercurial version fa3578bfafbf+20050629

 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)