Mercurial and Git clients can push and pull from this alias URL to interact with this repository. You can change to which repository an alias points by going to the Aliases link on the project page.
# setup.py# A distutils setup script to install TortoiseHg in Windows and Posix# environments. In Windows, it will register TortoiseHG COM server.## For Windows:# To build stand-alone package, use 'python setup.py py2exe' then use# InnoSetup to build the installer. By default, the installer will be# created as dist\Output\setup.exe.#importtimeimportsysimportosfromdistutils.coreimportsetupdefsetup_windows():# Specific definitios for Windows NT-alike installations_scripts=[]_data_files=[]_packages=['hggtk','hggtk.vis','hggtk.iniparse','tortoise']opts={}extra={}hgextmods=[]# ModuleFinder can't handle runtime changes to __path__, # but win32com uses themtry:# if this doesn't work, try import modulefinderimportpy2exe.mfasmodulefinder import win32com
for p in win32com.__path__[1:]:
modulefinder.AddPackagePath("win32com", p)
- for extra in ["win32com.shell"]: #,"win32com.mapi"
- __import__(extra)
- m = sys.modules[extra]
+ for e in ["win32com.shell"]: #,"win32com.mapi"
+ __import__(e)
+ m = sys.modules[e]
for p in m.__path__[1:]:
- modulefinder.AddPackagePath(extra, p)
+ modulefinder.AddPackagePath(e, p)
except ImportError:
# no build path setup, no worries.
pass
try:importpy2exeexceptImportError:if'--version'notinsys.argv:raiseif'py2exe'insys.argv:# FIXME: quick hack to include installed hg extensions in py2exe binaryimporthgexthgextdir=os.path.dirname(hgext.__file__)hgextmods=set(["hgext."+os.path.splitext(f)[0]forfinos.listdir(hgextdir)])_data_files=[(root,[os.path.join(root,file_)forfile_infiles])forroot,dirs,filesinos.walk('icons')]extra['windows']=[{"script":"hgproc.py","icon_resources":[(1,"icons/tortoise/hg.ico")]},{"script":"tracelog.py","icon_resources":[(1,"icons/tortoise/python.ico")]}]extra['com_server']=["tortoisehg"]extra['console']=["contrib/hg","contrib/hgtk"]opts={"py2exe":{# Don't pull in all this MFC stuff used by the makepy UI."excludes":"pywin,pywin.dialogs,pywin.dialogs.list",# add library files to support PyGtk-based dialogs/windows# Note:# after py2exe build, copy GTK's etc and lib directories into# the dist directory created by py2exe.# also needed is the GTK's share/themes (as dist/share/themes), # for dialogs to display in MS-Windows XP theme."includes":"dbhash,pango,atk,pangocairo,cairo,gobject,"+ \
",".join(hgextmods),}}return_scripts,_packages,_data_files,opts,extradefsetup_posix():# Specific definitios for Posix installations_opts={}_extra={}_scripts=['contrib/hgtk','hgproc.py']_packages=['hggtk','hggtk.vis','hggtk.iniparse','tortoise']_data_files=[(os.path.join('share/pixmaps/tortoisehg',root),[os.path.join(root,file_)forfile_infiles])forroot,dirs,filesinos.walk('icons')]_data_files+=[('lib/nautilus/extensions-2.0/python',['contrib/nautilus-thg.py'])]return_scripts,_packages,_data_files,_opts,_extraifos.name=="nt":(scripts,packages,data_files,opts,extra)=setup_windows()else:(scripts,packages,data_files,opts,extra)=setup_posix()# specify version string, otherwise 'hg identify' will be used:version=''try:l=os.popen('hg id -it').read().split()whilelen(l)>1andl[-1][0].isalpha():# remove non-numbered tagsl.pop()version=landl[-1]or'unknown'# latest tag or revision numberifversion.endswith('+'):version+=time.strftime('%Y%m%d')exceptOSError:version="unknown"f=file(os.path.join("tortoise","__version__.py"),"w")f.write('# this file is autogenerated by setup.py\n')f.write('version = "%s"\n'%version)f.close()setup(name="tortoisehg",version=version,author='TK Soh',author_email='teekaysoh@gmail.com',url='http://bitbucket.org/tortoisehg/stable/wiki/Home',description='Windows shell extension for Mercurial VCS',license='GNU GPL2',scripts=scripts,packages=packages,data_files=data_files,options=opts,# in Linux an empty 'options' gives a warning.**extra)
Attach a Trello Card
Add a tag
Your session has expired
You are no longer logged in. Please log in and try your request again.
Filter RSS Feed
This RSS feed URL allows you to see the contents of your current filter using any feed reader.
This link includes a special authentication token. If you share the URL with anyone else, they can see this RSS feed's activity. You can disable these tokens when needed.
Your current filter is unsaved; changing it won't affect this RSS feed.