Mercurial > hgbook
annotate en/examples/ch11/qdelete @ 809:ef53d025f410
Mention qdelete and qimport -r.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 23 Apr 2009 22:24:02 -0700 |
parents | |
children | f3f901cfbfc7 |
rev | line source |
---|---|
809
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
1 #!/bin/bash |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
2 |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
3 echo '[extensions]' >> $HGRC |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
4 echo 'hgext.mq =' >> $HGRC |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
5 |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
6 #$ name: go |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
7 |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
8 hg init myrepo |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
9 cd myrepo |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
10 hg qinit |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
11 hg qnew bad.patch |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
12 echo a > a |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
13 hg add a |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
14 hg qrefresh |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
15 hg qdelete bad.patch |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
16 hg qpop |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
17 hg qdelete bad.patch |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
18 |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
19 #$ name: convert |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
20 |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
21 hg qnew good.patch |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
22 echo a > a |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
23 hg add a |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
24 hg qrefresh -m 'Good change' |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
25 hg qdelete -r tip |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
26 hg qapplied |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
27 hg tip --style=compact |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
28 |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
29 #$ name: import |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
30 |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
31 hg qimport -r tip |
ef53d025f410
Mention qdelete and qimport -r.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
32 hg qapplied |