# HG changeset patch # User Mads Kiilerich # Date 1411916226 -7200 # Node ID db15bb2d632392558988c3ae0250e359f0380691 # Parent d246eb9cabbc3f7b5d129e94380d3c125d11bde1 util: move _hgexecutable a few lines, closer to where it is used diff -r d246eb9cabbc -r db15bb2d6323 mercurial/util.py --- a/mercurial/util.py Sun Sep 28 13:27:40 2014 +0200 +++ b/mercurial/util.py Sun Sep 28 16:57:06 2014 +0200 @@ -450,8 +450,6 @@ 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 @@ safehasattr(sys, "importers") or # old py2exe imp.is_frozen("__main__")) # tools/freeze +_hgexecutable = None + def hgexecutable(): """return location of the 'hg' executable.