diff en/examples/mq.tutorial @ 8:a25335b56825

Progress on MQ tutorial.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 27 Jun 2006 23:21:05 -0700
parents 339e75288632
children 535e87792eb1
line wrap: on
line diff
--- a/en/examples/mq.tutorial	Mon Jun 26 12:25:11 2006 -0700
+++ b/en/examples/mq.tutorial	Tue Jun 27 23:21:05 2006 -0700
@@ -3,18 +3,57 @@
 
 #$ name: qinit
 
-hg clone http://hg.serpentine.com/mercurial/hg mq-sandbox
-
+hg init mq-sandbox
 cd mq-sandbox
+echo 'line 1' > file1
+echo 'another line 1' > file2
+hg add file1 file2
+hg commit -m'first change'
 
 hg qinit
 
 #$ name: qnew
 
 hg tip
-
 hg qnew first.patch
-
+hg tip
 ls .hg/patches
 
-hg tip
+#$ name: qrefresh
+
+echo 'line 2' >> file1
+hg diff
+hg qrefresh
+hg diff
+hg tip --style=compact --patch
+
+#$ name: qrefresh2
+
+echo 'line 3' >> file1
+hg status
+hg qrefresh
+hg tip --style=compact --patch
+
+#$ name: qnew2
+
+hg qnew second.patch
+hg log --style=compact --limit=2
+echo 'line 4' >> file1
+hg qrefresh
+hg tip --style=compact --patch
+hg annotate file1
+
+#$ name: qseries
+
+hg qseries
+hg qapplied
+
+#$ name: qpop
+
+hg qapplied
+hg qpop
+hg qseries
+hg qapplied
+cat file1
+hg qpush
+cat file1