comparison mercurial/windows.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 5258bffdb1d6
children aea246bc04bd
comparison
equal deleted inserted replaced
44866:5258bffdb1d6 44867:8e8fd938ca07
472 def shellsplit(s): 472 def shellsplit(s):
473 """Parse a command string in cmd.exe way (best-effort)""" 473 """Parse a command string in cmd.exe way (best-effort)"""
474 return pycompat.maplist(_unquote, pycompat.shlexsplit(s, posix=False)) 474 return pycompat.maplist(_unquote, pycompat.shlexsplit(s, posix=False))
475 475
476 476
477 def quotecommand(cmd):
478 """Build a command string suitable for os.popen* calls."""
479 return cmd
480
481
482 # if you change this stub into a real check, please try to implement the 477 # if you change this stub into a real check, please try to implement the
483 # username and groupname functions above, too. 478 # username and groupname functions above, too.
484 def isowner(st): 479 def isowner(st):
485 return True 480 return True
486 481