Mercurial > hg-website
annotate text/quick_start.txt @ 105:7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
author | Arne Babenhauserheide <bab@draketo.de> |
---|---|
date | Wed, 22 Apr 2009 13:26:05 +0200 |
parents | |
children | aa325d9f79cd |
rev | line source |
---|---|
105
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
1 = Quick Start = |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
2 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
3 When you've been using Mercurial for some time, many things become |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
4 second nature, so it's sometimes hard to remember that its basic concepts are |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
5 quite revolutionary compared to Subversion. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
6 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
7 Please don't let that intimidate you. Mercurial is damn powerful, even if you |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
8 just use the basics (init, commit, log, pull, push, serve, merge). And the |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
9 basics are very easy to use, once you see the model behind that: Each |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
10 repository has the whole history, and history is not necessarily linear. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
11 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
12 Just stick to these and learn the rest of its commands as you need them. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
13 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
14 As a short intro: |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
15 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
16 - init: create a new repository |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
17 - commit: save your changes in the current repository |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
18 - log: see all changes in your repository |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
19 - pull: get all changes from another repository int the current one |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
20 - push: get all changes from your repository into another one |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
21 - serve: create an instant-webserver. People can see the history there and |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
22 pull from it |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
23 - merge: join different lines of history |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
24 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
25 If you want to see a nice graph of the history, just do "hg serve" in your |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
26 repository and then direct your browser to |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
27 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
28 http://127.0.0.1:8000 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
29 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
30 This also helps getting a feeling for what the commands do. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
31 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
32 (you can do more finegrained stuff with command options. Just call "hg help |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
33 <command>" to see them). |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
34 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
35 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
36 I hope your experience with Mercurial will be as great as mine! |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
37 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
38 - Arne Babenhauserheide |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
39 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
40 = Basic concepts of Mercurial = |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
41 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
42 //If you're interested in the concepts behind Mercurial, please come with us and listen to a great explanation from Martin Geisler: // |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
43 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
44 Let me try to make |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
45 some of the basic concepts clear: |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
46 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
47 * Like in Subversion, history consists of a number of commits. They're |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
48 called changesets in Mercurial. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
49 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
50 * Subversion requires a strict linear ordering of the commits and |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
51 gives nice linear revision numbers to them. So revision N has only |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
52 one child revision, rN+1. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
53 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
54 This is simple, but it requires a central server to make sure that |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
55 everybody agrees on the revision numbers. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
56 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
57 * Mercurial generalizes this by letting each changeset have multiple |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
58 children. If I work alone and make commits I'll make |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
59 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
60 C1 --> C2 --> C3 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
61 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
62 by making three commits. The commit C3 with no children is a "head". |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
63 It is also the newest changeset in the repository -- called "tip". |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
64 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
65 If I shared C1 with you and you started your work from that, your |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
66 commits will build a repository like this: |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
67 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
68 C1 --> C2' --> C3' |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
69 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
70 Here C3' is a head in your repository and I don't know anything |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
71 about C2' and C3' yet. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
72 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
73 * If I pull from you, or you push to me, the two repositories are |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
74 compared. By default, all missing changesets are transferred. This |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
75 is all there is to push/pull: compare two graphs of changesets and |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
76 transfer the missing ones. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
77 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
78 After a pull from you my repository will look like this: |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
79 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
80 /-> C2 --> C3 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
81 C1 -< |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
82 \-> C2' --> C3' |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
83 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
84 Here C1 has two child changesets, and the repository has two heads |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
85 since the development has diverged. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
86 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
87 The changeset C3' will be the new tip since it is the newest |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
88 changeset in the repository. Note that tip is always a head, but a |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
89 head need not be the tip. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
90 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
91 * Having two heads suggest that someone should merge them -- otherwise |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
92 the changes from one will never be combined with the changed made in |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
93 the other head. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
94 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
95 When merging with 'hg merge' the task is to figure out the canonical |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
96 way to combine the changesets. If the changes do not overlap this is |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
97 usually trivial, otherwise you have to do a three-way merge. The |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
98 merge must be committed and this creates a changeset which explains |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
99 to the world how you think the two heads should be combined: |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
100 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
101 /-> C2 --> C3 -\ |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
102 C1 -< >-> M |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
103 \-> C2' --> C3' -/ |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
104 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
105 Note that the merge changeset M has two parents. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
106 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
107 If you do not merge C3 and C3' and try to push you get the 'new |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
108 remote head' message and push aborts. It aborts since it is a little |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
109 "impolite" to leave the job of merging to someone else -- he who |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
110 created the two heads by pulling in some code should also normally |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
111 do the merging. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
112 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
113 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
114 > Sometimes it's hard to keep the several DVCS workings in my mind |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
115 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
116 It helped me a lot to think in terms of the changeset graph. Remember |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
117 that: |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
118 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
119 * "hg commit" adds a new node. The parent changesets of the new node |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
120 is given by "hg parents" |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
121 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
122 * "hg push" and "hg pull" transfer nodes in the graph between two |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
123 repositories. |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
124 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
125 * "hg update" updates the working copy to reflect a given node in |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
126 the history graph. This also changes the parent changeset of the |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
127 next commit, see "hg parents". |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
128 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
129 > Is there not a simple Mercurial cheat sheet somewhere? |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
130 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
131 There are some here: |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
132 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
133 http://www.selenic.com/mercurial/wiki/index.cgi/QuickReferenceCardsAndCheatSheets |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
134 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
135 - Martin Geisler |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
136 |
7a057bf137c5
Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff
changeset
|
137 PS: These descriptions were written on the [Mercurial mailinglist](http://selenic.com/mailman/listinfo/mercurial). |