changeset 22632:db15bb2d6323

util: move _hgexecutable a few lines, closer to where it is used
author Mads Kiilerich <madski@unity3d.com>
date Sun, 28 Sep 2014 16:57:06 +0200
parents d246eb9cabbc
children 92b54547ac5d
files mercurial/util.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.