changeset 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 a8a0cafcef79
children 7ccc9b8aca4c
files mercurial/util.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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.