equal
deleted
inserted
replaced
41 |
41 |
42 $ hg resolve -l |
42 $ hg resolve -l |
43 U file1 |
43 U file1 |
44 U file2 |
44 U file2 |
45 |
45 |
46 resolving an unknown path should emit a warning |
46 $ hg resolve -l --no-status |
|
47 file1 |
|
48 file2 |
|
49 |
|
50 resolving an unknown path should emit a warning, but not for -l |
47 |
51 |
48 $ hg resolve -m does-not-exist |
52 $ hg resolve -m does-not-exist |
49 arguments do not match paths that need resolving |
53 arguments do not match paths that need resolving |
|
54 $ hg resolve -l does-not-exist |
50 |
55 |
51 resolve the failure |
56 resolve the failure |
52 |
57 |
53 $ echo resolved > file1 |
58 $ echo resolved > file1 |
54 $ hg resolve -m file1 |
59 $ hg resolve -m file1 |
57 |
62 |
58 $ hg resolve -l |
63 $ hg resolve -l |
59 R file1 |
64 R file1 |
60 U file2 |
65 U file2 |
61 |
66 |
|
67 $ hg resolve -l -Tjson |
|
68 [ |
|
69 { |
|
70 "path": "file1", |
|
71 "status": "R" |
|
72 }, |
|
73 { |
|
74 "path": "file2", |
|
75 "status": "U" |
|
76 } |
|
77 ] |
|
78 |
62 resolve -m without paths should mark all resolved |
79 resolve -m without paths should mark all resolved |
63 |
80 |
64 $ hg resolve -m |
81 $ hg resolve -m |
65 (no more unresolved files) |
82 (no more unresolved files) |
66 $ hg commit -m 'resolved' |
83 $ hg commit -m 'resolved' |
67 |
84 |
68 resolve -l should be empty after commit |
85 resolve -l should be empty after commit |
69 |
86 |
70 $ hg resolve -l |
87 $ hg resolve -l |
|
88 |
|
89 $ hg resolve -l -Tjson |
|
90 [ |
|
91 ] |
71 |
92 |
72 resolve --all should abort when no merge in progress |
93 resolve --all should abort when no merge in progress |
73 |
94 |
74 $ hg resolve --all |
95 $ hg resolve --all |
75 abort: resolve command not applicable when not merging |
96 abort: resolve command not applicable when not merging |