thg issueshttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues2023-05-05T11:39:55Zhttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5786Windows TortoiseHg taskbar icon is missing2023-05-05T11:39:55ZGreg SmithWindows TortoiseHg taskbar icon is missing![image](/uploads/88fcea4196d914b36e7f77036f20e80e/image.png)
There appears to be no task-bar icon associated with TortoiseHg. The right-most icon in the taskbar image (above) is TortoiseHg, which is showing the generic 'no icon' image....![image](/uploads/88fcea4196d914b36e7f77036f20e80e/image.png)
There appears to be no task-bar icon associated with TortoiseHg. The right-most icon in the taskbar image (above) is TortoiseHg, which is showing the generic 'no icon' image. I know this is trivial, but it is disconcerting... If I right-click on the taskbar icon and open the properties, the Change Icon... option is grayed out. I am running 6.1.1 (though I think this was the same in 6.1).https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5785THGW memory usage grows to > 230 MB2022-04-08T22:55:11ZDavid HollmanTHGW memory usage grows to > 230 MBI've had THGW open for a while (probably not restarted it for weeks) and noticed that its memory use had gotten to be pretty huge:
![image](/uploads/24648996f313330300bd1ea90509e5d3/image.png)
But after just closing & restarting it, it...I've had THGW open for a while (probably not restarted it for weeks) and noticed that its memory use had gotten to be pretty huge:
![image](/uploads/24648996f313330300bd1ea90509e5d3/image.png)
But after just closing & restarting it, it uses about 1/2 as much:
![image](/uploads/26a9531b286a71c8e015c864045d7cdf/image.png)
(as reported by Windows 10 Task Manager).
Even still, the second # is pretty large.
I don't know if this is a "bug" per se but does seem to be something in need of optimization if possible. The only other things using that much memory are Visual Studio, Chrome (with a bazillion tabs) etc., so anecdotally this is a real outlier.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5784[Feature] Add an option to push bookmarks2022-04-05T23:48:48ZDmitry Sokolov[Feature] Add an option to push bookmarksMercurial Bookmarks are not pushed to a server implicitly. To push bookmarks you need to do it explicitly like (https://stackoverflow.com/a/57086064/2267114):
```bash
hg push $(hg bookmarks -T "-B {bookmark} ")
```
It would be good to h...Mercurial Bookmarks are not pushed to a server implicitly. To push bookmarks you need to do it explicitly like (https://stackoverflow.com/a/57086064/2267114):
```bash
hg push $(hg bookmarks -T "-B {bookmark} ")
```
It would be good to have an option/button/etc. to do it from thg.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5782First commit not selected after changing branch (or filter)2022-03-29T22:53:24ZAaron LawrenceFirst commit not selected after changing branch (or filter)When I switch to a branch, the first commit is visually selected in the list but the details aren't shown in the commit pane. It remains on the previous selected commit, even if on another branch.
The workaround is to select another comm...When I switch to a branch, the first commit is visually selected in the list but the details aren't shown in the commit pane. It remains on the previous selected commit, even if on another branch.
The workaround is to select another commit and then back to the first one.
But, this is not possible if only one commit matches the branch/filter. Then there is no way to actually select the single listed commit.
THG 5.9.1https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5776Settings text editor has variable width font on py32023-02-22T15:36:49ZMatt HarbisonSettings text editor has variable width font on py3This was seen on Windows; I didn't check macOS.This was seen on Windows; I didn't check macOS.Windows py3 releasehttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5768Error when editing history (changing message only)2022-01-27T15:53:53ZBarbara WinklerError when editing history (changing message only) #!python
** Mercurial version (2.5.4). TortoiseHg version (2.7.2)
** Command: --nofork workbench
** CWD: C:\Users\barbara\OneDrive\Desktop
** Encoding: cp1252
** Extensions loaded: mercurial_keyring, histedit, re... #!python
** Mercurial version (2.5.4). TortoiseHg version (2.7.2)
** Command: --nofork workbench
** CWD: C:\Users\barbara\OneDrive\Desktop
** Encoding: cp1252
** Extensions loaded: mercurial_keyring, histedit, rebase, convert
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-4.8.4 PyQt-4.9.6 QScintilla-2.7
Traceback (most recent call last):
File "tortoisehg\hgqt\commit.pyo", line 577, in repositoryChanged
File "tortoisehg\hgqt\commit.pyo", line 598, in refresh
File "tortoisehg\hgqt\thgrepo.pyo", line 631, in thgmqappliedpatch
File "tortoisehg\hgqt\thgrepo.pyo", line 623, in _thgmqpatchtags
File "mercurial\context.pyo", line 205, in tags
File "mercurial\localrepo.pyo", line 616, in nodetags
File "mercurial\util.pyo", line 246, in __get__
File "mercurial\localrepo.pyo", line 539, in _tagscache
File "mercurial\localrepo.pyo", line 576, in _findtags
File "mercurial\tags.pyo", line 30, in findglobaltags
File "mercurial\tags.pyo", line 247, in _readtagcache
File "mercurial\context.pyo", line 308, in filenode
File "mercurial\context.pyo", line 296, in _fileinfo
File "mercurial\context.pyo", line 195, in files
File "mercurial\util.pyo", line 246, in __get__
File "mercurial\context.pyo", line 146, in _changeset
File "mercurial\changelog.pyo", line 282, in read
File "mercurial\revlog.pyo", line 931, in revision
File "mercurial\revlog.pyo", line 940, in _checkhash
RevlogError: integrity check failed on 00changelog.i:1170https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5764Reopen #5369 or new issue?2022-01-11T04:56:09ZThorsten KampeReopen #5369 or new issue?I've added a comment to #5369 - which was closed one and a half years ago. I'm not sure if my comment will be read because the owner is the generic account "Bitbucket Importer".
Please advise.I've added a comment to #5369 - which was closed one and a half years ago. I'm not sure if my comment will be read because the owner is the generic account "Bitbucket Importer".
Please advise.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5758Wrong revision suggested in Update... dialog2022-07-24T03:25:27ZFernando NajeraWrong revision suggested in Update... dialogIn our daily usage of TortoiseHG (5.9.2) we are **often** getting a wrong revision suggested in the "Update..." dialog.
Since this dialog is one of the basic dialogs of TortoiseHG, _for us it is **critical** to be able to trust this dia...In our daily usage of TortoiseHG (5.9.2) we are **often** getting a wrong revision suggested in the "Update..." dialog.
Since this dialog is one of the basic dialogs of TortoiseHG, _for us it is **critical** to be able to trust this dialog_.
Note that this is probably what #5396 reported over two years ago, but there was no repro there.
We start with a very simple repository (see end of this ticket):
* two branches "b1" and "b2" coming from "default",
* the contents of the revisions are not important,
* the Filter Toolbar is opened, and the branch combobox shows "Show all"
* the working copy is currently in head of "b2"
![r1](/uploads/3603067788b8ead387a194347b2491b6/r1.png)
Next:
* use the combobox to set the branch to "default"
* right click on the revision 0, and open the menu "Update..."
* see that the "Update to" combobox is correct:
![r2](/uploads/cf6470bf4689f4ec828ffd2dbc4b1747/r2.png)
Next:
* use the combobox to set the branch to "b1"
* right click on the revision 1, and open the menu "Update..."
* see that the "Update to" combobox is **wrong**:
![r3](/uploads/209d67151b921c20fbc11ed531aee028/r3.png)
Repository:
```sh
hg init
echo. > file
hg add file
hg ci -m "test 1"
hg branch b1
echo. >> file
hg ci -m "test 2"
hg update default
hg branch b2
echo. >> file
hg ci -m "test 3"
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5757Retrieve Description of selected commit in custom Tools2021-11-11T15:47:05ZTom LietzeRetrieve Description of selected commit in custom ToolsIn TortoiseHg Workbench you can define custom Tools in the settings.
There you can specify the command to execute upon clicking the custom tool.
With variables like {REVID} you can retrieve information from the selected commit.
I was won...In TortoiseHg Workbench you can define custom Tools in the settings.
There you can specify the command to execute upon clicking the custom tool.
With variables like {REVID} you can retrieve information from the selected commit.
I was wondering if there is also a variable / a way to retrieve the 'Description' of the selected commit.
With Description I mean the first line of the commit-message.
If there is no possibility yet, it would be nice if there was one :)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5750Error dragging repository in registry2021-10-26T15:41:51Zphp4fanError dragging repository in registryI dragged and dropped a repository in the Registry panel and I got this error:
```
#!python
** Mercurial version (5.8.1). TortoiseHg version (5.8.1+14-ae5c8b95d2ae)
** Command: --nofork
** CWD: /home/teo/Documents/lavor...I dragged and dropped a repository in the Registry panel and I got this error:
```
#!python
** Mercurial version (5.8.1). TortoiseHg version (5.8.1+14-ae5c8b95d2ae)
** Command: --nofork
** CWD: /home/teo/Documents/lavoro/smb/xpdev_hg
** Encoding: UTF-8
** Extensions loaded: mercurial_keyring, tortoisehg.util.configitems
** Python version: 3.8.12 (default, Aug 31 2021, 01:23:42) [GCC]
** System: Linux lenovoteo 5.14.9-1-default #1 SMP Fri Oct 1 07:22:19 UTC 2021 (d0ace7f) x86_64
** Qt-5.15.1 PyQt-5.15.1 QScintilla-2.11.5
Traceback (most recent call last):
File "/home/teo/programmi/thg/tortoisehg/hgqt/repotreemodel.py", line 149, in parent
return self.createIndex(parentItem.row(), 0, parentItem)
AttributeError: 'NoneType' object has no attribute 'row'
Traceback (most recent call last):
File "/home/teo/programmi/thg/tortoisehg/hgqt/repotreemodel.py", line 149, in parent
return self.createIndex(parentItem.row(), 0, parentItem)
AttributeError: 'NoneType' object has no attribute 'row'
```
This looks like a different error than https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5590 (at least superficially without knowing anything)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5747Unsafe reverting UI2021-10-04T12:40:55ZCraftCoderrUnsafe reverting UII want to re-check which files would be reverted when I confirm discarding changes in revert dialog. I think it's unsafe to confirm something that does not visible near the "kill this" button.
![thg](/uploads/b0c3f4a3995400e0a95fb7e8652...I want to re-check which files would be reverted when I confirm discarding changes in revert dialog. I think it's unsafe to confirm something that does not visible near the "kill this" button.
![thg](/uploads/b0c3f4a3995400e0a95fb7e865217609/thg.png)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5743Cannot use local hg install2021-09-08T15:22:09ZRaphaël GomèsCannot use local hg installFor some reason, `pip install --global-option="--rust"` does not work, and I haven't found a way yet of installing mercurial with Rust with pip. So I thought I'd use `HGPATH=/directory/where/hg/source/is ./thg`, but I'm getting:
```
Tra...For some reason, `pip install --global-option="--rust"` does not work, and I haven't found a way yet of installing mercurial with Rust with pip. So I thought I'd use `HGPATH=/directory/where/hg/source/is ./thg`, but I'm getting:
```
Traceback (most recent call last):
File "./thg", line 52, in <module>
from setup import build_ui
File "/home/alphare/workspace/octobus/tortoisehg/thg/setup.py", line 30, in <module>
from i18n.msgfmt import Msgfmt
File "/home/alphare/workspace/octobus/tortoisehg/thg/i18n/msgfmt.py", line 39, in <module>
from mercurial import (
ModuleNotFoundError: No module named 'mercurial'
```
Because `build_ui` somehow calls mercurial before it can be set. And even if I put the `sys.path` manipulation before the `build_ui` business, I get another error about `mercurial/__version__.py` doesn't existing, which makes me think this whole `HGPATH=` thing does not work anymore.
The reason why I need a Rust version is because my mercurial-devel checkout uses the Rust nodemap, which adds a requirement.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5741FilteredIndexError while rebasing shown revision2021-09-14T13:44:49ZSimon SapinFilteredIndexError while rebasing shown revisionSteps to reproduce:
* In thg, click on a revision to show its details (full message, diff, etc)
* Separately, in a terminal, rebase that revision
Expected result:
* The view automatically changes to the rebased revision, the successor...Steps to reproduce:
* In thg, click on a revision to show its details (full message, diff, etc)
* Separately, in a terminal, rebase that revision
Expected result:
* The view automatically changes to the rebased revision, the successor of the initial one.
Actual result:
* The view automatically changes to the rebased revision, and a "TortoiseHg Bug Report" window appears that shows the text below with a Python exception `mercurial.error.FilteredIndexError: 55081`. This 55081 is the initial revision that was rebased. I assume that rebasing marks it as obsolete and therefore as to filter out of "normal" operations.
```
#!python
** Mercurial version (5.8.1). TortoiseHg version (5.8.1)
** Command:
** CWD: /home/simon/projects/hg
** Encoding: UTF-8
** Extensions loaded: absorb, convert, evolve 10.3.3, histedit, patchbomb, phabricator, purge, rebase, share, strip, topic 0.22.3, tortoisehg.util.configitems
** Python version: 3.9.6 (default, Jun 30 2021, 10:22:16) [GCC 11.1.0]
** System: Linux kangae 5.13.9-arch1-1 #1 SMP PREEMPT Sun, 08 Aug 2021 11:25:35 +0000 x86_64
** Qt-5.15.2 PyQt-5.15.4 QScintilla-2.13.0
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/mercurial/localrepo.py", line 1837, in __getitem__
node = self.changelog.node(changeid)
File "/usr/lib/python3.9/site-packages/mercurial/repoview.py", line 343, in node
raise error.FilteredIndexError(rev)
mercurial.error.FilteredIndexError: 55081
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/repowidget.py", line 1053, in repositoryChanged
self._updateNamedActions()
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/repowidget.py", line 1540, in _updateNamedActions
selattrs = self._selectionAttributes()
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/repowidget.py", line 1220, in _selectionAttributes
ctxs = [self.repo[rev] for rev in revisions]
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/repowidget.py", line 1220, in <listcomp>
ctxs = [self.repo[rev] for rev in revisions]
File "/usr/lib/python3.9/site-packages/tortoisehg/hgqt/thgrepo.py", line 821, in __getitem__
changectx = super(thgrepository, self).__getitem__(changeid)
File "/usr/lib/python3.9/site-packages/mercurial/localrepo.py", line 1877, in __getitem__
raise error.FilteredRepoLookupError(
mercurial.error.FilteredRepoLookupError: b"filtered revision '55081'"
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5738UnicodeEncodeError when run custom tool in repository2021-08-15T13:38:40ZMingunUnicodeEncodeError when run custom tool in repositoryIn repository created this custom tool:
```config
# .hg/hgrc
[tortoisehg-tools]
format.command = python format.py bookmarks.json
format.enable = istrue
format.icon = utilities-terminal
format.showoutput = False
[tortoisehg]
workbench.c...In repository created this custom tool:
```config
# .hg/hgrc
[tortoisehg-tools]
format.command = python format.py bookmarks.json
format.enable = istrue
format.icon = utilities-terminal
format.showoutput = False
[tortoisehg]
workbench.custom-toolbar = format
```
`format.py` and `bookmarks.json` — are the files in repository.
When try to run `UnicodeEncodeError` occurs:
```
#!python
** Mercurial version (5.9rc1). TortoiseHg version (5.9rc0)
** Command:
** CWD: D:\Полезности\Закладки Firefox
** Encoding: cp1251
** Extensions loaded: histedit, mq, rebase, strip, tortoisehg.util.configitems
** Python version: 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [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-5.9.9 PyQt-5.13.2 QScintilla-2.10.8
Traceback (most recent call last):
File "tortoisehg\hgqt\workbench.pyo", line 886, in forwarder
File "tortoisehg\hgqt\repowidget.pyo", line 2554, in runCustomCommand
File "subprocess.pyo", line 394, in __init__
File "subprocess.pyo", line 644, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-12: ordinal not in range(128)
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5736Feature Request: Add latesttagdistance column in workbench2021-08-06T14:28:57ZBrian VarneyFeature Request: Add latesttagdistance column in workbenchYou can get latesttagdistance from a mercurial template command (i.e. hg parent --template "{latesttagdistance}\n" )
latesttagdistance is very useful for creating project version numbers so it would be useful to have a column in workbe...You can get latesttagdistance from a mercurial template command (i.e. hg parent --template "{latesttagdistance}\n" )
latesttagdistance is very useful for creating project version numbers so it would be useful to have a column in workbench to easily match up version numbers.
Thanks for your consideration,
Brian V.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5735WindowsError: [Error 582]2021-08-04T15:28:41ZЮлия ТрегубоваWindowsError: [Error 582] #!python
** Mercurial version (5.8.1). TortoiseHg version (5.8.1)
** Command: --nofork workbench
** CWD: \\sun\080. Исходный код программ\ISG\_ACSshared
** Encoding: cp1251
** Extensions loaded:
** Python ve... #!python
** Mercurial version (5.8.1). TortoiseHg version (5.8.1)
** Command: --nofork workbench
** CWD: \\sun\080. Исходный код программ\ISG\_ACSshared
** Encoding: cp1251
** Extensions loaded:
** Python version: 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [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.9 PyQt-5.13.2 QScintilla-2.10.8
Traceback (most recent call last):
File "tortoisehg\hgqt\run.pyo", line 138, in dispatch
File "tortoisehg\hgqt\run.pyo", line 342, in _runcatch
File "tortoisehg\hgqt\run.pyo", line 406, in runcommand
File "mercurial\ui.pyo", line 462, in readconfig
File "mercurial\ui.pyo", line 469, in _readconfig
File "mercurial\ui.pyo", line 415, in _trusted
File "mercurial\util.pyo", line 2147, in fstat
WindowsError: [Error 582] Обнаружен недопустимый символ. Для многобайтового набора символов не допускается наличие старшего байта без следующего за ним младшего байта. Для набора символов Юникода недопустимыми являются символы 0xFFFF и 0xFFFEhttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5734Help looks always for Internet Explorer2021-08-04T07:11:11ZLuca MatteiniHelp looks always for Internet ExplorerWhen in TortoiseHg Workbench I select menu "Help"/"Help" it opens Internet Explorer, if installed.
Now, since it's definitely outdated, it remembered me to uninstall it - and that can be done easily on Win10.
However, now when I select H...When in TortoiseHg Workbench I select menu "Help"/"Help" it opens Internet Explorer, if installed.
Now, since it's definitely outdated, it remembered me to uninstall it - and that can be done easily on Win10.
However, now when I select Help a system dialog asks to select an application (from Windows Store) to open "mk" links.
Running THg 5.8.1, O.S. Windows 10 Pro - 21H1 - Build 19043.1110https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5733Selecting top revision (working directory) and then search gives top result t...2021-07-26T06:56:50ZFiona DunneSelecting top revision (working directory) and then search gives top result that behaves as if it is working directory1. Select top revision (working directory) in display of all revisions.
2. Search for anything in search bar with filter turned on.
3. Displayed results are correct, and working directory is not one of the results.
4. The top search resu...1. Select top revision (working directory) in display of all revisions.
2. Search for anything in search bar with filter turned on.
3. Displayed results are correct, and working directory is not one of the results.
4. The top search result text is correct, but otherwise behaves as if it is the working directory instead of the search result (bug).
e.g. upon right click, Update is greyed out; upon right click and Browse at Revision, Save at Revision is greyed out; and the commit message displayed belongs to the working directory.
5. Clicking on a different search result and then clicking back on the top result fixes the problem.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5732Everything is broken, my whole workflow of merging is broken2022-03-23T19:30:01Zphp4fanEverything is broken, my whole workflow of merging is brokenI've wanted to report this for many months, but I felt like I needed to investigate more. But then I realized that's your job, not mine.
My usual workflow for any non-trivial merge (i.e. where there are conflicts to resolve) was this:
...I've wanted to report this for many months, but I felt like I needed to investigate more. But then I realized that's your job, not mine.
My usual workflow for any non-trivial merge (i.e. where there are conflicts to resolve) was this:
- I would update to the revision to merge to
- I would right-click on the other revision (the one to merge from)
- I would select "Merge with local", then click Next
- Where it says "N files have merge conflicts that must be resolved" I would click on Resolve
- I would select all files and click "Tool resolve", even though I don't really know the difference between the different kinds of resolve. I don't care because I'm going to review the conflicts manually anyway. That would move files from the list above to the list below.
- One by one, I would select files in the list below and click "3 way diff", and manage the conflicts manually from there (choosing which "side" to keep, etc).
Starting a few months ago, maybe since I installed Thg on OpenSUSE on a new machine (I was using Ubuntu before), this is all broken and I can't do any of that.
When I click Tool Resolve, a bunch of garbage characters show up in the command output:
![image](/uploads/644957ff5e0a8189ed1f7cb8aea0b686/image.png)
and a progress bar shows up in the main Thg window that remains there forever even after I cancel merging. From there, Thg is unusable and I have to restart it.
I seem to remember in some cases the Tool Resolve worked, and then at the next step, when clicking "3 way diff tool" it just does nothing. I think I have reported that in another bug that to this day is still open.
Note: it could well be (as I already pointed out in the other abovementioned bug) that there's simply something missing that I need to install, but then, I expect a graceful error message tell me "This or that is missing, please install it".https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5728Selected repo is changed after dragging and dropping repo in left panel2021-06-30T14:04:06Zphp4fanSelected repo is changed after dragging and dropping repo in left panelSteps to reproduce:
- make sure you have several repositories in a single group (or outside any group) in the left panel
- click on one and drag it up or down a few places
Expected: after moving the repo in the list, the one that you d...Steps to reproduce:
- make sure you have several repositories in a single group (or outside any group) in the left panel
- click on one and drag it up or down a few places
Expected: after moving the repo in the list, the one that you dragged should remain selected.
Observed: it gets moved as expected, but then another unrelated repo gets selected instead. I think it's the one that occupies the position where the one you moved originally was. It's confusing as hell.
This is one of countless bugs in this part of the UI, which is practically unusable.