Show More
@@ -4,6 +4,8 b'' | |||||
4 | $ echo "[diff]" >> $HGRCPATH |
|
4 | $ echo "[diff]" >> $HGRCPATH | |
5 | $ echo "nodates=1" >> $HGRCPATH |
|
5 | $ echo "nodates=1" >> $HGRCPATH | |
6 |
|
6 | |||
|
7 | $ stdin=`pwd`/stdin.tmp | |||
|
8 | ||||
7 | fn to create new repository w/dirty subrepo, and cd into it |
|
9 | fn to create new repository w/dirty subrepo, and cd into it | |
8 | $ mkrepo() { |
|
10 | $ mkrepo() { | |
9 | > hg init $1 |
|
11 | > hg init $1 | |
@@ -21,41 +23,42 b' fn to create dirty subrepo' | |||||
21 | > } |
|
23 | > } | |
22 |
|
24 | |||
23 | $ testadd() { |
|
25 | $ testadd() { | |
24 |
> |
|
26 | > cat - > "$stdin" | |
25 | > mksubrepo sub |
|
27 | > mksubrepo sub | |
26 | > echo sub = sub >> .hgsub |
|
28 | > echo sub = sub >> .hgsub | |
27 | > hg add .hgsub |
|
29 | > hg add .hgsub | |
28 | > echo % abort when adding .hgsub w/dirty subrepo |
|
30 | > echo % abort when adding .hgsub w/dirty subrepo | |
29 | > hg status -S |
|
31 | > hg status -S | |
30 | > echo '%' $* |
|
32 | > echo '%' $* | |
31 |
> |
|
33 | > cat "$stdin" | hg $* | |
32 | > echo [$?] |
|
34 | > echo [$?] | |
33 | > hg -R sub ci -m0sub |
|
35 | > hg -R sub ci -m0sub | |
34 | > echo % update substate when adding .hgsub w/clean updated subrepo |
|
36 | > echo % update substate when adding .hgsub w/clean updated subrepo | |
35 | > hg status -S |
|
37 | > hg status -S | |
36 | > echo '%' $* |
|
38 | > echo '%' $* | |
37 |
> |
|
39 | > cat "$stdin" | hg $* | |
38 | > hg debugsub |
|
40 | > hg debugsub | |
39 | > } |
|
41 | > } | |
40 |
|
42 | |||
41 | $ testmod() { |
|
43 | $ testmod() { | |
42 |
> |
|
44 | > cat - > "$stdin" | |
43 | > mksubrepo sub2 |
|
45 | > mksubrepo sub2 | |
44 | > echo sub2 = sub2 >> .hgsub |
|
46 | > echo sub2 = sub2 >> .hgsub | |
45 | > echo % abort when modifying .hgsub w/dirty subrepo |
|
47 | > echo % abort when modifying .hgsub w/dirty subrepo | |
46 | > hg status -S |
|
48 | > hg status -S | |
47 | > echo '%' $* |
|
49 | > echo '%' $* | |
48 |
> |
|
50 | > cat "$stdin" | hg $* | |
49 | > echo [$?] |
|
51 | > echo [$?] | |
50 | > hg -R sub2 ci -m0sub2 |
|
52 | > hg -R sub2 ci -m0sub2 | |
51 | > echo % update substate when modifying .hgsub w/clean updated subrepo |
|
53 | > echo % update substate when modifying .hgsub w/clean updated subrepo | |
52 | > hg status -S |
|
54 | > hg status -S | |
53 | > echo '%' $* |
|
55 | > echo '%' $* | |
54 |
> |
|
56 | > cat "$stdin" | hg $* | |
55 | > hg debugsub |
|
57 | > hg debugsub | |
56 | > } |
|
58 | > } | |
57 |
|
59 | |||
58 | $ testrm1() { |
|
60 | $ testrm1() { | |
|
61 | > cat - > "$stdin" | |||
59 |
|
|
62 | > mksubrepo sub3 | |
60 | > echo sub3 = sub3 >> .hgsub |
|
63 | > echo sub3 = sub3 >> .hgsub | |
61 | > hg ci -Aqmsub3 |
|
64 | > hg ci -Aqmsub3 | |
@@ -65,11 +68,13 b' fn to create dirty subrepo' | |||||
65 | > echo % update substate when removing .hgsub w/dirty subrepo |
|
68 | > echo % update substate when removing .hgsub w/dirty subrepo | |
66 | > hg status -S |
|
69 | > hg status -S | |
67 | > echo '%' $* |
|
70 | > echo '%' $* | |
68 |
> |
|
71 | > cat "$stdin" | hg $* | |
69 | > echo % debugsub should be empty |
|
72 | > echo % debugsub should be empty | |
70 | > hg debugsub |
|
73 | > hg debugsub | |
71 | > } |
|
74 | > } | |
|
75 | ||||
72 | $ testrm2() { |
|
76 | $ testrm2() { | |
|
77 | > cat - > "$stdin" | |||
73 |
|
|
78 | > mksubrepo sub4 | |
74 | > echo sub4 = sub4 >> .hgsub |
|
79 | > echo sub4 = sub4 >> .hgsub | |
75 | > hg ci -Aqmsub4 |
|
80 | > hg ci -Aqmsub4 | |
@@ -78,7 +83,7 b' fn to create dirty subrepo' | |||||
78 | > echo % update substate when removing .hgsub w/clean updated subrepo |
|
83 | > echo % update substate when removing .hgsub w/clean updated subrepo | |
79 | > hg status -S |
|
84 | > hg status -S | |
80 | > echo '%' $* |
|
85 | > echo '%' $* | |
81 |
> |
|
86 | > cat "$stdin" | hg $* | |
82 | > echo % debugsub should be empty |
|
87 | > echo % debugsub should be empty | |
83 | > hg debugsub |
|
88 | > hg debugsub | |
84 | > } |
|
89 | > } |
General Comments 0
You need to be logged in to leave comments.
Login now