author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
Tue, 13 Sep 2011 00:45:42 +0200 | |
changeset 64 | 6a7dc5ca05b8 |
parent 63 | f47a5f990eb2 |
child 65 | 7c8f992d567e |
permissions | -rw-r--r-- |
63
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
1 |
|
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
2 |
$ cat >> $HGRCPATH <<EOF |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
3 |
> [web] |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
4 |
> push_ssl = false |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
5 |
> allow_push = * |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
6 |
> [extensions] |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
7 |
> hgext.rebase= |
64
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
8 |
> hgext.mq= |
63
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
9 |
> EOF |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
10 |
$ echo "states=$(echo $(dirname $TESTDIR))/hgext/states.py" >> $HGRCPATH |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
11 |
|
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
12 |
|
64
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
13 |
init stuff |
63
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
14 |
|
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
15 |
$ hg init local |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
16 |
$ cd local |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
17 |
$ echo "celestine" > babar |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
18 |
$ hg add babar |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
19 |
$ hg ci -m "add babar" |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
20 |
$ echo "la veille dame" > babar |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
21 |
$ hg ci -m "add dame" |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
22 |
$ hg log --template='{rev}:{node|short}: {state}\n' |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
23 |
1:710fe444b3b0: published |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
24 |
0:5caa672bac26: published |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
25 |
$ hg up 0 -q |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
26 |
$ echo "Rataxes" > rhino |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
27 |
$ hg add rhino |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
28 |
$ hg ci -m "add rhino" |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
29 |
created new head |
64
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
30 |
$ hg published 1 2 |
63
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
31 |
$ hg up 1 -q |
64
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
32 |
$ hg states draft |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
33 |
$ echo "flore" > babar |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
34 |
$ hg ci -m "add daughter" |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
35 |
|
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
36 |
test you can't qimport published changeset |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
37 |
|
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
38 |
$ hg qimport -r 1 |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
39 |
abort: can not qimport published changeset 710fe444b3b0 |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
40 |
(see `hg help --extension states` for details) |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
41 |
[255] |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
42 |
|
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
43 |
but other are ok |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
44 |
|
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
45 |
$ hg qimport -r 3 |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
46 |
$ hg qfinish -a |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
47 |
|
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
48 |
test you can't rebase published changeset |
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
49 |
|
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
50 |
$ hg rebase --dest 2 -b 1 |
63
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
51 |
abort: can not rebase published changeset 710fe444b3b0 |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
52 |
(see `hg help --extension states` for details) |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
53 |
[255] |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
54 |
|
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
55 |
test you still can rebase other one |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
56 |
|
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
57 |
$ hg rebase --dest 2 -s 3 |
f47a5f990eb2
[states] add rebase support.
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
diff
changeset
|
58 |
saved backup bundle to $TESTTMP/local/.hg/strip-backup/b7f6698b7ad7-backup.hg |
64
6a7dc5ca05b8
[states] add mq support
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents:
63
diff
changeset
|
59 |