Show More
@@ -3008,11 +3008,10 b' def debugpickmergetool(ui, repo, *pats, ' | |||||
3008 | information, even with --debug. In such case, information above is |
|
3008 | information, even with --debug. In such case, information above is | |
3009 | useful to know why a merge tool is chosen. |
|
3009 | useful to know why a merge tool is chosen. | |
3010 | """ |
|
3010 | """ | |
3011 | opts = pycompat.byteskwargs(opts) |
|
|||
3012 | overrides = {} |
|
3011 | overrides = {} | |
3013 |
if opts[ |
|
3012 | if opts['tool']: | |
3014 |
overrides[(b'ui', b'forcemerge')] = opts[ |
|
3013 | overrides[(b'ui', b'forcemerge')] = opts['tool'] | |
3015 |
ui.notenoi18n(b'with --tool %r\n' % (pycompat.bytestr(opts[ |
|
3014 | ui.notenoi18n(b'with --tool %r\n' % (pycompat.bytestr(opts['tool']))) | |
3016 |
|
3015 | |||
3017 | with ui.configoverride(overrides, b'debugmergepatterns'): |
|
3016 | with ui.configoverride(overrides, b'debugmergepatterns'): | |
3018 | hgmerge = encoding.environ.get(b"HGMERGE") |
|
3017 | hgmerge = encoding.environ.get(b"HGMERGE") | |
@@ -3022,9 +3021,9 b' def debugpickmergetool(ui, repo, *pats, ' | |||||
3022 | if uimerge: |
|
3021 | if uimerge: | |
3023 | ui.notenoi18n(b'with ui.merge=%r\n' % (pycompat.bytestr(uimerge))) |
|
3022 | ui.notenoi18n(b'with ui.merge=%r\n' % (pycompat.bytestr(uimerge))) | |
3024 |
|
3023 | |||
3025 |
ctx = scmutil.revsingle(repo, opts.get( |
|
3024 | ctx = scmutil.revsingle(repo, opts.get('rev')) | |
3026 | m = scmutil.match(ctx, pats, opts) |
|
3025 | m = scmutil.match(ctx, pats, pycompat.byteskwargs(opts)) | |
3027 |
changedelete = opts[ |
|
3026 | changedelete = opts['changedelete'] | |
3028 | for path in ctx.walk(m): |
|
3027 | for path in ctx.walk(m): | |
3029 | fctx = ctx[path] |
|
3028 | fctx = ctx[path] | |
3030 | with ui.silent( |
|
3029 | with ui.silent( |
General Comments 0
You need to be logged in to leave comments.
Login now