##// END OF EJS Templates
resolve: simplify "finished" message...
Matt Mackall -
r21267:e4f451c8 default
parent child Browse files
Show More
@@ -4981,8 +4981,7 b' def resolve(ui, repo, *pats, **opts):'
4981 # this with the list/show operation because we want list/show to remain
4981 # this with the list/show operation because we want list/show to remain
4982 # machine readable.
4982 # machine readable.
4983 if not list(ms.unresolved()) and not show:
4983 if not list(ms.unresolved()) and not show:
4984 ui.write(_('no unresolved files; '))
4984 ui.status(_('no more unresolved files\n'))
4985 ui.write(_('you may continue your unfinished operation\n'))
4986
4985
4987 return ret
4986 return ret
4988
4987
@@ -107,7 +107,7 b' should fail'
107 M a
107 M a
108 ? a.orig
108 ? a.orig
109 $ hg resolve -m a
109 $ hg resolve -m a
110 no unresolved files; you may continue your unfinished operation
110 no more unresolved files
111 $ hg ci -m merge
111 $ hg ci -m merge
112
112
113 Issue683: peculiarity with hg revert of an removed then added file
113 Issue683: peculiarity with hg revert of an removed then added file
@@ -490,7 +490,7 b' Test usage of `hg resolve` in case of co'
490 merging foo
490 merging foo
491 my foo@b71750c4b0fd+ other foo@a30dd8addae3 ancestor foo@913609522437
491 my foo@b71750c4b0fd+ other foo@a30dd8addae3 ancestor foo@913609522437
492 premerge successful
492 premerge successful
493 no unresolved files; you may continue your unfinished operation
493 no more unresolved files
494 $ hg status
494 $ hg status
495 M foo
495 M foo
496 ? foo.orig
496 ? foo.orig
@@ -586,7 +586,7 b' Amend a merge changeset (with renames an'
586 merging cc incomplete! (edit conflicts, then use 'hg resolve --mark')
586 merging cc incomplete! (edit conflicts, then use 'hg resolve --mark')
587 [1]
587 [1]
588 $ hg resolve -m cc
588 $ hg resolve -m cc
589 no unresolved files; you may continue your unfinished operation
589 no more unresolved files
590 $ hg ci -m 'merge bar'
590 $ hg ci -m 'merge bar'
591 $ hg log --config diff.git=1 -pr .
591 $ hg log --config diff.git=1 -pr .
592 changeset: 23:d51446492733
592 changeset: 23:d51446492733
@@ -41,7 +41,7 b' Correct the conflict without marking the'
41 Mark the conflict as resolved and commit
41 Mark the conflict as resolved and commit
42
42
43 $ hg resolve -m A
43 $ hg resolve -m A
44 no unresolved files; you may continue your unfinished operation
44 no more unresolved files
45 $ hg commit -m "Merged"
45 $ hg commit -m "Merged"
46
46
47 $ cd ..
47 $ cd ..
@@ -352,7 +352,7 b' Branchy history'
352 [1]
352 [1]
353 $ hg --cwd b revert -r 2 b
353 $ hg --cwd b revert -r 2 b
354 $ hg --cwd b resolve -m b
354 $ hg --cwd b resolve -m b
355 no unresolved files; you may continue your unfinished operation
355 no more unresolved files
356 $ hg --cwd b ci -d '5 0' -m 'merge'
356 $ hg --cwd b ci -d '5 0' -m 'merge'
357
357
358 Expect 4 changes
358 Expect 4 changes
@@ -154,7 +154,7 b' Test merge states'
154 b2
154 b2
155 $ echo e > b2
155 $ echo e > b2
156 $ hg resolve -m b2
156 $ hg resolve -m b2
157 no unresolved files; you may continue your unfinished operation
157 no more unresolved files
158 $ fileset 'resolved()'
158 $ fileset 'resolved()'
159 b2
159 b2
160 $ fileset 'unresolved()'
160 $ fileset 'unresolved()'
@@ -220,7 +220,7 b' Fix up:'
220
220
221 $ echo b > e
221 $ echo b > e
222 $ hg resolve -m e
222 $ hg resolve -m e
223 no unresolved files; you may continue your unfinished operation
223 no more unresolved files
224
224
225 Continue with a revision should fail:
225 Continue with a revision should fail:
226
226
@@ -355,7 +355,7 b' Resolve conflicted graft'
355 [255]
355 [255]
356 $ hg resolve --all
356 $ hg resolve --all
357 merging a
357 merging a
358 no unresolved files; you may continue your unfinished operation
358 no more unresolved files
359 $ hg graft -c
359 $ hg graft -c
360 grafting revision 1
360 grafting revision 1
361 $ hg export tip --git
361 $ hg export tip --git
@@ -384,7 +384,7 b' Resolve conflicted graft with rename'
384 [255]
384 [255]
385 $ hg resolve --all
385 $ hg resolve --all
386 merging a and b to b
386 merging a and b to b
387 no unresolved files; you may continue your unfinished operation
387 no more unresolved files
388 $ hg graft -c
388 $ hg graft -c
389 grafting revision 2
389 grafting revision 2
390 $ hg export tip --git
390 $ hg export tip --git
@@ -95,7 +95,7 b' edit the history'
95 fix up
95 fix up
96 $ echo 'I can haz no commute' > e
96 $ echo 'I can haz no commute' > e
97 $ hg resolve --mark e
97 $ hg resolve --mark e
98 no unresolved files; you may continue your unfinished operation
98 no more unresolved files
99 $ cat > cat.py <<EOF
99 $ cat > cat.py <<EOF
100 > import sys
100 > import sys
101 > print open(sys.argv[1]).read()
101 > print open(sys.argv[1]).read()
@@ -130,7 +130,7 b' fix up'
130 just continue this time
130 just continue this time
131 $ hg revert -r 'p1()' e
131 $ hg revert -r 'p1()' e
132 $ hg resolve --mark e
132 $ hg resolve --mark e
133 no unresolved files; you may continue your unfinished operation
133 no more unresolved files
134 $ hg histedit --continue 2>&1 | fixbundle
134 $ hg histedit --continue 2>&1 | fixbundle
135 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
135 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
136 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
136 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -217,7 +217,7 b' should effectively drop the changes from'
217 U file
217 U file
218 $ hg revert -r 'p1()' file
218 $ hg revert -r 'p1()' file
219 $ hg resolve --mark file
219 $ hg resolve --mark file
220 no unresolved files; you may continue your unfinished operation
220 no more unresolved files
221 $ hg histedit --continue
221 $ hg histedit --continue
222 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
222 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
223 saved backup bundle to $TESTTMP/*-backup.hg (glob)
223 saved backup bundle to $TESTTMP/*-backup.hg (glob)
@@ -277,7 +277,7 b' dropped revision.'
277 > 5
277 > 5
278 > EOF
278 > EOF
279 $ hg resolve --mark file
279 $ hg resolve --mark file
280 no unresolved files; you may continue your unfinished operation
280 no more unresolved files
281 $ hg commit -m '+5.2'
281 $ hg commit -m '+5.2'
282 created new head
282 created new head
283 $ echo 6 >> file
283 $ echo 6 >> file
@@ -154,7 +154,7 b' edit the history'
154 fix up
154 fix up
155 $ echo 'I can haz no commute' > e
155 $ echo 'I can haz no commute' > e
156 $ hg resolve --mark e
156 $ hg resolve --mark e
157 no unresolved files; you may continue your unfinished operation
157 no more unresolved files
158 $ hg histedit --continue 2>&1 | fixbundle
158 $ hg histedit --continue 2>&1 | fixbundle
159 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
159 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
160 merging e
160 merging e
@@ -168,7 +168,7 b' former children.'
168 just continue this time
168 just continue this time
169 $ hg revert -r 'p1()' e
169 $ hg revert -r 'p1()' e
170 $ hg resolve --mark e
170 $ hg resolve --mark e
171 no unresolved files; you may continue your unfinished operation
171 no more unresolved files
172 $ hg histedit --continue 2>&1 | fixbundle
172 $ hg histedit --continue 2>&1 | fixbundle
173 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
173 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
174 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
174 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -241,7 +241,7 b' edit the history, this time with a fold '
241
241
242 $ echo 'I can haz no commute' > e
242 $ echo 'I can haz no commute' > e
243 $ hg resolve --mark e
243 $ hg resolve --mark e
244 no unresolved files; you may continue your unfinished operation
244 no more unresolved files
245 $ hg histedit --continue 2>&1 | fixbundle
245 $ hg histedit --continue 2>&1 | fixbundle
246 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
246 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
247 merging e
247 merging e
@@ -251,7 +251,7 b' edit the history, this time with a fold '
251 second edit also fails, but just continue
251 second edit also fails, but just continue
252 $ hg revert -r 'p1()' e
252 $ hg revert -r 'p1()' e
253 $ hg resolve --mark e
253 $ hg resolve --mark e
254 no unresolved files; you may continue your unfinished operation
254 no more unresolved files
255 $ hg histedit --continue 2>&1 | fixbundle
255 $ hg histedit --continue 2>&1 | fixbundle
256 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
256 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
257 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
257 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -1058,7 +1058,7 b' conflict: keyword should stay outside co'
1058 resolve to local
1058 resolve to local
1059
1059
1060 $ HGMERGE=internal:local hg resolve -a
1060 $ HGMERGE=internal:local hg resolve -a
1061 no unresolved files; you may continue your unfinished operation
1061 no more unresolved files
1062 $ hg commit -m localresolve
1062 $ hg commit -m localresolve
1063 $ cat m
1063 $ cat m
1064 $Id: m 800511b3a22d Thu, 01 Jan 1970 00:00:00 +0000 test $
1064 $Id: m 800511b3a22d Thu, 01 Jan 1970 00:00:00 +0000 test $
@@ -132,7 +132,7 b' add some changesets to rename/remove/mer'
132 [1]
132 [1]
133 $ hg cat -r . sub/maybelarge.dat > stuff/maybelarge.dat
133 $ hg cat -r . sub/maybelarge.dat > stuff/maybelarge.dat
134 $ hg resolve -m stuff/maybelarge.dat
134 $ hg resolve -m stuff/maybelarge.dat
135 no unresolved files; you may continue your unfinished operation
135 no more unresolved files
136 $ hg commit -m"merge"
136 $ hg commit -m"merge"
137 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
137 $ hg log -G --template "{rev}:{node|short} {desc|firstline}\n"
138 @ 5:4884f215abda merge
138 @ 5:4884f215abda merge
@@ -990,7 +990,7 b' log -p -R repo'
990 [1]
990 [1]
991 $ echo 'merge 1' > foo
991 $ echo 'merge 1' > foo
992 $ hg resolve -m foo
992 $ hg resolve -m foo
993 no unresolved files; you may continue your unfinished operation
993 no more unresolved files
994 $ hg ci -m "First merge, related"
994 $ hg ci -m "First merge, related"
995
995
996 $ hg merge 4
996 $ hg merge 4
@@ -1002,7 +1002,7 b' log -p -R repo'
1002 [1]
1002 [1]
1003 $ echo 'merge 2' > foo
1003 $ echo 'merge 2' > foo
1004 $ hg resolve -m foo
1004 $ hg resolve -m foo
1005 no unresolved files; you may continue your unfinished operation
1005 no more unresolved files
1006 $ hg ci -m "Last merge, related"
1006 $ hg ci -m "Last merge, related"
1007
1007
1008 $ hg log --graph
1008 $ hg log --graph
@@ -50,7 +50,7 b' Symlink is local parent, executable is o'
50 a is a symlink:
50 a is a symlink:
51 a -> symlink
51 a -> symlink
52 $ hg resolve a --tool internal:other
52 $ hg resolve a --tool internal:other
53 no unresolved files; you may continue your unfinished operation
53 no more unresolved files
54 $ tellmeabout a
54 $ tellmeabout a
55 a is an executable file with content:
55 a is an executable file with content:
56 a
56 a
@@ -57,7 +57,7 b' resolve conflict'
57 > EOF
57 > EOF
58 $ rm -f *.orig
58 $ rm -f *.orig
59 $ hg resolve -m test.txt
59 $ hg resolve -m test.txt
60 no unresolved files; you may continue your unfinished operation
60 no more unresolved files
61 $ hg commit -m "Merge 1"
61 $ hg commit -m "Merge 1"
62
62
63 change test-a again
63 change test-a again
@@ -158,7 +158,7 b' plain headers'
158 merging a incomplete! (edit conflicts, then use 'hg resolve --mark')
158 merging a incomplete! (edit conflicts, then use 'hg resolve --mark')
159 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
159 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
160 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
160 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
161 no unresolved files; you may continue your unfinished operation
161 no more unresolved files
162 abort: cannot manage merge changesets
162 abort: cannot manage merge changesets
163 $ rm -r sandbox
163 $ rm -r sandbox
164
164
@@ -232,7 +232,7 b' hg headers'
232 merging a incomplete! (edit conflicts, then use 'hg resolve --mark')
232 merging a incomplete! (edit conflicts, then use 'hg resolve --mark')
233 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
233 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
234 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
234 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
235 no unresolved files; you may continue your unfinished operation
235 no more unresolved files
236 abort: cannot manage merge changesets
236 abort: cannot manage merge changesets
237 $ rm -r sandbox
237 $ rm -r sandbox
238
238
@@ -168,7 +168,7 b' rebase --continue with bookmarks present'
168 [1]
168 [1]
169 $ echo 'c' > c
169 $ echo 'c' > c
170 $ hg resolve --mark c
170 $ hg resolve --mark c
171 no unresolved files; you may continue your unfinished operation
171 no more unresolved files
172 $ hg rebase --continue
172 $ hg rebase --continue
173 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/3d5fa227f4b5-backup.hg (glob)
173 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/3d5fa227f4b5-backup.hg (glob)
174 $ hg tglog
174 $ hg tglog
@@ -76,7 +76,7 b' Solve the conflict and go on:'
76 $ echo 'conflict solved' > A
76 $ echo 'conflict solved' > A
77 $ rm A.orig
77 $ rm A.orig
78 $ hg resolve -m A
78 $ hg resolve -m A
79 no unresolved files; you may continue your unfinished operation
79 no more unresolved files
80 $ hg rebase --continue
80 $ hg rebase --continue
81
81
82 $ hg tglog
82 $ hg tglog
@@ -130,7 +130,7 b' Solve the conflict and go on:'
130 $ echo 'conflict solved' > A
130 $ echo 'conflict solved' > A
131 $ rm A.orig
131 $ rm A.orig
132 $ hg resolve -m A
132 $ hg resolve -m A
133 no unresolved files; you may continue your unfinished operation
133 no more unresolved files
134 $ hg rebase --continue
134 $ hg rebase --continue
135 saved backup bundle to $TESTTMP/a2/.hg/strip-backup/*-backup.hg (glob)
135 saved backup bundle to $TESTTMP/a2/.hg/strip-backup/*-backup.hg (glob)
136
136
@@ -77,7 +77,7 b' Conclude rebase:'
77
77
78 $ echo 'resolved merge' >common
78 $ echo 'resolved merge' >common
79 $ hg resolve -m common
79 $ hg resolve -m common
80 no unresolved files; you may continue your unfinished operation
80 no more unresolved files
81 $ hg rebase --continue
81 $ hg rebase --continue
82 saved backup bundle to $TESTTMP/a/.hg/strip-backup/*-backup.hg (glob)
82 saved backup bundle to $TESTTMP/a/.hg/strip-backup/*-backup.hg (glob)
83
83
@@ -374,7 +374,7 b' Ensure --continue restores a correct sta'
374 unresolved conflicts (see hg resolve, then hg rebase --continue)
374 unresolved conflicts (see hg resolve, then hg rebase --continue)
375 [1]
375 [1]
376 $ hg resolve --all -t internal:local
376 $ hg resolve --all -t internal:local
377 no unresolved files; you may continue your unfinished operation
377 no more unresolved files
378 $ hg rebase -c
378 $ hg rebase -c
379 saved backup bundle to $TESTTMP/a7/.hg/strip-backup/6215fafa5447-backup.hg (glob)
379 saved backup bundle to $TESTTMP/a7/.hg/strip-backup/6215fafa5447-backup.hg (glob)
380 $ hg log -G --template "{rev}:{phase} '{desc}' {branches}\n"
380 $ hg log -G --template "{rev}:{phase} '{desc}' {branches}\n"
@@ -104,7 +104,7 b' Solve the conflict and go on:'
104 $ echo 'conflict solved' > A
104 $ echo 'conflict solved' > A
105 $ rm A.orig
105 $ rm A.orig
106 $ hg resolve -m A
106 $ hg resolve -m A
107 no unresolved files; you may continue your unfinished operation
107 no more unresolved files
108
108
109 $ hg rebase --continue
109 $ hg rebase --continue
110 warning: new changesets detected on source branch, not stripping
110 warning: new changesets detected on source branch, not stripping
@@ -111,7 +111,7 b' already has one local mq patch'
111 [1]
111 [1]
112
112
113 $ HGMERGE=internal:local hg resolve --all
113 $ HGMERGE=internal:local hg resolve --all
114 no unresolved files; you may continue your unfinished operation
114 no more unresolved files
115
115
116 $ hg rebase --continue
116 $ hg rebase --continue
117 saved backup bundle to $TESTTMP/b/.hg/strip-backup/*-backup.hg (glob)
117 saved backup bundle to $TESTTMP/b/.hg/strip-backup/*-backup.hg (glob)
@@ -69,7 +69,7 b' Fix the 1st conflict:'
69
69
70 $ echo mq1r1 > f
70 $ echo mq1r1 > f
71 $ hg resolve -m f
71 $ hg resolve -m f
72 no unresolved files; you may continue your unfinished operation
72 no more unresolved files
73 $ hg rebase -c
73 $ hg rebase -c
74 merging f
74 merging f
75 warning: conflicts during merge.
75 warning: conflicts during merge.
@@ -81,7 +81,7 b' Fix the 2nd conflict:'
81
81
82 $ echo mq1r1mq2 > f
82 $ echo mq1r1mq2 > f
83 $ hg resolve -m f
83 $ hg resolve -m f
84 no unresolved files; you may continue your unfinished operation
84 no more unresolved files
85 $ hg rebase -c
85 $ hg rebase -c
86 saved backup bundle to $TESTTMP/a/.hg/strip-backup/*-backup.hg (glob)
86 saved backup bundle to $TESTTMP/a/.hg/strip-backup/*-backup.hg (glob)
87
87
@@ -454,7 +454,7 b' Test --tool parameter:'
454 U c2
454 U c2
455
455
456 $ hg resolve -m c2
456 $ hg resolve -m c2
457 no unresolved files; you may continue your unfinished operation
457 no more unresolved files
458 $ hg rebase -c --tool internal:fail
458 $ hg rebase -c --tool internal:fail
459 tool option will be ignored
459 tool option will be ignored
460 saved backup bundle to $TESTTMP/b3/.hg/strip-backup/*-backup.hg (glob)
460 saved backup bundle to $TESTTMP/b3/.hg/strip-backup/*-backup.hg (glob)
@@ -39,7 +39,7 b' resolve the failure'
39
39
40 $ echo resolved > file
40 $ echo resolved > file
41 $ hg resolve -m file
41 $ hg resolve -m file
42 no unresolved files; you may continue your unfinished operation
42 no more unresolved files
43 $ hg commit -m 'resolved'
43 $ hg commit -m 'resolved'
44
44
45 resolve -l should error since no merge in progress
45 resolve -l should error since no merge in progress
@@ -294,7 +294,7 b' attempt to continue'
294
294
295 $ hg revert -r . a/a
295 $ hg revert -r . a/a
296 $ hg resolve -m a/a
296 $ hg resolve -m a/a
297 no unresolved files; you may continue your unfinished operation
297 no more unresolved files
298
298
299 $ hg commit -m 'commit while unshelve in progress'
299 $ hg commit -m 'commit while unshelve in progress'
300 abort: unshelve already in progress
300 abort: unshelve already in progress
General Comments 0
You need to be logged in to leave comments. Login now