equal
deleted
inserted
replaced
1 |
|
2 $ cat >> $HGRCPATH <<EOF |
|
3 > [web] |
|
4 > push_ssl = false |
|
5 > allow_push = * |
|
6 > [extensions] |
|
7 > hgext.rebase= |
|
8 > hgext.mq= |
|
9 > EOF |
|
10 $ echo "states=$(echo $(dirname $TESTDIR))/hgext/states.py" >> $HGRCPATH |
|
11 |
|
12 |
|
13 init stuff |
|
14 |
|
15 $ hg init local |
|
16 $ cd local |
|
17 $ echo "celestine" > babar |
|
18 $ hg add babar |
|
19 $ hg ci -m "add babar" |
|
20 $ echo "la veille dame" > babar |
|
21 $ hg ci -m "add dame" |
|
22 $ hg up 0 -q |
|
23 $ echo "Rataxes" > rhino |
|
24 $ hg add rhino |
|
25 $ hg ci -m "add rhino" |
|
26 created new head |
|
27 $ hg published 1 2 |
|
28 $ hg up 1 -q |
|
29 $ hg states draft |
|
30 $ echo "avion" > vehicule |
|
31 $ hg add vehicule |
|
32 $ hg ci -m "add some plane" |
|
33 $ hg log --template='{rev}:{node|short}: {state}\n' |
|
34 3:4ee052f12c59: draft |
|
35 2:5468aa9f5c63: published |
|
36 1:710fe444b3b0: published |
|
37 0:5caa672bac26: published |
|
38 |
|
39 test you can't qimport published changeset |
|
40 |
|
41 $ hg qimport -r 1 |
|
42 abort: can not qimport published changeset 710fe444b3b0 |
|
43 (see `hg help --extension states` for details) |
|
44 [255] |
|
45 |
|
46 but other are ok |
|
47 |
|
48 $ hg qimport -r 3 |
|
49 $ hg qfinish -a |
|
50 |
|
51 test you can't rebase published changeset |
|
52 |
|
53 $ hg rebase --dest 2 -b 1 |
|
54 abort: can not rebase published changeset 710fe444b3b0 |
|
55 (see `hg help --extension states` for details) |
|
56 [255] |
|
57 |
|
58 test you still can rebase other one |
|
59 |
|
60 $ hg rebase --dest 2 -s 3 --detach |
|
61 saved backup bundle to $TESTTMP/local/.hg/strip-backup/4ee052f12c59-backup.hg |
|
62 $ hg rebase --dest 1 -s 3 |
|
63 saved backup bundle to $TESTTMP/local/.hg/strip-backup/f708bc50a098-backup.hg |
|
64 |
|