hgbook
diff en/examples/ch11/qdelete @ 682:ef53d025f410
Mention qdelete and qimport -r.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu Apr 23 22:24:02 2009 -0700 (2009-04-23) |
parents | |
children | f3f901cfbfc7 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/en/examples/ch11/qdelete Thu Apr 23 22:24:02 2009 -0700 1.3 @@ -0,0 +1,32 @@ 1.4 +#!/bin/bash 1.5 + 1.6 +echo '[extensions]' >> $HGRC 1.7 +echo 'hgext.mq =' >> $HGRC 1.8 + 1.9 +#$ name: go 1.10 + 1.11 +hg init myrepo 1.12 +cd myrepo 1.13 +hg qinit 1.14 +hg qnew bad.patch 1.15 +echo a > a 1.16 +hg add a 1.17 +hg qrefresh 1.18 +hg qdelete bad.patch 1.19 +hg qpop 1.20 +hg qdelete bad.patch 1.21 + 1.22 +#$ name: convert 1.23 + 1.24 +hg qnew good.patch 1.25 +echo a > a 1.26 +hg add a 1.27 +hg qrefresh -m 'Good change' 1.28 +hg qdelete -r tip 1.29 +hg qapplied 1.30 +hg tip --style=compact 1.31 + 1.32 +#$ name: import 1.33 + 1.34 +hg qimport -r tip 1.35 +hg qapplied