# HG changeset patch # User Christophe de Vienne # Date 1416666661 -3600 # Node ID 729e7c661a88c5694119689a93d6bcf3202a0d49 # Parent 66463ec963b6b624cb41e7a65d835c4416e355d8# Parent fc97fabaf28d1774174171ce347de791e8af0a94 Merged in ChrisNielsen/hg-review (pull request #7) Update windows contrib script for current TortoiseHg version (2.6.2). diff -r 66463ec963b6 -r 729e7c661a88 contrib/windows/update_tortoisehg_libs.py --- a/contrib/windows/update_tortoisehg_libs.py Fri Nov 21 19:01:07 2014 +0100 +++ b/contrib/windows/update_tortoisehg_libs.py Sat Nov 22 15:31:01 2014 +0100 @@ -1,23 +1,23 @@ # this script will update tortoisehgs python libs to include the missing libs that hg-review needs -# (tested with Python 2.6 and Tortoisehg 1.1) +# (tested with Python 2.7.3 and Tortoisehg 2.6.2) # # Daniel Newton # -# Version 1.0 (2010/07/28) +# Version 1.1 (2013/01/18) import sys import os # check python version -if sys.version[:3] != '2.6': - sys.exit('Need Python 2.6') +if sys.version[:3] != '2.7': + sys.exit('Need Python 2.7') # check for windows if sys.platform != 'win32': sys.exit('Script only works on win32') # list of libs to add -libs = ('Cookie.py', 'decimal.py', 'htmlentitydefs.py', 'code.py', 'codeop.py', 'compiler', 'numbers.py', 'symbol.py', 'uuid.py') +libs = ('Cookie.py', 'htmlentitydefs.py', 'code.py', 'codeop.py', 'compiler', 'symbol.py', 'uuid.py') # find python lib path pylib_path = os.path.join(os.path.dirname(sys.executable), 'lib')