Changeset 4dc63f3bc15f…
Parent c405ae14d089…
by
Changes to 2 files · Browse files at 4dc63f3bc15f Showing diff from parent c405ae14d089 Diff from another changeset...
@@ -70,6 +70,7 @@
if args:
cmd, args = args[0], args[1:]
+ print table
aliases, i = cmdutil.findcmd(cmd, table, ui.config("ui", "strict"))
cmd = aliases[0]
c = list(i[1])
|
|
@@ -0,0 +1,48 @@ + #!/usr/bin/env python
+#
+# front-end script for TortoiseHg dialogs
+#
+# Copyright (C) 2008-9 Steve Borho <steve@borho.org>
+# Copyright (C) 2008 TK Soh <teekaysoh@gmail.com>
+#
+
+
+shortlicense = '''\
+Copyright (C) 2009 Free Software Foundation, Inc.
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+'''
+
+TORTOISEHG_PATH = '~/tools/tortoisehg-dev'
+
+import sys
+
+if not hasattr(sys, "frozen"):
+ import os
+ # check if hggtk is a symlink first
+ pfile = __file__
+ if pfile.endswith('.pyc'):
+ pfile = pfile[:-1]
+ thgpath = os.path.dirname(os.path.realpath(pfile))
+ testpath = os.path.join(thgpath, 'hggtk')
+ if os.path.isdir(testpath):
+ if thgpath not in sys.path:
+ sys.path.insert(0, thgpath)
+ else:
+ # try environment or hard-coded path
+ thgpath = os.environ.get('TORTOISEHG_PATH', TORTOISEHG_PATH)
+ thgpath = os.path.normpath(os.path.expanduser(thgpath))
+ if os.path.exists(thgpath) and thgpath not in sys.path:
+ sys.path.insert(0, thgpath)
+ # else assume tortoise is already in PYTHONPATH
+
+try:
+ import hggtk.hgtk
+except ImportError:
+ sys.stderr.write("abort: couldn't find hggtk libraries in [%s]\n" %
+ ' '.join(sys.path))
+ sys.stderr.write("(check your install and PYTHONPATH)\n")
+ sys.exit(-1)
+
+sys.exit(hggtk.hgtk.dispatch(sys.argv[1:]))
+
|
Loading...