comparison mercurial/utils/procutil.py @ 43096:813aa8cc55d4

patchbomb: use procutil.shellquote() instead of shlex to escape email address This basically backs out 2cc453284d5c, and inserts procutil.shellquote() instead. I don't care about Windows compatibility here, but shlex.quote() can't handle byte strings on Python 3.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 02 Oct 2019 07:35:22 +0900
parents c59eb1560c44
children d783f945a701
comparison
equal deleted inserted replaced
43095:fb41ea2ea076 43096:813aa8cc55d4
75 shellquote = platform.shellquote 75 shellquote = platform.shellquote
76 shellsplit = platform.shellsplit 76 shellsplit = platform.shellsplit
77 spawndetached = platform.spawndetached 77 spawndetached = platform.spawndetached
78 sshargs = platform.sshargs 78 sshargs = platform.sshargs
79 testpid = platform.testpid 79 testpid = platform.testpid
80 quote = pycompat.shlexquote
81 80
82 try: 81 try:
83 setprocname = osutil.setprocname 82 setprocname = osutil.setprocname
84 except AttributeError: 83 except AttributeError:
85 pass 84 pass