bos@47: #!/bin/bash bos@47: bos@7: echo '[extensions]' >> $HGRC bos@7: echo 'hgext.mq =' >> $HGRC bos@7: bos@7: #$ name: qinit bos@7: bos@8: hg init mq-sandbox bos@7: cd mq-sandbox bos@8: echo 'line 1' > file1 bos@8: echo 'another line 1' > file2 bos@8: hg add file1 file2 bos@8: hg commit -m'first change' bos@7: bos@7: hg qinit bos@7: bos@7: #$ name: qnew bos@7: bos@7: hg tip bos@7: hg qnew first.patch bos@8: hg tip bos@7: ls .hg/patches bos@7: bos@8: #$ name: qrefresh bos@8: bos@8: echo 'line 2' >> file1 bos@8: hg diff bos@8: hg qrefresh bos@8: hg diff bos@8: hg tip --style=compact --patch bos@8: bos@8: #$ name: qrefresh2 bos@8: bos@8: echo 'line 3' >> file1 bos@8: hg status bos@8: hg qrefresh bos@8: hg tip --style=compact --patch bos@8: bos@8: #$ name: qnew2 bos@8: bos@8: hg qnew second.patch bos@8: hg log --style=compact --limit=2 bos@8: echo 'line 4' >> file1 bos@8: hg qrefresh bos@8: hg tip --style=compact --patch bos@8: hg annotate file1 bos@8: bos@8: #$ name: qseries bos@8: bos@8: hg qseries bos@8: hg qapplied bos@8: bos@8: #$ name: qpop bos@8: bos@8: hg qapplied bos@8: hg qpop bos@8: hg qseries bos@8: hg qapplied bos@8: cat file1 bos@27: bos@27: #$ name: qpush-a bos@27: bos@27: hg qpush -a bos@8: cat file1 bos@27: bos@27: #$ name: add bos@27: bos@27: echo 'file 3, line 1' >> file3 bos@27: hg qnew add-file3.patch bos@27: hg qnew -f add-file3.patch