Changeset f26f3d33300a…
Parent 43260dc7b785…
by
Changes to 2 files · Browse files at f26f3d33300a Showing diff from parent 43260dc7b785 Diff from another changeset...
@@ -4,6 +4,7 @@ * Pull latest translations from Launchpad
* set revision number in doc/source/conf.py
* tag stable branch of repository, push
+* update url in qtlib.openhelpcontents() (major release only)
* build pdf hgbook, check into thg-winbuild (major release only)
* build release installer
* commit extension versions, tag, push thg-winbuild
|
@@ -37,6 +37,19 @@ atexit.register(cleanup)
return tmproot
+def openhelpcontents(url):
+ 'Open online help, use local CHM file if available'
+ if not url.startswith('http'):
+ fullurl = 'http://tortoisehg.org/manual/2.0/' + url
+ # Use local CHM file if it can be found
+ if os.name == 'nt' and paths.bin_path:
+ chm = os.path.join(paths.bin_path, 'doc', 'TortoiseHg.chm')
+ if os.path.exists(chm):
+ fullurl = (r'mk:@MSITStore:%s::/' % chm) + url
+ QDesktopServices.openUrl(QUrl.fromLocalFile(fullurl))
+ return
+ QDesktopServices.openUrl(QUrl(fullurl))
+
# _styles maps from ui labels to effects
# _effects maps an effect to font style properties. We define a limited
# set of _effects, since we convert color effect names to font style
|
Loading...