Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0.1, 1.0.2, and 1.0.3

stable bugreport: report windows version and architecture

Changeset b4653fb0b02f

Parent ab8b0b1d2df6

by Adrian Buehlmann

Changes to one file · Browse files at b4653fb0b02f Showing diff from parent ab8b0b1d2df6 Diff from another changeset...

 
5
6
7
8
 
9
10
11
 
63
64
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
67
68
 
5
6
7
 
8
9
10
11
 
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@@ -5,7 +5,7 @@
 # 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 os, sys  import gtk    from mercurial import extensions @@ -63,6 +63,20 @@
  text += '** CWD: %s\n' % os.getcwd()   extlist = [x[0] for x in extensions.extensions()]   text += '** Extensions loaded: %s\n' % ', '.join(extlist) + if os.name == 'nt': + text += '** sys.getwindowsversion(): %s\n' % str(sys.getwindowsversion()) + arch = 'unknown (failed to import win32api)' + try: + import win32api + arch = 'unknown' + archval = win32api.GetNativeSystemInfo()[0] + if archval == 9: + arch = 'x64' + elif archval == 0: + arch = 'x86' + except ImportError: + pass + text += '** Processor architecture: %s\n' % arch   text += self.opts['error']   text += '\n}}}'   self.__error_text__ = text