hgbook
annotate es/examples/mq.id @ 1077:02a588f8933a
2.4.1 first para zh translated
author | Zhaoping Sun <zhaopingsun@gmail.com> |
---|---|
date | Wed Nov 18 21:58:15 2009 -0500 (2009-11-18) |
parents | |
children |
rev | line source |
---|---|
igor@333 | 1 #!/bin/sh |
igor@333 | 2 |
igor@333 | 3 echo '[extensions]' >> $HGRC |
igor@333 | 4 echo 'hgext.mq =' >> $HGRC |
igor@333 | 5 |
igor@333 | 6 hg init a |
igor@333 | 7 cd a |
igor@333 | 8 hg qinit |
igor@333 | 9 echo 'int x;' > test.c |
igor@333 | 10 hg ci -Ama |
igor@333 | 11 |
igor@333 | 12 hg qnew first.patch |
igor@333 | 13 echo 'float c;' >> test.c |
igor@333 | 14 hg qrefresh |
igor@333 | 15 |
igor@333 | 16 hg qnew second.patch |
igor@333 | 17 echo 'double u;' > other.c |
igor@333 | 18 hg add other.c |
igor@333 | 19 hg qrefresh |
igor@333 | 20 |
igor@333 | 21 #$ name: output |
igor@333 | 22 |
igor@333 | 23 hg qapplied |
igor@333 | 24 hg log -r qbase:qtip |
igor@333 | 25 hg export second.patch |
igor@333 | 26 |
igor@333 | 27 #$ name: |
igor@333 | 28 exit 0 |