Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 38125:f3776f70985e
patch: add debug message to show external patch tool invocation
Differential Revision: https://phab.mercurial-scm.org/D3619
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 19 May 2018 15:14:56 -0400 |
parents | e887381e2976 |
children | aac4be30e250 |
comparison
equal
deleted
inserted
replaced
38124:42476b8b738b | 38125:f3776f70985e |
---|---|
2111 cwd = repo.root | 2111 cwd = repo.root |
2112 if cwd: | 2112 if cwd: |
2113 args.append('-d %s' % procutil.shellquote(cwd)) | 2113 args.append('-d %s' % procutil.shellquote(cwd)) |
2114 cmd = ('%s %s -p%d < %s' | 2114 cmd = ('%s %s -p%d < %s' |
2115 % (patcher, ' '.join(args), strip, procutil.shellquote(patchname))) | 2115 % (patcher, ' '.join(args), strip, procutil.shellquote(patchname))) |
2116 ui.debug('Using external patch tool: %s\n' % cmd) | |
2116 fp = procutil.popen(cmd, 'rb') | 2117 fp = procutil.popen(cmd, 'rb') |
2117 try: | 2118 try: |
2118 for line in util.iterfile(fp): | 2119 for line in util.iterfile(fp): |
2119 line = line.rstrip() | 2120 line = line.rstrip() |
2120 ui.note(line + '\n') | 2121 ui.note(line + '\n') |