1. Intro 

Simple HG notes

Installed on my centos 4.7  computer using:
   #  yum --enablerepo=dag install mercurial

2. Tony is the owner of Project. He will create a new Repository 

  cd project/       - your project's location
  hg init           - Initialize the repository. But it is empty
  hg add *          - add all files to repository
  hg commit         - commit all changes to the repository

  Now tony has a working directory and a repository.
  This can modify this working copy.

  When Tony is ready to update his repository with a new version:

  hg diff           - show changes between repository and working copy.
  hg commit         - commit all changes to the repository

  If someone pushes an update to Tony, then tony need to do:
     hg  update  - updates the repository's working directory

  It's likely, others can't update tony's repository (permission problems), so
  tony can pull those update:

     hg pull /home/joe/project  - pulls in changes from joe's repository
     hg update                  - update tony's working copy

2. Joe wants to join in.

    To get a copy of tony's repository (not the working copy):
        hg clone /home/tony/project project

    To re-synhonize a working copy (Update Joe's copy with Tony's repository):
       hg pull           - to sync the repository
       hg update         - to update the working copy

    Joe modify his working directory. Change can be commit
       hg commit

    To updload changes to Tony's repository:
       hg push

3. Info

   hg  log           - history of repository
   hg  status        - display current status (files that changed).
   hg  diff          - shows changes between repository and working copy.

Cloning & Merging

   user1> hg clone /home/denault/temp/project1 project1
   user1> (edit files)
   user1> hg commit
   user1> hg push
   master> hg update tip


Charles's has better notes

Mercurial: The Defintive Guide is on the web.