Show More
@@ -4608,6 +4608,9 b' def resolve(ui, repo, *pats, **opts):' | |||||
4608 | hasconflictmarkers = [] |
|
4608 | hasconflictmarkers = [] | |
4609 | if mark: |
|
4609 | if mark: | |
4610 | markcheck = ui.config('commands', 'resolve.mark-check') |
|
4610 | markcheck = ui.config('commands', 'resolve.mark-check') | |
|
4611 | if markcheck not in ['warn', 'abort']: | |||
|
4612 | # Treat all invalid / unrecognized values as 'none'. | |||
|
4613 | markcheck = False | |||
4611 | for f in ms: |
|
4614 | for f in ms: | |
4612 | if not m(f): |
|
4615 | if not m(f): | |
4613 | continue |
|
4616 | continue |
@@ -194,7 +194,7 b" coreconfigitem('commands', 'resolve.conf" | |||||
194 | default=False, |
|
194 | default=False, | |
195 | ) |
|
195 | ) | |
196 | coreconfigitem('commands', 'resolve.mark-check', |
|
196 | coreconfigitem('commands', 'resolve.mark-check', | |
197 |
default= |
|
197 | default='none', | |
198 | ) |
|
198 | ) | |
199 | coreconfigitem('commands', 'show.aliasprefix', |
|
199 | coreconfigitem('commands', 'show.aliasprefix', | |
200 | default=list, |
|
200 | default=list, |
@@ -400,6 +400,7 b' Try with --all from the hint' | |||||
400 | $ hg resolve -l |
|
400 | $ hg resolve -l | |
401 | R file1 |
|
401 | R file1 | |
402 | R file2 |
|
402 | R file2 | |
|
403 | Test option value 'warn' | |||
403 | $ hg resolve --unmark |
|
404 | $ hg resolve --unmark | |
404 | $ hg resolve -l |
|
405 | $ hg resolve -l | |
405 | U file1 |
|
406 | U file1 | |
@@ -421,6 +422,26 b' If the file is already marked as resolve' | |||||
421 | $ hg resolve -l |
|
422 | $ hg resolve -l | |
422 | R file1 |
|
423 | R file1 | |
423 | R file2 |
|
424 | R file2 | |
|
425 | If the user passes an invalid value, we treat it as 'none'. | |||
|
426 | $ hg resolve --unmark | |||
|
427 | $ hg resolve -l | |||
|
428 | U file1 | |||
|
429 | U file2 | |||
|
430 | $ hg --config commands.resolve.mark-check=nope resolve -m | |||
|
431 | (no more unresolved files) | |||
|
432 | $ hg resolve -l | |||
|
433 | R file1 | |||
|
434 | R file2 | |||
|
435 | Test explicitly setting the otion to 'none' | |||
|
436 | $ hg resolve --unmark | |||
|
437 | $ hg resolve -l | |||
|
438 | U file1 | |||
|
439 | U file2 | |||
|
440 | $ hg --config commands.resolve.mark-check=none resolve -m | |||
|
441 | (no more unresolved files) | |||
|
442 | $ hg resolve -l | |||
|
443 | R file1 | |||
|
444 | R file2 | |||
424 |
|
445 | |||
425 | $ cd .. |
|
446 | $ cd .. | |
426 |
|
447 |
General Comments 0
You need to be logged in to leave comments.
Login now