Mercurial > hg-stable
diff mercurial/util.py @ 14229:85fd8402cbc4
rename util.set_hgexecutable to _sethgexecutable
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 06 May 2011 15:13:46 +0200 |
parents | 116de1da2154 |
children | d51630301241 |
line wrap: on
line diff
--- a/mercurial/util.py Fri May 06 15:10:29 2011 +0200 +++ b/mercurial/util.py Fri May 06 15:13:46 2011 +0200 @@ -315,15 +315,15 @@ if _hgexecutable is None: hg = os.environ.get('HG') if hg: - set_hgexecutable(hg) + _sethgexecutable(hg) elif mainfrozen(): - set_hgexecutable(sys.executable) + _sethgexecutable(sys.executable) else: exe = find_exe('hg') or os.path.basename(sys.argv[0]) - set_hgexecutable(exe) + _sethgexecutable(exe) return _hgexecutable -def set_hgexecutable(path): +def _sethgexecutable(path): """set location of the 'hg' executable""" global _hgexecutable _hgexecutable = path