Mercurial > hgbook
annotate en/examples/mq.id @ 403:303d1576da77
Fix sample output for 'bisect' test.
author | Guido Ostkamp <hg@ostkamp.fastmail.fm> |
---|---|
date | Wed, 20 Aug 2008 22:04:16 +0200 |
parents | 914babdc99c8 |
children |
rev | line source |
---|---|
50
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
1 #!/bin/sh |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
2 |
90
9d0432dc167a
Don't forget to enable mq extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
74
diff
changeset
|
3 echo '[extensions]' >> $HGRC |
9d0432dc167a
Don't forget to enable mq extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
74
diff
changeset
|
4 echo 'hgext.mq =' >> $HGRC |
9d0432dc167a
Don't forget to enable mq extension.
Bryan O'Sullivan <bos@serpentine.com>
parents:
74
diff
changeset
|
5 |
50
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
6 hg init a |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
7 cd a |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
8 hg qinit |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
9 echo 'int x;' > test.c |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
10 hg ci -Ama |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
11 |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
12 hg qnew first.patch |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
13 echo 'float c;' >> test.c |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
14 hg qrefresh |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
15 |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
16 hg qnew second.patch |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
17 echo 'double u;' > other.c |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
18 hg add other.c |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
19 hg qrefresh |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
20 |
155
914babdc99c8
run-example: better error if bogus section name found.
Bryan O'Sullivan <bos@serpentine.com>
parents:
90
diff
changeset
|
21 #$ name: output |
50
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
22 |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
23 hg qapplied |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
24 hg log -r qbase:qtip |
8b0d389cf6e0
Update MQ chapter to match recent bug fixes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
25 hg export second.patch |
74
ec1f144968de
Fix a few examples now that run-examples is more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
50
diff
changeset
|
26 |
ec1f144968de
Fix a few examples now that run-examples is more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
50
diff
changeset
|
27 #$ name: |
ec1f144968de
Fix a few examples now that run-examples is more stringent.
Bryan O'Sullivan <bos@serpentine.com>
parents:
50
diff
changeset
|
28 exit 0 |