# HG changeset patch # User Mads Kiilerich # Date 2014-09-28 14:57:06 # Node ID db15bb2d632392558988c3ae0250e359f0380691 # Parent d246eb9cabbc3f7b5d129e94380d3c125d11bde1 util: move _hgexecutable a few lines, closer to where it is used diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -450,8 +450,6 @@ def pathto(root, n1, n2): b.reverse() return os.sep.join((['..'] * len(a)) + b) or '.' -_hgexecutable = None - def mainfrozen(): """return True if we are a frozen executable. @@ -462,6 +460,8 @@ def mainfrozen(): safehasattr(sys, "importers") or # old py2exe imp.is_frozen("__main__")) # tools/freeze +_hgexecutable = None + def hgexecutable(): """return location of the 'hg' executable.