Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/util.py @ 36445:0cb09c322647
util: factor out shellsplit() function
It turned out to be more than the simple posix=True|False flag, so let's
introduce a platform function. I also made it py3 ready.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 21 Feb 2018 22:20:27 +0900 |
parents | 01e29e885600 |
children | d26b0bedfaa4 |
comparison
equal
deleted
inserted
replaced
36444:44c4a38bf563 | 36445:0cb09c322647 |
---|---|
145 samestat = platform.samestat | 145 samestat = platform.samestat |
146 setbinary = platform.setbinary | 146 setbinary = platform.setbinary |
147 setflags = platform.setflags | 147 setflags = platform.setflags |
148 setsignalhandler = platform.setsignalhandler | 148 setsignalhandler = platform.setsignalhandler |
149 shellquote = platform.shellquote | 149 shellquote = platform.shellquote |
150 shellsplit = platform.shellsplit | |
150 spawndetached = platform.spawndetached | 151 spawndetached = platform.spawndetached |
151 split = platform.split | 152 split = platform.split |
152 sshargs = platform.sshargs | 153 sshargs = platform.sshargs |
153 statfiles = getattr(osutil, 'statfiles', platform.statfiles) | 154 statfiles = getattr(osutil, 'statfiles', platform.statfiles) |
154 statisexec = platform.statisexec | 155 statisexec = platform.statisexec |