view en/examples/ch11/qdelete @ 838:d1f676a6a4b3 default tip

update mq chapter. propagate ef53d025f410.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 03 Dec 2009 01:26:08 +0900
parents f3f901cfbfc7
children
line wrap: on
line source

#!/bin/bash

echo '[extensions]' >> $HGRC
echo 'hgext.mq =' >> $HGRC

#$ name: go

hg init myrepo
cd myrepo
hg qinit
hg qnew bad.patch
echo a > a
hg add a
hg qrefresh
hg qdelete bad.patch
hg qpop
hg qdelete bad.patch

#$ name: convert

hg qnew good.patch
echo a > a
hg add a
hg qrefresh -m 'Good change'
hg qfinish tip
hg qapplied
hg tip --style=compact

#$ name: import

hg qimport -r tip
hg qapplied