diff -r 157f0e29eaa3 -r db61a18148a4 mercurial/commands.py --- a/mercurial/commands.py Fri Nov 09 10:47:24 2018 -0800 +++ b/mercurial/commands.py Sat Nov 10 12:07:26 2018 +0900 @@ -4959,7 +4959,7 @@ if hasconflictmarkers: ui.warn(_('warning: the following files still have conflict ' 'markers:\n ') + '\n '.join(hasconflictmarkers) + '\n') - if markcheck == 'abort' and not all: + if markcheck == 'abort' and not all and not pats: raise error.Abort(_('conflict markers detected'), hint=_('use --all to mark anyway'))