Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 37118:49d6ba67c93f
util: mark platform-specific gethgcmd() as private
util.hgcmd() is the public interface for gethgcmd().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 17:04:43 +0900 |
parents | 6ca5f825a0ca |
children | 7ccc9b8aca4c |
line wrap: on
line diff
--- a/mercurial/util.py Sat Mar 24 22:10:58 2018 -0400 +++ b/mercurial/util.py Sat Mar 24 17:04:43 2018 +0900 @@ -114,7 +114,7 @@ findexe = platform.findexe getfsmountpoint = platform.getfsmountpoint getfstype = platform.getfstype -gethgcmd = platform.gethgcmd +_gethgcmd = platform.gethgcmd getuser = platform.getuser getpid = os.getpid groupmembers = platform.groupmembers @@ -2728,7 +2728,7 @@ return [encoding.environ['EXECUTABLEPATH']] else: return [pycompat.sysexecutable] - return gethgcmd() + return _gethgcmd() def rundetached(args, condfn): """Execute the argument list in a detached process.