Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

rename hgqt script to thg

Changeset adab918a8b6f

Parent 0404f701011f

by Adrian Buehlmann

Changes to one file · Browse files at adab918a8b6f Showing diff from parent 0404f701011f Diff from another changeset...

Change 1 of 1 Show Changes Only thg Stacked
renamed from hgqt
1
2
3
 
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
1
2
 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 #!/usr/bin/env python  # -# hgqt - front-end script for TortoiseHg dialogs +# thg - front-end script for TortoiseHg dialogs  #  # Copyright (C) 2008-2010 Steve Borho <steve@borho.org>  # Copyright (C) 2008 TK Soh <teekaysoh@gmail.com>  #  # This software may be used and distributed according to the terms of the  # GNU General Public License version 2, incorporated herein by reference.    import os  import sys    thgpath = os.path.dirname(os.path.realpath(__file__))  testpath = os.path.join(thgpath, 'tortoisehg')  if os.path.isdir(testpath) and thgpath not in sys.path:   sys.path.insert(0, thgpath)    if 'HGPATH' in os.environ:   hgpath = os.environ['HGPATH']   testpath = os.path.join(hgpath, 'mercurial')   if os.path.isdir(testpath) and hgpath not in sys.path:   sys.path.insert(0, hgpath)    try:   import tortoisehg.hgqt.run  except ImportError:   sys.stderr.write("abort: couldn't find hgtk libraries in [%s]\n" %   ';'.join(sys.path))   sys.stderr.write("(check your install and PYTHONPATH)\n")   sys.exit(-1)    sys.exit(tortoisehg.hgqt.run.dispatch(sys.argv[1:]))