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