Show More
@@ -1,57 +1,71 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | hg init |
|
4 | 4 | echo 123 > a |
|
5 | 5 | echo 123 > c |
|
6 | 6 | echo 123 > e |
|
7 | 7 | hg add a c e |
|
8 | 8 | hg commit -m "first" -d "1000000 0" a c e |
|
9 | 9 | echo 123 > b |
|
10 | 10 | echo %% should show b unknown |
|
11 | 11 | hg status |
|
12 | 12 | echo 12 > c |
|
13 | 13 | echo %% should show b unknown and c modified |
|
14 | 14 | hg status |
|
15 | 15 | hg add b |
|
16 | 16 | echo %% should show b added and c modified |
|
17 | 17 | hg status |
|
18 | 18 | hg rm a |
|
19 | 19 | echo %% should show a removed, b added and c modified |
|
20 | 20 | hg status |
|
21 | 21 | hg revert a |
|
22 | 22 | echo %% should show b added, copy saved, and c modified |
|
23 | 23 | hg status |
|
24 | 24 | hg revert b |
|
25 | 25 | echo %% should show b unknown, and c modified |
|
26 | 26 | hg status |
|
27 | 27 | hg revert --no-backup c |
|
28 | 28 | echo %% should show unknown: b |
|
29 | 29 | hg status |
|
30 | 30 | echo %% should show a b c e |
|
31 | 31 | ls |
|
32 | 32 | echo %% should verbosely save backup to e.orig |
|
33 | 33 | echo z > e |
|
34 | 34 | hg revert -v |
|
35 | 35 | echo %% should say no changes needed |
|
36 | 36 | hg revert a |
|
37 | 37 | echo %% should say file not managed |
|
38 | 38 | echo q > q |
|
39 | 39 | hg revert q |
|
40 | 40 | rm q |
|
41 | 41 | echo %% should say file not found |
|
42 | 42 | hg revert notfound |
|
43 | 43 | hg rm a |
|
44 | 44 | hg commit -m "second" -d "1000000 0" |
|
45 | 45 | echo z > z |
|
46 | 46 | hg add z |
|
47 | 47 | hg st |
|
48 | 48 | echo %% should add a, forget z |
|
49 | 49 | hg revert -r0 |
|
50 | 50 | echo %% should forget a |
|
51 | 51 | hg revert -rtip |
|
52 | 52 | rm -f a *.orig |
|
53 | 53 | echo %% should silently add a |
|
54 | 54 | hg revert -r0 a |
|
55 | 55 | hg st a |
|
56 | 56 | |
|
57 | hg update -C | |
|
58 | chmod +x c | |
|
59 | hg revert | |
|
60 | echo %% should print non-executable | |
|
61 | test -x c || echo non-executable | |
|
62 | ||
|
63 | chmod +x c | |
|
64 | hg commit -d '1000001 0' -m exe | |
|
65 | ||
|
66 | chmod -x c | |
|
67 | hg revert | |
|
68 | echo %% should print executable | |
|
69 | test -x c && echo executable | |
|
70 | ||
|
57 | 71 | true |
@@ -1,47 +1,53 b'' | |||
|
1 | 1 | %% should show b unknown |
|
2 | 2 | ? b |
|
3 | 3 | %% should show b unknown and c modified |
|
4 | 4 | M c |
|
5 | 5 | ? b |
|
6 | 6 | %% should show b added and c modified |
|
7 | 7 | M c |
|
8 | 8 | A b |
|
9 | 9 | %% should show a removed, b added and c modified |
|
10 | 10 | M c |
|
11 | 11 | A b |
|
12 | 12 | R a |
|
13 | 13 | %% should show b added, copy saved, and c modified |
|
14 | 14 | M c |
|
15 | 15 | A b |
|
16 | 16 | %% should show b unknown, and c modified |
|
17 | 17 | M c |
|
18 | 18 | ? b |
|
19 | 19 | %% should show unknown: b |
|
20 | 20 | ? b |
|
21 | 21 | %% should show a b c e |
|
22 | 22 | a |
|
23 | 23 | b |
|
24 | 24 | c |
|
25 | 25 | e |
|
26 | 26 | %% should verbosely save backup to e.orig |
|
27 | 27 | saving current version of e as e.orig |
|
28 | 28 | reverting e |
|
29 | 29 | resolving manifests |
|
30 | 30 | getting e |
|
31 | 31 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
32 | 32 | %% should say no changes needed |
|
33 | 33 | no changes needed to a |
|
34 | 34 | %% should say file not managed |
|
35 | 35 | file not managed: q |
|
36 | 36 | %% should say file not found |
|
37 | 37 | notfound: No such file in rev 095eacd0c0d7 |
|
38 | 38 | A z |
|
39 | 39 | ? b |
|
40 | 40 | ? e.orig |
|
41 | 41 | %% should add a, forget z |
|
42 | 42 | adding a |
|
43 | 43 | forgetting z |
|
44 | 44 | %% should forget a |
|
45 | 45 | forgetting a |
|
46 | 46 | %% should silently add a |
|
47 | 47 | A a |
|
48 | reverting c | |
|
49 | %% should print non-executable | |
|
50 | non-executable | |
|
51 | reverting c | |
|
52 | %% should print executable | |
|
53 | executable |
General Comments 0
You need to be logged in to leave comments.
Login now