Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 37115: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 |
comparison
equal
deleted
inserted
replaced
37114:a8a0cafcef79 | 37115:49d6ba67c93f |
---|---|
112 expandglobs = platform.expandglobs | 112 expandglobs = platform.expandglobs |
113 explainexit = platform.explainexit | 113 explainexit = platform.explainexit |
114 findexe = platform.findexe | 114 findexe = platform.findexe |
115 getfsmountpoint = platform.getfsmountpoint | 115 getfsmountpoint = platform.getfsmountpoint |
116 getfstype = platform.getfstype | 116 getfstype = platform.getfstype |
117 gethgcmd = platform.gethgcmd | 117 _gethgcmd = platform.gethgcmd |
118 getuser = platform.getuser | 118 getuser = platform.getuser |
119 getpid = os.getpid | 119 getpid = os.getpid |
120 groupmembers = platform.groupmembers | 120 groupmembers = platform.groupmembers |
121 groupname = platform.groupname | 121 groupname = platform.groupname |
122 hidewindow = platform.hidewindow | 122 hidewindow = platform.hidewindow |
2726 if getattr(sys, 'frozen', None) == 'macosx_app': | 2726 if getattr(sys, 'frozen', None) == 'macosx_app': |
2727 # Env variable set by py2app | 2727 # Env variable set by py2app |
2728 return [encoding.environ['EXECUTABLEPATH']] | 2728 return [encoding.environ['EXECUTABLEPATH']] |
2729 else: | 2729 else: |
2730 return [pycompat.sysexecutable] | 2730 return [pycompat.sysexecutable] |
2731 return gethgcmd() | 2731 return _gethgcmd() |
2732 | 2732 |
2733 def rundetached(args, condfn): | 2733 def rundetached(args, condfn): |
2734 """Execute the argument list in a detached process. | 2734 """Execute the argument list in a detached process. |
2735 | 2735 |
2736 condfn is a callable which is called repeatedly and should return | 2736 condfn is a callable which is called repeatedly and should return |