- ingo@aeolus:~/tmp$ cd test
- ingo@aeolus:~/tmp/test$ # Pastebin Y3H27Eql
- ingo@aeolus:~/tmp/test$ hg init mq-test
- ingo@aeolus:~/tmp/test$ hg init --mq mq-test
- ingo@aeolus:~/tmp/test$ cd mq-test
- ingo@aeolus:~/tmp/test/mq-test$ echo foo1 > foo1
- ingo@aeolus:~/tmp/test/mq-test$ hg add foo1
- ingo@aeolus:~/tmp/test/mq-test$ hg qnew test
- ingo@aeolus:~/tmp/test/mq-test$ hg ci --mq -m "add foo1"
- ingo@aeolus:~/tmp/test/mq-test$ echo foo2 > foo2
- ingo@aeolus:~/tmp/test/mq-test$ hg add foo2
- ingo@aeolus:~/tmp/test/mq-test$ hg qref
- ingo@aeolus:~/tmp/test/mq-test$ hg ci --mq -m "add foo2"
- ingo@aeolus:~/tmp/test/mq-test$ hg rm foo1
- ingo@aeolus:~/tmp/test/mq-test$ hg mv foo2 foo1
- ingo@aeolus:~/tmp/test/mq-test$ hg forget foo2
- ingo@aeolus:~/tmp/test/mq-test$ hg revert foo2
- ingo@aeolus:~/tmp/test/mq-test$ hg revert foo1
- ingo@aeolus:~/tmp/test/mq-test$ hg glog -l5
- @ 0:a2d42532e525 qbase qtip test tip 2014-11-18 19:30 +0100 (planetmaker)
- [mq]: test
- ingo@aeolus:~/tmp/test/mq-test$ ls .hg/patches/
- series status test
- ingo@aeolus:~/tmp/test/mq-test$ cat .hg/patches/series
- test
- ingo@aeolus:~/tmp/test/mq-test$ cat .hg/patches/series/te^C
- ingo@aeolus:~/tmp/test/mq-test$ hg export tip
- # HG changeset patch
- # User planetmaker <planetmaker@openttd.org>
- # Date 1416335402 -3600
- # Tue Nov 18 19:30:02 2014 +0100
- # Node ID a2d42532e525234b425a590f6ae1347b78927b4f
- # Parent 0000000000000000000000000000000000000000
- [mq]: test
- diff --git a/foo1 b/foo1
- new file mode 100644
- --- /dev/null
- +++ b/foo1
- @@ -0,0 +1,1 @@
- +foo1
- diff --git a/foo2 b/foo2
- new file mode 100644
- --- /dev/null
- +++ b/foo2
- @@ -0,0 +1,1 @@
- +foo2
- ingo@aeolus:~/tmp/test/mq-test$ cat .hg/patches/test
- # HG changeset patch
- # Parent 0000000000000000000000000000000000000000
- diff --git a/foo1 b/foo1
- new file mode 100644
- --- /dev/null
- +++ b/foo1
- @@ -0,0 +1,1 @@
- +foo1
- diff --git a/foo2 b/foo2
- new file mode 100644
- --- /dev/null
- +++ b/foo2
- @@ -0,0 +1,1 @@
- +foo2
- ingo@aeolus:~/tmp/test/mq-test$ hg export -r. > tmp.diff
- ingo@aeolus:~/tmp/test/mq-test$ diff tmp.diff .hg/patches/test
- 2,5d1
- < # User planetmaker <planetmaker@openttd.org>
- < # Date 1416335402 -3600
- < # Tue Nov 18 19:30:02 2014 +0100
- < # Node ID a2d42532e525234b425a590f6ae1347b78927b4f
- 7d2
- < [mq]: test