Commits

Anonymous committed 6967524

contrib: add hg script and build hg.exe with py2exe

Comments (0)

Files changed (2)

+#!/usr/bin/env python
+#
+# mercurial - scalable distributed SCM
+#
+# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
+#
+# This software may be used and distributed according to the terms
+# of the GNU General Public License, incorporated herein by reference.
+
+# enable importing on demand to reduce startup time
+from mercurial import demandimport; demandimport.enable()
+
+import mercurial.dispatch
+mercurial.dispatch.run()
     extra['windows'] = [{"script":"hggtk/tracelog.py",
                         "icon_resources": [(1, "icons/tortoise/python.ico")]}]
     extra['com_server'] = ["tortoisehg"]
-    extra['console'] = ["hg", "hgproc.py", "hgutils/simplemerge"]
+    extra['console'] = ["contrib/hg", "hgproc.py", "hgutils/simplemerge"]
 
 elif 'bdist_msi' in sys.argv or 'bdist_wininst' in sys.argv:
     # C:\Python25\share\tortoisehg\icons\...