thg issueshttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues2020-07-05T02:38:53Zhttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5410Crashing on commit2020-07-05T02:38:53ZBitbucket ImporterCrashing on commit*Created originally on Bitbucket by Anonymous*
I ran a commit over a large number of files. I am running on Windows 10, and I believe some of the files I had removed have paths larger than Windows allows. Below is the bug report:
...*Created originally on Bitbucket by Anonymous*
I ran a commit over a large number of files. I am running on Windows 10, and I believe some of the files I had removed have paths larger than Windows allows. Below is the bug report:
#!python
** Mercurial version (4.9.1). TortoiseHg version (4.9.1)
** Command: --nofork commit
** CWD: C:\repos\ampweb
** Encoding: cp1252
** Extensions loaded: hgk, highlight, largefiles, strip, mq, purge, eol, tortoisehg.util.configitems
** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehg\hgqt\run.pyo", line 70, in dispatch
File "tortoisehg\hgqt\run.pyo", line 273, in _runcatch
File "tortoisehg\hgqt\run.pyo", line 364, in runcommand
File "tortoisehg\hgqt\run.pyo", line 415, in _runcommand
File "tortoisehg\hgqt\run.pyo", line 369, in checkargs
File "tortoisehg\hgqt\run.pyo", line 363, in <lambda>
File "tortoisehg\hgqt\qtapp.pyo", line 459, in __call__
File "tortoisehg\hgqt\qtapp.pyo", line 523, in _createdialog
File "mercurial\util.pyo", line 1670, in check
File "tortoisehg\hgqt\run.pyo", line 582, in commit
File "tortoisehg\hgqt\commit.pyo", line 1487, in __init__
File "tortoisehg\hgqt\commit.pyo", line 475, in commitSetupButton
File "tortoisehg\hgqt\commit.pyo", line 391, in _getPreferredActionName
File "mercurial\context.pyo", line 453, in tags
File "mercurial\localrepo.pyo", line 1507, in nodetags
File "mercurial\util.pyo", line 1553, in __get__
File "mercurial\localrepo.pyo", line 1428, in _tagscache
File "hgext\mq.pyo", line 3560, in _findtags
File "mercurial\localrepo.pyo", line 1465, in _findtags
File "mercurial\tags.pyo", line 180, in findglobaltags
File "mercurial\tags.pyo", line 460, in _readtagcache
File "mercurial\tags.pyo", line 476, in _getfnodes
File "mercurial\tags.pyo", line 720, in getfnode
File "mercurial\context.pyo", line 267, in filenode
File "mercurial\context.pyo", line 259, in _fileinfo
File "mercurial\manifest.pyo", line 1829, in find
File "mercurial\manifest.pyo", line 1799, in read
File "mercurial\manifest.pyo", line 375, in __init__
ValueError: Manifest had an entry with a zero-length filename.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5408LookupError: 00manifest.i@c14ce15c06bb: no node2020-09-26T03:23:04ZBitbucket ImporterLookupError: 00manifest.i@c14ce15c06bb: no node*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.9). TortoiseHg version (4.9)
** Command: --nofork workbench
** CWD: C:\Devweb
** Encoding: cp1252
** Extensions loaded: strip, mq, ...*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.9). TortoiseHg version (4.9)
** Command: --nofork workbench
** CWD: C:\Devweb
** Encoding: cp1252
** Extensions loaded: strip, mq, convert, shelve, tortoisehg.util.configitems
** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehg\hgqt\manifestmodel.pyo", line 376, in fetchMore
File "tortoisehg\hgqt\manifestmodel.pyo", line 432, in _populateNodes
File "tortoisehg\hgqt\manifestmodel.pyo", line 605, in _populaterepo
File "tortoisehg\hgqt\manifestmodel.pyo", line 634, in _populatesubrepos
File "mercurial\util.pyo", line 1553, in __get__
File "mercurial\context.pyo", line 160, in substate
File "mercurial\subrepoutil.pyo", line 52, in state
File "mercurial\context.pyo", line 80, in __contains__
File "mercurial\util.pyo", line 1553, in __get__
File "mercurial\context.pyo", line 405, in _manifest
File "mercurial\context.pyo", line 409, in _manifestctx
File "mercurial\manifest.pyo", line 1672, in __getitem__
File "mercurial\manifest.pyo", line 1702, in get
File "mercurial\manifest.pyo", line 1552, in rev
File "mercurial\revlog.pyo", line 627, in rev
LookupError: 00manifest.i@c14ce15c06bb: no node
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5407Request: steps to generate self-contained macOS app bundle2020-07-05T02:18:34ZBitbucket ImporterRequest: steps to generate self-contained macOS app bundle*Created originally on Bitbucket by [samhathaway (Sam Hathaway)](https://bitbucket.org/%7Bee05252b-f1b8-4af7-9d8e-98b6cd7f7efa%7D/)*
The [MacOSX](https://bitbucket.org/tortoisehg/thg/wiki/developers/MacOSX) wiki page discusses how to bu...*Created originally on Bitbucket by [samhathaway (Sam Hathaway)](https://bitbucket.org/%7Bee05252b-f1b8-4af7-9d8e-98b6cd7f7efa%7D/)*
The [MacOSX](https://bitbucket.org/tortoisehg/thg/wiki/developers/MacOSX) wiki page discusses how to build TortoiseHg on macOS, but the instructions for how to generate an app bundle suggest using the deprecated [thg-mac-app](https://bitbucket.org/skrysmanski/thg-mac-app) wrapper, which does not generate a self-contained bundle and also has some usability issues.
[Issue #975](https://bitbucket.org/tortoisehg/thg/issues/975) mentions that we now have a py2app target in `setup.py`, but there is no documentation about how to build a proper app bundle using the py2app method.
Basically I would like to know how Matt Harbison @{557058:126a4383-a5b5-49b8-ba9f-b828d71189ae} and Andre Rudlaff @{557058:75516c56-ace5-4753-bf58-3f8bb8e45d50} build the official DMGs. Especially since [they are a couple versions behind](https://bitbucket.org/tortoisehg/thg/issues/5334). :wink:
N.B.: I’m trying to untangle the py2app method myself but haven’t gotten very far yet.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5406ProgrammingError: unsupported changeid 'Haider Development' of type <type 'str'>2020-10-17T18:32:06ZBitbucket ImporterProgrammingError: unsupported changeid 'Haider Development' of type <type 'str'>*Created originally on Bitbucket by Anonymous*
#!python
** Mercurial version (4.7.1). TortoiseHg version (4.7.1)
** Command:
** CWD: C:\Windows\system32
** Encoding: cp1252
** Extensions loaded: tortoisehg.util.con...*Created originally on Bitbucket by Anonymous*
#!python
** Mercurial version (4.7.1). TortoiseHg version (4.7.1)
** Command:
** CWD: C:\Windows\system32
** Encoding: cp1252
** Extensions loaded: tortoisehg.util.configitems
** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-5.9.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehg\hgqt\commit.pyo", line 600, in mqPerformAction
File "tortoisehg\hgqt\commit.pyo", line 973, in commit
File "tortoisehg\hgqt\commit.pyo", line 572, in getBranchCommandLine
File "tortoisehg\hgqt\thgrepo.pyo", line 772, in __getitem__
File "mercurial\localrepo.pyo", line 856, in __getitem__
File "mercurial\context.pyo", line 439, in __init__
ProgrammingError: unsupported changeid 'Haider Development' of type <type 'str'>https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5404No 5.0 tag?2020-07-05T02:20:36ZBitbucket ImporterNo 5.0 tag?*Created originally on Bitbucket by [Mathiasdm (Mathias De Maré)](https://bitbucket.org/%7Bc0b8173c-c19f-46ba-a1f3-dad6c89ef974%7D/)*
Perhaps there is a good reason for it, but there is no 5.0 tag? So far, I was always building the most...*Created originally on Bitbucket by [Mathiasdm (Mathias De Maré)](https://bitbucket.org/%7Bc0b8173c-c19f-46ba-a1f3-dad6c89ef974%7D/)*
Perhaps there is a good reason for it, but there is no 5.0 tag? So far, I was always building the most recently tagged revision, but that’s a bit problematic \(with Mercurial 5.x not working with thg 4.9\).
I can change my approach, that’s fine for me, but I was just wondering if there might be a reason for not creating a 5.0 tag yet.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5403The latest x86/32bit installer link is broken2020-06-28T07:16:32ZBitbucket ImporterThe latest x86/32bit installer link is broken*Created originally on Bitbucket by [Russell Warren](https://bitbucket.org/%7B5e8ff0c5-ce8b-4c99-ae36-9bc70ededd3e%7D/)*
The link for the 32-bit installer in the home page is a dead link:
view-source:https://tortoisehg.bitbucket.io/
...*Created originally on Bitbucket by [Russell Warren](https://bitbucket.org/%7B5e8ff0c5-ce8b-4c99-ae36-9bc70ededd3e%7D/)*
The link for the 32-bit installer in the home page is a dead link:
view-source:https://tortoisehg.bitbucket.io/
It shows these two links:
```html
<div class="dlInnerWrapper">
<a class="dlButton" href="https://bitbucket.org/tortoisehg/files/downloads/tortoisehg-4.9.1-x86.msi">
<span>latest for Windows 32-bit</span>
</a>
<div>
<a href="https://bitbucket.org/tortoisehg/thg/wiki/ReleaseNotes">Release Notes</a>
<a id="altLink" href="https://bitbucket.org/tortoisehg/files/downloads/tortoisehg-4.9.1-x64.msi">64-bit Windows</a>
</div>
</div>
```
The main 64-bit one is fine. The 32-bit one is dead.
If this is because 32-bit builds are no longer supported, it should be removed from the home page.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5402mpatchError: patch cannot be decoded2020-10-11T06:07:48ZBitbucket ImportermpatchError: patch cannot be decoded*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (3.0.2). TortoiseHg version (3.0.2)
** Command:
** CWD: C:\DATA\LSD_LOCAL_HEJTMANEK
** Encoding: cp1250
** Extensions loaded:
**...*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (3.0.2). TortoiseHg version (3.0.2)
** Command:
** CWD: C:\DATA\LSD_LOCAL_HEJTMANEK
** Encoding: cp1250
** Extensions loaded:
** Python version: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.5 PyQt-4.10.3 QScintilla-2.7.2
Traceback (most recent call last):
File "tortoisehg\hgqt\thread.pyo", line 306, in run
File "tortoisehg\util\hglib.pyo", line 734, in dispatch
File "mercurial\dispatch.pyo", line 819, in _dispatch
File "mercurial\dispatch.pyo", line 599, in runcommand
File "mercurial\dispatch.pyo", line 910, in _runcommand
File "mercurial\dispatch.pyo", line 881, in checkargs
File "mercurial\dispatch.pyo", line 816, in <lambda>
File "mercurial\util.pyo", line 518, in check
File "mercurial\commands.pyo", line 4607, in pull
File "mercurial\localrepo.pyo", line 1708, in pull
File "mercurial\exchange.pyo", line 544, in pull
File "mercurial\exchange.pyo", line 632, in _pullchangeset
File "mercurial\changegroup.pyo", line 613, in addchangegroup
File "mercurial\revlog.pyo", line 1285, in addgroup
File "mercurial\changegroup.pyo", line 180, in deltachunk
File "mercurial\changegroup.pyo", line 145, in chunklength
File "mercurial\changegroup.pyo", line 19, in readexactly
File "mercurial\util.pyo", line 983, in read
File "mercurial\util.pyo", line 959, in splitbig
File "mercurial\changegroup.pyo", line 348, in generate
File "mercurial\changegroup.pyo", line 297, in group
File "mercurial\changegroup.pyo", line 327, in lookupcl
File "mercurial\changelog.pyo", line 284, in read
File "mercurial\revlog.pyo", line 1023, in revision
mpatchError: patch cannot be decoded
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/53974.9.1 version not working on windows 72020-07-05T02:21:35ZBitbucket Importer4.9.1 version not working on windows 7*Created originally on Bitbucket by Anonymous*
4.9.1 version of tortoise hg not working on windows 7*Created originally on Bitbucket by Anonymous*
4.9.1 version of tortoise hg not working on windows 7https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5394Evolve didn't show as an available extension on a new install2020-12-16T11:13:34ZBitbucket ImporterEvolve didn't show as an available extension on a new install*Created originally on Bitbucket by [robinz (Robin Zwirtz)](https://bitbucket.org/%7B6a9de046-afc6-4b96-8d11-f366978f925f%7D/)*
1. Downloaded and installed tortoisehg-4.9.1-x64.msi to a brand new Windows 10 laptop
2. File&gt;Settings&g...*Created originally on Bitbucket by [robinz (Robin Zwirtz)](https://bitbucket.org/%7B6a9de046-afc6-4b96-8d11-f366978f925f%7D/)*
1. Downloaded and installed tortoisehg-4.9.1-x64.msi to a brand new Windows 10 laptop
2. File>Settings>Extensions
3. Expected to see evolve as an available extension, but didn’t
4. Edited mecurial.ini and added it manually
5. Restarted tortoise
6. Now evolve is availablehttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5393same procedure as last time: new mercurial is out, no matching tortoisehg ava...2020-06-21T11:19:12ZBitbucket Importersame procedure as last time: new mercurial is out, no matching tortoisehg available*Created originally on Bitbucket by [Lance Corrimal](https://bitbucket.org/%7B7de3532a-885a-4df5-80e3-69f739addf0d%7D/)*
please release THG for mercurial 5.0.
thanks.*Created originally on Bitbucket by [Lance Corrimal](https://bitbucket.org/%7B7de3532a-885a-4df5-80e3-69f739addf0d%7D/)*
please release THG for mercurial 5.0.
thanks.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5385pull repository and2022-07-22T21:30:11ZBitbucket Importerpull repository and*Created originally on Bitbucket by [1191149398 (bill)](https://bitbucket.org/%7Bf76f02b1-7d85-49e5-8a7f-ad10f57d5efb%7D/)*
When pulling the main repository code, it is recommended to pull the subrepository code at the same time*Created originally on Bitbucket by [1191149398 (bill)](https://bitbucket.org/%7Bf76f02b1-7d85-49e5-8a7f-ad10f57d5efb%7D/)*
When pulling the main repository code, it is recommended to pull the subrepository code at the same timehttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5383Error opening an existing repo2020-07-05T02:24:54ZBitbucket ImporterError opening an existing repo*Created originally on Bitbucket by [silverwoodchuck47](https://bitbucket.org/%7B91a3c1bf-e7dc-4755-bf4d-674cbf95254c%7D/)*
```
#!python
** Mercurial version (4.6.1). TortoiseHg version (4.6.1)
** Command:
** CWD: C:\Progr...*Created originally on Bitbucket by [silverwoodchuck47](https://bitbucket.org/%7B91a3c1bf-e7dc-4755-bf4d-674cbf95254c%7D/)*
```
#!python
** Mercurial version (4.6.1). TortoiseHg version (4.6.1)
** Command:
** CWD: C:\Program Files\TortoiseHg
** Encoding: cp1252
** Extensions loaded: histedit, hggit, tortoisehg.util.configitems
** Python version: 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x86
** Qt-4.8.7 PyQt-4.11.4 QScintilla-2.9
Traceback (most recent call last):
File "tortoisehg\hgqt\repowidget.pyo", line 264, in _initView
File "tortoisehg\hgqt\repowidget.pyo", line 860, in _updateRepoViewForModel
File "tortoisehg\hgqt\repomodel.pyo", line 648, in defaultIndex
File "tortoisehg\hgqt\repomodel.pyo", line 665, in indexFromRev
File "tortoisehg\hgqt\repomodel.pyo", line 389, in _ensureBuilt
File "tortoisehg\hgqt\graph.pyo", line 955, in build_nodes
File "tortoisehg\hgqt\graph.pyo", line 632, in _iter_graphnodes
File "tortoisehg\hgqt\graph.pyo", line 820, in fromchangectx
File "tortoisehg\hgqt\thgrepo.pyo", line 1015, in thgmqappliedpatch
File "tortoisehg\hgqt\thgrepo.pyo", line 1007, in _thgmqpatchtags
File "mercurial\context.pyo", line 575, in tags
File "mercurial\localrepo.pyo", line 1021, in nodetags
File "mercurial\util.pyo", line 1437, in __get__
File "mercurial\localrepo.pyo", line 943, in _tagscache
File "hggit\hgrepo.pyo", line 53, in _findtags
File "hggit\git_handler.pyo", line 154, in remote_refs
File "hggit\git_handler.pyo", line 247, in load_remote_refs
File "mercurial\util.pyo", line 1437, in __get__
File "hggit\git_handler.pyo", line 168, in git
File "dulwich\repo.pyo", line 743, in __init__
NotGitRepository: No git repository was found at E:\repo1\.hg\git
```
Trying to open an existing repo, but is not in my repo list. My repo isn't a git repo--it's a mercurial repo.
Also, the dialog box recommends upgrading. Yes I would, if I only could, I surely would upgrade if a 32-bit version were available, but the link to get that 32-bit upgrade apparently has no power.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/53824.9.1 cannot amend non-head draft revision from GUI2020-06-21T11:19:00ZBitbucket Importer4.9.1 cannot amend non-head draft revision from GUI*Created originally on Bitbucket by [aayjaychan (Aay Jay Chan)](https://bitbucket.org/%7B21704066-1fc3-4cc8-9019-d769a5a93e5f%7D/)*
In previous versions, including 4.8.2 and 4.9, when evolve extension is enabled, "Amend current revision...*Created originally on Bitbucket by [aayjaychan (Aay Jay Chan)](https://bitbucket.org/%7B21704066-1fc3-4cc8-9019-d769a5a93e5f%7D/)*
In previous versions, including 4.8.2 and 4.9, when evolve extension is enabled, "Amend current revision" is enabled when the parent of current directory is a non-head draft revision. But with 4.9.1, the button is greyed out.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5381thg 4.9: can`t work with svn (git) subrepo2020-09-26T03:34:53ZBitbucket Importerthg 4.9: can`t work with svn (git) subrepo*Created originally on Bitbucket by [Alex Rayne (Александр Литягин)](https://bitbucket.org/%7Ba08cf82d-1da1-46f4-8019-7f030383d366%7D/)*
works on thg4.9 on win8.1, and looks that works with subrepo is broken now.
Steps to reproduce:
...*Created originally on Bitbucket by [Alex Rayne (Александр Литягин)](https://bitbucket.org/%7Ba08cf82d-1da1-46f4-8019-7f030383d366%7D/)*
works on thg4.9 on win8.1, and looks that works with subrepo is broken now.
Steps to reproduce:
1) establish folder of svn repo - lets it be `svnsrc`
2) add it to .hgsub:
```
echo svnrepo = [svn]<svp repo paph> >> .hgsub
```
3) try to commit this sub. and here hg reports
```
#!error
snv subrepos not allowed (see hg help config.subrepos )
```
4) try to enable svn repos in local (and even glogdl) mercurial settings - invoke workbench file/settings/syncronisation, and enable Subrepository Feature/Allow SVN subrepo
5) try commmit hgsub again, and nothing changehttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5379Cannot execute any comand from built-in console2023-08-14T05:14:14ZBitbucket ImporterCannot execute any comand from built-in console*Created originally on Bitbucket by [vitidev](https://bitbucket.org/%7B41327545-f5ee-4a7e-a64c-d9b2221c23fd%7D/)*
any command fail with error
Process failed to start: File not found
tortoise hg 4.9.1 (4.9.0 also). Win 10 x64 1709*Created originally on Bitbucket by [vitidev](https://bitbucket.org/%7B41327545-f5ee-4a7e-a64c-d9b2221c23fd%7D/)*
any command fail with error
Process failed to start: File not found
tortoise hg 4.9.1 (4.9.0 also). Win 10 x64 1709https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5378Download link on Bitbucket for 4.9.0 x862020-06-28T07:15:58ZBitbucket ImporterDownload link on Bitbucket for 4.9.0 x86*Created originally on Bitbucket by [blog2read (Blog Reader)](https://bitbucket.org/%7Bde7cf425-b5d6-4004-ae91-a76688772d2f%7D/)*
The download link on Bitbucket for TortoiseHG 4.9.0 x86
https://bitbucket.org/tortoisehg/files/download...*Created originally on Bitbucket by [blog2read (Blog Reader)](https://bitbucket.org/%7Bde7cf425-b5d6-4004-ae91-a76688772d2f%7D/)*
The download link on Bitbucket for TortoiseHG 4.9.0 x86
https://bitbucket.org/tortoisehg/files/downloads/tortoisehg-4.9.0-x86.msi
is broken. There is no such file.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5377TortoiseHG2020-07-05T02:29:47ZBitbucket ImporterTortoiseHG*Created originally on Bitbucket by [ITsupport2019EO (Valdrin Ramadani)](https://bitbucket.org/%7Bf8fb0038-9b43-4d64-9bd7-9b0ab7163df4%7D/)*
Hello,
im new with Tortoise and im having problems with my workbench, it dosent start anymor...*Created originally on Bitbucket by [ITsupport2019EO (Valdrin Ramadani)](https://bitbucket.org/%7Bf8fb0038-9b43-4d64-9bd7-9b0ab7163df4%7D/)*
Hello,
im new with Tortoise and im having problems with my workbench, it dosent start anymore.
please see attachment for more infomartion.
Thank you in Advance.
*Attachments:* [adsadsadsad](/uploads/1a6551c742990818694e30134c9622d8/adsadsadsad.PNG)[Tortoise_Erignisprotokoll_Fehler](/uploads/5ac019e98b0486cf74f92b469f62cbdf/Tortoise_Erignisprotokoll_Fehler.PNG)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5375Support full mercurial templates in changeset.link2020-06-21T11:18:51ZBitbucket ImporterSupport full mercurial templates in changeset.link*Created originally on Bitbucket by [muxator](https://bitbucket.org/%7Ba8e26999-b8c4-423e-aeaa-3a23b9a940a0%7D/)*
TortoiseHg can generate an hyperlink to an online version of a changeset via `changeset.link` in `hgrc`.
# Current situ...*Created originally on Bitbucket by [muxator](https://bitbucket.org/%7Ba8e26999-b8c4-423e-aeaa-3a23b9a940a0%7D/)*
TortoiseHg can generate an hyperlink to an online version of a changeset via `changeset.link` in `hgrc`.
# Current situation as of TortoiseHg 4.9
The "template string" uses a "mercurial template"-like syntax that accepts only two hardcoded template expressions:
- `{node|short}`: replaced by the 12 digit revision id (note that `{node}` on its own is currently unsupported)
- `{rev}` : replaced by the revision number
# Proposal
Allow use of complete [mercurial templates syntax](https://www.mercurial-scm.org/repo/hg/help/templates) in `changeset.link`, getting rid of the hardcoded solution.
# Benefit to TortoiseHg
It will be possible to generate the link extracting every possible information from a commit. For example, for repositories that are cloned via [hg-git](https://hg-git.github.io/), it will be possible to generate direct links to commits on GitHub or GitLab:
- GitHub: `https://github.com/torvalds/linux/commit/{gitnode}`
- GitLab: `https://gitlab.com/tortoisegit/tortoisegit/commit/{gitnode}`
# Where is the code?
The code depends on closing #5374 (for which a proposal has been submitted on the mailing list). On top of that, a short series will implement this feature (also sent to the mailing list for review).https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5374Link's href in rev panel are not escaped2020-06-21T11:18:50ZBitbucket ImporterLink's href in rev panel are not escaped*Created originally on Bitbucket by [muxator](https://bitbucket.org/%7Ba8e26999-b8c4-423e-aeaa-3a23b9a940a0%7D/)*
Setting a value in `changeset.link` in `hgrc` alllows TortoiseHg to generate an hyperlink to a webpage containing that com...*Created originally on Bitbucket by [muxator](https://bitbucket.org/%7Ba8e26999-b8c4-423e-aeaa-3a23b9a940a0%7D/)*
Setting a value in `changeset.link` in `hgrc` alllows TortoiseHg to generate an hyperlink to a webpage containing that commit.
But no validation or escaping is done on the value of `changeset.link`: it is simply embedded in the `href` of the generated link.
To seean example,set this in your hgrc:
```ini
changeset.link = https://www.google.com/">SOMETHING
```
The quote and the closing tag have the effect shown in the attached screenshot.
I am going to send a patch to the mailing list, since the fix is composed of many commits, and fixing this is preparatory work for a feature I wish to implement.
*Attachments:* [bug-thg](/uploads/25c2c61020d6b614d26fc824b1b4e632/bug-thg.png)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5371Error while hg status2022-11-30T15:26:37ZBitbucket ImporterError while hg status*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.7.1). TortoiseHg version (4.7.1)
** Command:
** CWD: /Users/apple
** Encoding: utf-8
** Extensions loaded: tortoisehg.util.configi...*Created originally on Bitbucket by Anonymous*
```
#!python
** Mercurial version (4.7.1). TortoiseHg version (4.7.1)
** Command:
** CWD: /Users/apple
** Encoding: utf-8
** Extensions loaded: tortoisehg.util.configitems
** Python version: 2.7.15 (default, Jun 26 2018, 23:08:04) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]
** System: Darwin Apples-MacBook-Pro.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
** Qt-5.9.6 PyQt-5.9.2 QScintilla-2.10.4
Traceback (most recent call last):
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/repowidget.py", line 892, in onRevisionSelected
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/revdetails.py", line 308, in onRevisionSelected
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/revdetails.py", line 320, in _setContextToFileList
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/manifestmodel.py", line 301, in setRawContext
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/manifestmodel.py", line 289, in setRev
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/manifestmodel.py", line 403, in _repopulateNodes
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/manifestmodel.py", line 431, in _populateNodes
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/manifestmodel.py", line 604, in _populaterepo
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/tortoisehg/hgqt/manifestmodel.py", line 634, in _populatesubrepos
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/util.py", line 1412, in __get__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/context.py", line 162, in substate
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/subrepoutil.py", line 52, in state
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/context.py", line 1300, in __contains__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/dirstate.py", line 253, in __getitem__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/dirstate.py", line 1246, in get
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/util.py", line 1412, in __get__
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/dirstate.py", line 1213, in _map
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/dirstate.py", line 1452, in read
File "/Applications/TortoiseHg.app/Contents/Resources/lib/python2.7/mercurial/util.py", line 1479, in wrapper
ValueError: overflow in dirstate
```