Mercurial > public > mercurial-scm > hg
comparison mercurial/posix.py @ 44867:8e8fd938ca07
cleanup: eliminate procutil.quotecommand()
After some compatibility code was removed, the function was the identity
function on all platforms.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 29 May 2020 03:56:07 +0200 |
parents | a0ec05d93c8e |
children | 755214a84b9d |
comparison
equal
deleted
inserted
replaced
44866:5258bffdb1d6 | 44867:8e8fd938ca07 |
---|---|
536 def shellsplit(s): | 536 def shellsplit(s): |
537 """Parse a command string in POSIX shell way (best-effort)""" | 537 """Parse a command string in POSIX shell way (best-effort)""" |
538 return pycompat.shlexsplit(s, posix=True) | 538 return pycompat.shlexsplit(s, posix=True) |
539 | 539 |
540 | 540 |
541 def quotecommand(cmd): | |
542 return cmd | |
543 | |
544 | |
545 def testpid(pid): | 541 def testpid(pid): |
546 '''return False if pid dead, True if running or not sure''' | 542 '''return False if pid dead, True if running or not sure''' |
547 if pycompat.sysplatform == b'OpenVMS': | 543 if pycompat.sysplatform == b'OpenVMS': |
548 return True | 544 return True |
549 try: | 545 try: |