HelpHgIntro » History » Version 3

Luis Figueira, 2011-03-16 12:06 PM
some more text

1 3 Luis Figueira
h1. An Introduction to Mercurial using EasyMercurial (easyHg)
2 1 Luis Figueira
3 3 Luis Figueira
Mercurial is a distributed revision control tool. It is written in Python. 
4 1 Luis Figueira
5 1 Luis Figueira
6 3 Luis Figueira
h2. Installation
7 1 Luis Figueira
8 3 Luis Figueira
h3. Requirements: 
9 1 Luis Figueira
10 3 Luis Figueira
# Python (version xxx.x)
11 3 Luis Figueira
# Mercurial ()
12 3 Luis Figueira
13 3 Luis Figueira
h3. MacOS
14 3 Luis Figueira
15 3 Luis Figueira
Just drag the easyHg icon to the Applications folder.
16 3 Luis Figueira
17 3 Luis Figueira
h3. Linux
18 3 Luis Figueira
19 3 Luis Figueira
h3. Windows
20 3 Luis Figueira
21 3 Luis Figueira
22 3 Luis Figueira
h3. Running for the first time
23 3 Luis Figueira
24 3 Luis Figueira
When you run easyHg for the first time you'll be prompted for a _username_ and _email address_. These are the details that will be used to identify all your changes pushed to the repositories. They can be changed later in the preferences menu.
25 3 Luis Figueira
26 3 Luis Figueira
h2. The User Interface
27 3 Luis Figueira
28 3 Luis Figueira
EasyMercurial is an interface for Mercurial, simplifying its usage and making it usable by common users. 
29 3 Luis Figueira
30 3 Luis Figueira
h3. My Work Tab
31 3 Luis Figueira
32 3 Luis Figueira
33 3 Luis Figueira
h3. History Tab
34 3 Luis Figueira
35 3 Luis Figueira
Graph of changes. The user can right click on any version and act on it (update to it, revert, )
36 3 Luis Figueira
37 3 Luis Figueira
h3. Available Commands
38 3 Luis Figueira
39 3 Luis Figueira
These are the commands you'll find in the easyMercurial interface:
40 3 Luis Figueira
41 1 Luis Figueira
*add*          add the specified files on the next commit
42 1 Luis Figueira
*commit*       commit the specified files or all outstanding changes
43 1 Luis Figueira
*diff*         diff repository (or selected files)
44 1 Luis Figueira
*incoming*     show new changesets found in source (in the easyMercurial interface this command is called Preview)
45 1 Luis Figueira
*merge*        merge working directory with another revision
46 1 Luis Figueira
*pull*         pull changes from the specified source
47 2 Luis Figueira
*push*         push changes to the specified destination
48 1 Luis Figueira
*revert*       restore individual files or directories to an earlier state
49 2 Luis Figueira
*update*       update working directory (or switch revisions)
50 1 Luis Figueira
51 2 Luis Figueira
52 2 Luis Figueira
h2. Typical Workflow
53 2 Luis Figueira
54 2 Luis Figueira
h3. Creating or Opening a Repository
55 2 Luis Figueira
56 2 Luis Figueira
h4. Local Repository
57 2 Luis Figueira
58 2 Luis Figueira
Allows you to open a local repository.
59 2 Luis Figueira
60 2 Luis Figueira
h4. File Folder
61 2 Luis Figueira
62 2 Luis Figueira
Allows you to initialize a local folder as a Mercurial repository.
63 2 Luis Figueira
64 1 Luis Figueira
h4. External Repository
65 1 Luis Figueira
66 2 Luis Figueira
If you have a remote repository URL and want to clone (make a copy of an existing repository) it to your local filesystem. 
67 1 Luis Figueira
68 2 Luis Figueira
Workflow
69 1 Luis Figueira
70 3 Luis Figueira
Updating local repository from remote: 
71 2 Luis Figueira
72 3 Luis Figueira
# pull
73 3 Luis Figueira
# update
74 2 Luis Figueira
75 3 Luis Figueira
Updating remote repository from local: 
76 1 Luis Figueira
77 3 Luis Figueira
# commit
78 3 Luis Figueira
# push
79 2 Luis Figueira
80 3 Luis Figueira
A window will pop-up asking you to write a message to describe your changes. This message is *very important* because it will tell you and the other developers in the project the reason why you are pushing the changes to the repository.
81 2 Luis Figueira
82 2 Luis Figueira
83 1 Luis Figueira
h3. External resources
84 1 Luis Figueira
85 2 Luis Figueira
* For a simple tutorial on Mercurial (command line), please go to http://hginit.com/
86 2 Luis Figueira
* _Mercurial: The Definitive Guide_ by Bryan O'Sullivan is a reference book on Mercurial. You can read it for free here: http://hgbook.red-bean.com/
87 3 Luis Figueira
* Simple and starightforward mercurial tutorial http://wiki.alliedmods.net/Mercurial_Tutorial