annotate original/hgscm/templates/quick_start.html @ 244:4b97017259f9

Move the original site into a single folder to reduce clutter.
author Steve Losh <steve@stevelosh.com>
date Wed, 23 Sep 2009 20:05:13 -0400
parents hgscm/templates/quick_start.html@c7bf003b17fd
children 960885d6e884
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
1 {% extends "base.html" %}
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
2
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
3 {% load extras %}
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
4 {% block content %}
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
5
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
6 <div class="row">
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
7 <div class="col big">
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
8 <h1>Quick Start</h1>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
9 <p><em>How to get going at once.</em></p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
10 <h2>Part 0: Instant usage</h2>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
11 <p><em>(you know this from the main page)</em></p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
12 <p>Clone a project and create a patch </p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
13 <pre><code>$ hg clone http://hg-scm.org/hello
195
5bc5fe45852a cleaned up quickstart a bit.
Arne Babenhauserheide <bab@draketo.de>
parents: 193
diff changeset
14 $ cd hello
5bc5fe45852a cleaned up quickstart a bit.
Arne Babenhauserheide <bab@draketo.de>
parents: 193
diff changeset
15 $ (edit files)
5bc5fe45852a cleaned up quickstart a bit.
Arne Babenhauserheide <bab@draketo.de>
parents: 193
diff changeset
16 $ hg add (new files)
5bc5fe45852a cleaned up quickstart a bit.
Arne Babenhauserheide <bab@draketo.de>
parents: 193
diff changeset
17 $ hg commit -m 'My changes'
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
18 $ hg export tip &gt; patch.diff
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
19
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
20 </code></pre>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
21 <p>Create a project and commit </p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
22 <pre><code>$ hg init (project-directory)
195
5bc5fe45852a cleaned up quickstart a bit.
Arne Babenhauserheide <bab@draketo.de>
parents: 193
diff changeset
23 $ cd (project-directory)
5bc5fe45852a cleaned up quickstart a bit.
Arne Babenhauserheide <bab@draketo.de>
parents: 193
diff changeset
24 $ (add some files)
5bc5fe45852a cleaned up quickstart a bit.
Arne Babenhauserheide <bab@draketo.de>
parents: 193
diff changeset
25 $ hg add
5bc5fe45852a cleaned up quickstart a bit.
Arne Babenhauserheide <bab@draketo.de>
parents: 193
diff changeset
26 $ hg commit -m 'Initial commit'
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
27 </code></pre>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
28 <h2>Part 1: Using Mercurial</h2>
229
16052582338b Fix typo.
Arne Babenhauserheide <bab@draketo.de>
parents: 216
diff changeset
29 <p>Aside from the practical Quick Start above, there are only a few commands you need to start
16052582338b Fix typo.
Arne Babenhauserheide <bab@draketo.de>
parents: 216
diff changeset
30 working. </p>
16052582338b Fix typo.
Arne Babenhauserheide <bab@draketo.de>
parents: 216
diff changeset
31 <p>Even if you stick to these basics, Mercurial is quite powerful. And they are very easy to
16052582338b Fix typo.
Arne Babenhauserheide <bab@draketo.de>
parents: 216
diff changeset
32 use, once you see the model behind them: Each repository has the whole history, and history is
16052582338b Fix typo.
Arne Babenhauserheide <bab@draketo.de>
parents: 216
diff changeset
33 not necessarily linear (part 2 explains that model in a bit more detail). </p>
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
34 <p>A quick overview of the basic commands: </p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
35 <ul>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
36 <li>hg init: create a new repository
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
37 </li><li>hg commit: save your changes in the current repository
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
38 </li><li>hg log: see all changes in your repository
237
Arne Babenhauserheide <bab@draketo.de>
parents: 229
diff changeset
39 </li><li>hg pull: get all changes from another repository into the current one
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
40 </li><li>hg push: get all changes from your repository into another one
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
41 </li><li>hg serve: create an instant-webserver. People can see the history there and pull from it
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
42 </li><li>hg merge: join different lines of history
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
43 </li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
44 </ul>
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
45 <p>If you want to see a nice graph of the history, just do <hg>hg serve</hg> in your repository and then direct your browser to </p>
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
46 <pre><code> http://127.0.0.1:8000
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
47
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
48 </code></pre>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
49 <p>This also helps getting a feeling for what the commands do. </p>
216
68d5f2b82018 Added easy to use section to the about page
Arne Babenhauserheide <bab@draketo.de>
parents: 207
diff changeset
50 <p>(you can also do a lot of finegrained stuff by using different command options. Just call "hg help &lt;command&gt;" to see them). </p>
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
51 <p>One step you'll likely want to do is setting your username in your Mercurial config file. </p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
52 <p>For this you can configure a proper name and email address in ~/.hgrc (or on a Windows system in %USERPROFILE%Mercurial.ini) by adding lines such as the following: </p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
53 <pre><code>[ui]
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
54 username = John Doe &lt;john@example.com&gt;
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
55
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
56 </code></pre>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
57 <p>I you want more than this quick overview, please have a look at our longer <a href="{% url workflow_guide %}">practical guide</a>. </p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
58 <h2>Part 2: Understanding Mercurial in 6 steps</h2>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
59 <p>Now we'll look at some of the basic concepts of Mercurial to get a better understanding of its internals: </p>
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
60 <ol class="undecorated_list">
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
61 <li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
62 <p>Like in Subversion, history consists of a number of commits. They're
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
63 called changesets in Mercurial.</p>
105
7a057bf137c5 Added a bastic draft for a quick_start - copied from the mailing list :) .
Arne Babenhauserheide <bab@draketo.de>
parents:
diff changeset
64
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
65 </li><li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
66 <p>Subversion requires a strict linear ordering of the commits and
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
67 gives nice linear revision numbers to them. So revision N has only
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
68 one child revision, N+1. This is simple, but it requires a central server to make sure that
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
69 everybody agrees on the revision numbers.</p>
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
70
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
71 </li><li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
72 <p>Mercurial generalizes this by letting each changeset have multiple
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
73 children. If I work alone and make commits I'll make</p>
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
74 <pre><code>C1 --&gt; C2 --&gt; C3
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
75
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
76 </code></pre>
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
77 <p>by making three commits. </p>
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
78
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
79 <p>The commit C3 with no children is a "head".
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
80 It is also the newest changeset in the repository -- called "tip". If I shared C1 with you and you started your work from that, your
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
81 commits will build a repository like this:</p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
82 <pre><code>C1 --&gt; C2' --&gt; C3'
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
83
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
84 </code></pre>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
85 <p>Here C3' is a head in your repository and I don't know anything
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
86 about C2' and C3' yet.</p>
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
87
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
88 </li><li>If I pull from you, or you push to me, the two repositories are
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
89 compared. By default, all missing changesets are transferred. This
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
90 is all there is to push/pull: compare two graphs of changesets and
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
91 transfer the missing ones.
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
92 <p>After a pull from you my repository will look like this:</p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
93 <pre><code> /-&gt; C2 --&gt; C3
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
94 C1 -&lt;
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
95 \-&gt; C2' --&gt; C3'
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
96
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
97 </code></pre>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
98 <p>Here C1 has two child changesets, and the repository has two heads
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
99 since the development has diverged.</p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
100 <p>The changeset C3' will be the new tip since it is the newest
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
101 changeset in the repository. Note that tip is always a head, but a
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
102 head need not be the tip.</p>
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
103
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
104 </li><li>Having two heads suggest that someone should merge them -- otherwise
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
105 the changes from one will never be combined with the changed made in
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
106 the other head.
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
107 <p>When merging with 'hg merge' the task is to figure out the canonical
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
108 way to combine the changesets. If the changes do not overlap this is
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
109 usually trivial, otherwise you have to do a three-way merge. The
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
110 merge must be committed and this creates a changeset which explains
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
111 to the world how you think the two heads should be combined:</p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
112 <pre><code> /-&gt; C2 --&gt; C3 -\
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
113 C1 -&lt; &gt;-&gt; M
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
114 \-&gt; C2' --&gt; C3' -/
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
115
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
116 </code></pre>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
117 <p>Note that the merge changeset M has two parents.</p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
118 <p>If you do not merge C3 and C3' and try to push, you get the 'new
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
119 remote head' message and push aborts. It aborts since it is a little
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
120 "impolite" to leave the job of merging to someone else -- he who
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
121 created the two heads by pulling in some code should also normally
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
122 do the merging.
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
123 </p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
124 </li><li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
125 <p>It helped my understanding a lot to think in terms of the changeset graph. Just remember that:</p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
126 <ul><li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
127 <p>"hg commit" adds a new node. The parent changesets of the new node
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
128 is given by "hg parents"</p>
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
129
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
130 </li><li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
131 <p>"hg push" and "hg pull" transfer nodes in the graph between two
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
132 repositories.</p>
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
133
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
134 </li><li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
135 <p>"hg update" updates the working copy to reflect a given node in
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
136 the history graph. This also changes the parent changeset of the
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
137 next commit, see "hg parents".</p>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
138 </li>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
139 </ul>
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
140 </ol>
192
3b95da26a544 quick start: Included and partly reworked the mail from Martin Geisler for understanding Mercurial.
Arne Babenhauserheide <bab@draketo.de>
parents: 191
diff changeset
141
204
3989294c82e4 Turned the quick start into HTML
Arne Babenhauserheide <bab@draketo.de>
parents: 200 203
diff changeset
142 <p>And if you want to quickly look up something, you can use one of the <a href="http://www.selenic.com/mercurial/wiki/index.cgi/QuickReferenceCardsAndCheatSheets">Mercurial cheatsheets</a>. </p>
207
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
143 <p><em>Compiled from a great email by Martin Geisler.</em></p>
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
144
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
145 </div>
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
146 <div class="col">
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
147 {% download_button %}
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
148 {% mercurial_tricks %}
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
149 {% mercurial_tricks_advanced %}
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
150 </div>
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
151 </div>
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
152
c1c9a4f809ba integrated quick_start and learn_mercurial into the django project (with links).
Arne Babenhauserheide <bab@draketo.de>
parents: 204
diff changeset
153 {% endblock %}