util: mark platform-specific gethgcmd() as private
authorYuya Nishihara <yuya@tcha.org>
Sat, 24 Mar 2018 17:04:43 +0900
changeset 37115 49d6ba67c93f
parent 37114 a8a0cafcef79
child 37116 7ccc9b8aca4c
util: mark platform-specific gethgcmd() as private util.hgcmd() is the public interface for gethgcmd().
mercurial/util.py
--- 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.