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.## On Windows, this script is mostly used to build a stand-alone# TortoiseHg package. See installer\build.txt for details. The other# use is to report the current version of the TortoiseHg source.importtimeimportsysimportosfromdistutils.coreimportsetupdefsetup_windows(): # Specific definitios for Windows NT-alike installations
_scripts = []
_data_files = []
- _packages = ['hggtk', 'thgutil']
+ _packages = ['hggtk', 'hggtk.logview', 'thgutil', 'thgutil.iniparse']
extra = {}
+ hgextmods = [] try: import py2exe
except ImportError:
if'--version'notinsys.argv: raise
if 'py2exe' in sys.argv:
+ # FIXME: quick hack to include installed hg extensions in py2exe binary+ import hgext+ hgextdir = os.path.dirname(hgext.__file__)+ hgextmods = set(["hgext." + os.path.splitext(f)[0]+ for f in os.listdir(hgextdir)]) _data_files = [(root, [os.path.join(root, file_) for file_ in files])
for root, dirs, files in os.walk('icons')]
# add library files to support PyGtk-based dialogs/windows
includes = ['dbhash', 'pango', 'atk', 'pangocairo', 'cairo', 'gobject']
+ # Manually include other modules py2exe can't find by itself.+ if 'hgext.highlight' in hgextmods:+ includes += ['pygments.*', 'pygments.lexers.*', 'pygments.formatters.*',+ 'pygments.filters.*', 'pygments.styles.*']+ if 'hgext.patchbomb' in hgextmods:+ includes += ['email.*', 'email.mime.*']+ extra['options'] = {
"py2exe" : {
# This is one way to ensure that hgtk can find its icons when
# running in a py2exe environment. It also makes debugging easier."skip_archive":1,# 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" : includes,
+ "includes" : includes + list(hgextmods),
"optimize" : 1
}
}
return_scripts,_packages,_data_files,extradefsetup_posix(): # Specific definitios for Posix installations
_extra = {}
_scripts = ['hgtk']
- _packages = ['hggtk', 'thgutil']
+ _packages = ['hggtk', 'hggtk.logview', 'thgutil', 'thgutil.iniparse']
_data_files = [(os.path.join('share/pixmaps/tortoisehg', root),
[os.path.join(root, file_) for file_ in files])
for root, dirs, files in os.walk('icons')]
_data_files+=[('lib/nautilus/extensions-2.0/python',['contrib/nautilus-thg.py'])]return_scripts,_packages,_data_files,_extraifos.name=="nt":(scripts,packages,data_files,extra)=setup_windows()desc='Windows shell extension for Mercurial VCS'else:(scripts,packages,data_files,extra)=setup_posix()desc='TortoiseHg dialogs for Mercurial VCS'try:l=os.popen('hg -R . 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"verfile=os.path.join("thgutil","__version__.py")ifversion!='unknown'ornotos.path.exists(verfile):f=file(verfile,"w")f.write('# this file is autogenerated by setup.py\n')f.write('version = "%s"\n'%version)f.close()else:importthgutil.__version__version=thgutil.__version__.versionsetup(name="tortoisehg",version=version,author='TK Soh',author_email='teekaysoh@gmail.com',url='http://bitbucket.org/tortoisehg/stable/',description=desc,license='GNU GPL2',scripts=scripts,packages=packages,data_files=data_files,**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.