belaran@966: #!/bin/bash belaran@966: belaran@966: echo '[extensions]' >> $HGRC belaran@966: echo 'hgext.mq =' >> $HGRC belaran@966: belaran@966: #$ name: go belaran@966: belaran@966: hg init myrepo belaran@966: cd myrepo belaran@966: hg qinit belaran@966: hg qnew bad.patch belaran@966: echo a > a belaran@966: hg add a belaran@966: hg qrefresh belaran@966: hg qdelete bad.patch belaran@966: hg qpop belaran@966: hg qdelete bad.patch belaran@966: belaran@966: #$ name: convert belaran@966: belaran@966: hg qnew good.patch belaran@966: echo a > a belaran@966: hg add a belaran@966: hg qrefresh -m 'Good change' belaran@966: hg qfinish tip belaran@966: hg qapplied belaran@966: hg tip --style=compact belaran@966: belaran@966: #$ name: import belaran@966: belaran@966: hg qimport -r tip belaran@966: hg qapplied