thg issueshttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues2020-06-21T11:17:46Zhttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5328Removing bookmark scrolls revision graph2020-06-21T11:17:46ZBitbucket ImporterRemoving bookmark scrolls revision graph*Created originally on Bitbucket by [psuter (Peter Suter)](https://bitbucket.org/%7B48b289e8-68dd-4aa4-8d3a-6458c5363d69%7D/)*
Hi, a minor irritation I often encounter is the following:
In TortoiseHG Workbench I right-click a changes...*Created originally on Bitbucket by [psuter (Peter Suter)](https://bitbucket.org/%7B48b289e8-68dd-4aa4-8d3a-6458c5363d69%7D/)*
Hi, a minor irritation I often encounter is the following:
In TortoiseHG Workbench I right-click a changeset with a bookmark, and select "Bookmark...", then click remove and close the dialog. This works fine, but now the changeset I had selected was scrolled away in a weird way. (The list of revisions sort of jumps around up and down.)
This is not the end of the world, but makes removing many bookmarks more tedious than necessary.
(Maybe it's more pronounced because I have many unapplied MQ patches?)
Thanks! ☃️https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5325How do I bundle Mercurial on Linux?2020-06-21T11:17:42ZBitbucket ImporterHow do I bundle Mercurial on Linux?*Created originally on Bitbucket by [Andrei Dziahel](https://bitbucket.org/%7B72e07a2c-eb1f-4ba1-aecc-b403f231ff1e%7D/)*
I'm a maintainer of Mercurial and TortoiseHG packages for OpenSUSE. Currently TortoiseHG depends on Mercurial of cu...*Created originally on Bitbucket by [Andrei Dziahel](https://bitbucket.org/%7B72e07a2c-eb1f-4ba1-aecc-b403f231ff1e%7D/)*
I'm a maintainer of Mercurial and TortoiseHG packages for OpenSUSE. Currently TortoiseHG depends on Mercurial of current and previous version, hence the upper bound requirement in the package spec, like this:
```spec
Requires: mercurial < 4.9
Requires: mercurial >= 4.8
```
Unfortunately that prevents users from installing new Mercurial when TortoiseHG haven't been updated yet. True, it actually depends on the version of TortoiseHG *package* I'm maintaining, but sometimes, when TortoiseHG release lags behind Mercurial release, there's nothing to build a package from, right?
Removing the upper bound requirement is also not a way out, since upgraded Mercurial renders TortoiseHG unusable.
So here's the question: how do I bundle Mercurial into a Linux build, so THG would not depend on system Mercurial installation and would function even in case of system Mercurial upgrade to incompatible version? I know it is already done on Windows, can we have it on Linux too?
Thank you in advance.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5323Font size issues (Windows)2023-05-11T03:44:57ZBitbucket ImporterFont size issues (Windows)*Created originally on Bitbucket by [haarschaf (Haar Schaf)](https://bitbucket.org/%7Be5d5c155-9e88-4320-9443-9e7be3a43911%7D/)*
Some font size issues as observed on Windows 7, 8, and 10:
1. Inconsistent font sizes across the program...*Created originally on Bitbucket by [haarschaf (Haar Schaf)](https://bitbucket.org/%7Be5d5c155-9e88-4320-9443-9e7be3a43911%7D/)*
Some font size issues as observed on Windows 7, 8, and 10:
1. Inconsistent font sizes across the program
2. List (tree) font size not adjustable
3. List fonts, list column header fonts, toolbar fonts, some labels, do not scale with high DPI settings, i.e. when zoom scale is > 100%, font remains very small and is hardly readable, both on high resolution screens and on screens that have scaling enabled for better readability. Applies both to DPI changes at runtime and on program startup.
Interestingly text in the description column that is bold is scaled properly.
Most issues could be fixed by the users themselves by introducing two more font options: one for list fonts (trees and main commit list) and one for the other UI elements like labels. This is the quickest fix and users could assign fixed fonts and sizes themselves. On the other hand, implementing proper high DPI support would take a much longer time, but is really not neccessary at this point as this is a blocking usability issue.
Cheershttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5317Repository password visible in temporary directory2020-06-21T11:17:33ZBitbucket ImporterRepository password visible in temporary directory*Created originally on Bitbucket by Anonymous*
When click "Check for incoming changes" you can see your password in temporary directory name (although it's hidden in url part of the command):
% hg incoming --quiet --bundle "c:\temp\thg...*Created originally on Bitbucket by Anonymous*
When click "Check for incoming changes" you can see your password in temporary directory name (although it's hidden in url part of the command):
% hg incoming --quiet --bundle "c:\temp\thg.1p5jlc\http__MyLoginMyPassword@RepoAddress_jehtpn.hg" http://MyLogin:***@RepoAddresshttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5316Workbench: repository password visible in hint2020-06-21T11:17:33ZBitbucket ImporterWorkbench: repository password visible in hint*Created originally on Bitbucket by Anonymous*
When mouse cursor is over repositories combobox (Switched on in Settings/Sync/Target Combo) you can see repository password in hint.*Created originally on Bitbucket by Anonymous*
When mouse cursor is over repositories combobox (Switched on in Settings/Sync/Target Combo) you can see repository password in hint.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5309Command line "thg revdetails" not working2020-06-21T11:17:26ZBitbucket ImporterCommand line "thg revdetails" not working*Created originally on Bitbucket by [DerColonel (Nikolaos Gkinos)](https://bitbucket.org/%7B709568af-882c-4f0e-84c9-f6e64c111aee%7D/)*
Unfortunately, the command line feature "thg revdetails" is not working. It crashes immediately.
S...*Created originally on Bitbucket by [DerColonel (Nikolaos Gkinos)](https://bitbucket.org/%7B709568af-882c-4f0e-84c9-f6e64c111aee%7D/)*
Unfortunately, the command line feature "thg revdetails" is not working. It crashes immediately.
Steps to reproduce:
* Open command line in an hg repository
* execute "thg revdetails [revid]" where "[revid]" is any revision id
* e. g. "thg revdetails 08fc4b2"
```
#!python
#!python
** Mercurial version (4.8.1). TortoiseHg version (4.8.1)
** Command: revdetails d1a734f5caf6
** CWD: D:\Projekte-local\Solutions
** Encoding: cp1252
** Extensions loaded: histedit, rebase, strip, fsmonitor, beautifygraph, 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 1644, in check
File "tortoisehg\hgqt\run.pyo", line 1114, in revdetails
File "tortoisehg\hgqt\revdetails.pyo", line 543, in __init__
File "tortoisehg\hgqt\revdetails.pyo", line 83, in __init__
File "tortoisehg\hgqt\thgrepo.pyo", line 772, in __getitem__
File "mercurial\localrepo.pyo", line 1277, in __getitem__
ProgrammingError: unsupported changeid '' of type <type 'str'>
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5305Error adding files to new repository2020-06-21T11:17:22ZBitbucket ImporterError adding files to new repository*Created originally on Bitbucket by Anonymous*
Mercurial threw an error while adding files to a newly created repository. Note: the repository had a subrepo added to it, i.e. `.hgsub` file.
Here's the bug trace message...
```
...*Created originally on Bitbucket by Anonymous*
Mercurial threw an error while adding files to a newly created repository. Note: the repository had a subrepo added to it, i.e. `.hgsub` file.
Here's the bug trace message...
```
#!python
** Mercurial version (4.4.1). TortoiseHg version (4.4.1)
** Command: --nofork workbench
** CWD: C:\Users\abir\Projects\lads\tools\lads_tools
** Encoding: cp1252
** Extensions loaded:
** 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\revdetails.pyo", line 392, in _onFileSelected
File "tortoisehg\hgqt\fileview.pyo", line 492, in display
File "tortoisehg\hgqt\filedata.pyo", line 700, in load
TypeError: _isdir() argument 1 must be encoded string without null bytes, not str
Traceback (most recent call last):
File "tortoisehg\hgqt\status.pyo", line 724, in run
File "mercurial\context.pyo", line 332, in sub
File "mercurial\subrepo.pyo", line 405, in subrepo
File "mercurial\subrepo.pyo", line 680, in __init__
File "mercurial\vfs.pyo", line 114, in exists
File "genericpath.pyo", line 26, in exists
TypeError: stat() argument 1 must be encoded string without null bytes, not str
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5298Issue when filteting to single result2023-01-18T14:36:53ZBitbucket ImporterIssue when filteting to single result*Created originally on Bitbucket by Anonymous*
If you have already done a filter to a single result then you do another filter to a single result it does not selected the new Changeset. Even if you click the single result it does not u...*Created originally on Bitbucket by Anonymous*
If you have already done a filter to a single result then you do another filter to a single result it does not selected the new Changeset. Even if you click the single result it does not update the filelist/Changeset info.
If you are filtering from multiple results to a single result this does not seem to be an issue.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5295Explore command not working for UNC paths2020-06-21T11:17:12ZBitbucket ImporterExplore command not working for UNC paths*Created originally on Bitbucket by [Kuul Laager (Rando)](https://bitbucket.org/%7B83f22eb0-d09f-40b1-9ad9-a0a2f3f053db%7D/)*
Explore (open the repository in file browser) command does not work for UNC paths.
Windows explorer does not ...*Created originally on Bitbucket by [Kuul Laager (Rando)](https://bitbucket.org/%7B83f22eb0-d09f-40b1-9ad9-a0a2f3f053db%7D/)*
Explore (open the repository in file browser) command does not work for UNC paths.
Windows explorer does not open and no error messages are shown.
Running tortoisehg from console with SET THGDEBUG=1 shows this when clicking 'explore':
```
#!bash
ShellExecute '%5C%5Csome-pc$%5CUsers%5CMe%5CDesktop%5Cmyrepo' failed (error 2).
```
This worked fine in 4.3.1.
TortoiseHg 4.8.1 with Mercurial-4.8.1, Python-2.7.13, PyQt-5.9.1, Qt-5.9.2.
Windows 10 (1607).https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5294Home and End keys don't work in the revision list2020-06-21T11:17:11ZBitbucket ImporterHome and End keys don't work in the revision list*Created originally on Bitbucket by [DaveInCaz (David Hollman)](https://bitbucket.org/%7B2dd8bec0-e2b4-43d0-b274-6ee79db66b75%7D/)*
In the main list of revisions, the Home and End keys don't do anything.
I thought I remembered that t...*Created originally on Bitbucket by [DaveInCaz (David Hollman)](https://bitbucket.org/%7B2dd8bec0-e2b4-43d0-b274-6ee79db66b75%7D/)*
In the main list of revisions, the Home and End keys don't do anything.
I thought I remembered that they used to... so this seems like a regression.
In any case, using Home to get back to the working directory line item would be particularly useful.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5293Keyboard shortcut (hotkey) to switch between repository tab and task tab2020-06-21T11:17:11ZBitbucket ImporterKeyboard shortcut (hotkey) to switch between repository tab and task tab*Created originally on Bitbucket by [Piotr_Dobrogost (Piotr Dobrogost)](https://bitbucket.org/%7B0e22e275-67ec-47fd-8395-5553d213fcad%7D/)*
Keyboard shortcut to switch between repository tab and task tab would be handy and would complem...*Created originally on Bitbucket by [Piotr_Dobrogost (Piotr Dobrogost)](https://bitbucket.org/%7B0e22e275-67ec-47fd-8395-5553d213fcad%7D/)*
Keyboard shortcut to switch between repository tab and task tab would be handy and would complement https://bitbucket.org/tortoisehg/thg/issues/5285/
Alternatively there could be a shortcut to cycle through all 3 main areas of UI:
* Repository Registry
* Repository Tab
* Task Tabhttps://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5289.hgignore GUI to insert regexp/glob at right place2020-06-21T11:17:07ZBitbucket Importer.hgignore GUI to insert regexp/glob at right place*Created originally on Bitbucket by [anthibug](https://bitbucket.org/%7B22c7ce64-80b4-4eaa-8287-a4b5440ecb4c%7D/)*
Hello,
The TortoiseHG windows GUI adds new items to ignore right before `syntax: regexp`.
Its ok: file is ignored and...*Created originally on Bitbucket by [anthibug](https://bitbucket.org/%7B22c7ce64-80b4-4eaa-8287-a4b5440ecb4c%7D/)*
Hello,
The TortoiseHG windows GUI adds new items to ignore right before `syntax: regexp`.
Its ok: file is ignored and we're using the simple blob syntax.
However this automatic mecanism messed up the layout of our .hgignore which has a dedicated comment before the `syntax: regexp` line.
We have a lot of dev. on a big repository and often they just click "Add" in the GUI and commit without even looking...
Let me show you what our .hgignore looks like (simplified):
```
# Use glob syntax
syntax: glob
*.exe
*.bak
*.min.js
# many more rules
# --------------------------------------------------
# Switch to regexp syntax
syntax: regexp
^.build/
UpgradeLog[0-9]*\.(XML|htm)$
# a few more regexp rules
# end of file
```
Thus when using the GUI, any added item ends up between `# Switch to regexp syntax` and `syntax: regexp` which is too bad :-/
![hgignore.png](https://bitbucket.org/repo/48R4X/images/262918263-hgignore.png)
Would it be possible to either:
- add the items before any commented line (right before the syntax change)
- add at the end
Thanks!https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5285Keyboard shortcut (hotkey) to switch between Repository Registry and the acti...2020-06-21T11:16:59ZBitbucket ImporterKeyboard shortcut (hotkey) to switch between Repository Registry and the active repository tab*Created originally on Bitbucket by [Piotr_Dobrogost (Piotr Dobrogost)](https://bitbucket.org/%7B0e22e275-67ec-47fd-8395-5553d213fcad%7D/)*
I guess switching between the Repository Registry panel (to choose repository) and the active re...*Created originally on Bitbucket by [Piotr_Dobrogost (Piotr Dobrogost)](https://bitbucket.org/%7B0e22e275-67ec-47fd-8395-5553d213fcad%7D/)*
I guess switching between the Repository Registry panel (to choose repository) and the active repository tab happens quite often yet there is no keyboard shortcut for this.
Someone was looking for this feature back in 2013 already – [How can I switch between the Repository Registry and the active repository tabs](https://stackoverflow.com/q/17165293/95735)
TortoiseHg
version 4.6.1
with Mercurial-4.5.3, Python-2.7.15, PyQt-5.11.2, Qt-5.11.1https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5279abandoned transaction issues2020-06-21T11:16:53ZMatt Harbisonabandoned transaction issuesI tried rebasing through the GUI in 4.8, not realizing there was an abandoned transaction. Hit the rebase button on the dialog, it greys out for a few seconds, then changes to an enabled "Continue". And then you can hit continue foreve...I tried rebasing through the GUI in 4.8, not realizing there was an abandoned transaction. Hit the rebase button on the dialog, it greys out for a few seconds, then changes to an enabled "Continue". And then you can hit continue forever, with it simply disabling briefly, and then re-enabling. Eventually I aborted it, opened the log window, and say this:
```
% hg rebase --dest=18761 --source=18757 --config=ui.merge=internal:merge
rebasing 18757:288d19619dff "settings: add a panel to support the Phabricator extension"
abandoned transaction found
[command returned code 255 Fri Nov 16 22:30:47 2018]
% hg rebase --continue --config=ui.merge=internal:merge
rebasing 18757:288d19619dff "settings: add a panel to support the Phabricator extension"
abandoned transaction found
[command returned code 255 Fri Nov 16 22:30:49 2018]
```
I assume there's some mechanism to catch that error and display a messagebox. Also notice that the hint isn't printed there, which is if run from the command line:
```
C:\Users\Matt\Projects\thg>hg rebase -s 18757 -d .
rebasing 18757:288d19619dff "settings: add a panel to support the Phabricator extension"
abort: abandoned transaction found!
(run 'hg recover' to clean up transaction)
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5267Too easy to accidentally delete shelve when intending to delete chunks2020-06-21T11:16:39ZBitbucket ImporterToo easy to accidentally delete shelve when intending to delete chunks*Created originally on Bitbucket by [MarkJeronimus (Mark Jeronimus)](https://bitbucket.org/%7Bf19142a0-4634-4a38-9911-5d759b1ec7d0%7D/)*
Too often I click on the delete button in the shelf, intending to delete only a single file or chun...*Created originally on Bitbucket by [MarkJeronimus (Mark Jeronimus)](https://bitbucket.org/%7Bf19142a0-4634-4a38-9911-5d759b1ec7d0%7D/)*
Too often I click on the delete button in the shelf, intending to delete only a single file or chunks thereof. Usually I can recover some deleted data from the trash directory but it's a fragile workaround.
I propose to move the button to the top bar next to the 'New Shelf' button.
While the 'Clear' button doesn't cause confusion, and as such, won't be accidentally pressed, it doesn't need to be moved to the icon buttons area, but it's recommended for consistency.
*Attachments:* [tortoisehg-delete-shelf](/uploads/5d15bc4ff0d0caf9a6cb9e8ad50b5b89/tortoisehg-delete-shelf.png)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5260"Diff to parent" does nothing2020-06-21T11:16:30ZBitbucket Importer"Diff to parent" does nothing*Created originally on Bitbucket by [teo8976 (Teo Tei)](https://bitbucket.org/%7B4d381d15-4c61-4a29-9de3-d1b5a89dbb2a%7D/)*
Steps to reproduce:
- open any repository
- select the working directory or any revision where there are any f...*Created originally on Bitbucket by [teo8976 (Teo Tei)](https://bitbucket.org/%7B4d381d15-4c61-4a29-9de3-d1b5a89dbb2a%7D/)*
Steps to reproduce:
- open any repository
- select the working directory or any revision where there are any files listed
- in the list of modified files, right click on any of them that has been modified
- select "diff to parent"
Expected:
should open some tool to show the diff. If the tool isn't available or there is any issue opening it, an informative error message should be displayed
Observed:
Nothing at all happens.
I'm pretty sure this used to work and I think it used to open a program called "Meld Diff Viewer", which I still have and I can open it normally on its own.
*Attachments:* [Untitled](/uploads/8726109fd0f6eaf1f051db66738b0857/Untitled.png)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5259Uncommit2020-06-21T11:16:28ZBitbucket ImporterUncommit*Created originally on Bitbucket by [psuter (Peter Suter)](https://bitbucket.org/%7B48b289e8-68dd-4aa4-8d3a-6458c5363d69%7D/)*
Is there support for [evolve](https://www.mercurial-scm.org/wiki/EvolveExtension)'s `uncommit` command?
> ...*Created originally on Bitbucket by [psuter (Peter Suter)](https://bitbucket.org/%7B48b289e8-68dd-4aa4-8d3a-6458c5363d69%7D/)*
Is there support for [evolve](https://www.mercurial-scm.org/wiki/EvolveExtension)'s `uncommit` command?
> **uncommit**
> extracts changes from a commit into the working directory,
I enabled the `evolve` extension and can see other commands like `prune` in the *Modify History* menu, but not `uncommit`. Could it be added?
Workaround: I added a *custom tool* `hg uncommit --all` to the toolbar. It seems to work fine.https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5217Refresh error dialog when pruning '.' and amend is selected in commit widget ...2020-06-21T11:15:29ZMatt HarbisonRefresh error dialog when pruning '.' and amend is selected in commit widget in 4.6.1I amended the tip of a series last night, and pulled the hg-committed result this morning. The first three commits obsoleted, and I pruned the orphan in thg. I didn't realize I had left the commit widget with 'amend' still selected, an...I amended the tip of a series last night, and pulled the hg-committed result this morning. The first three commits obsoleted, and I pruned the orphan in thg. I didn't realize I had left the commit widget with 'amend' still selected, and after a few seconds, got a message saying "filtered revision '<some binary>'". There's no stacktrace or other error in the log window, and `--nofork --debug` doesn't seem to have anything useful.
```
...
locked, aborting
locked, aborting
stat: D:\mercurial\.hg\branch ((8L, 1536934998.8368795, 1536934998.8378775) -> (8L, 1536935112.8868291, 1536935112.8868291))
stat: D:\mercurial\.hg\dirstate ((79245L, 1536934999.5359898, 1536934999.539951) -> (79245L, 1536935112.9068289, 1536935112.9068289))
stat: D:\mercurial\.hg/store\obsstore ((17962530L, 1526304044.0672638, 1536934981.0) -> (17962656L, 1526304044.0672638, 1536935112.8868291))
data: _readparents ("!\xb7\x87=b2'7\xc5\x85\r\x07\x16/\xe8\xfd\xaf\x98\xfb\xf5\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" -> '\xc5\xe6\xc1\xba\x1cy\xffw\x1b\xac\xaf\xa0\'\x06\xff\x06"X\xc30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
change found (flags = 0xb)
invalid branchheads cache (visible): tip differs
invalid branchheads cache (served): tip differs
lfs: assuming remote store: https://www.mercurial-scm.org/repo/hg//.git/info/lfs
stat: D:\mercurial\.hg\dirstate ((79245L, 1536935112.9068289, 1536935112.9068289) -> (79245L, 1536935113.576829, 1536935113.576829))
change found (flags = 0x8)
GarbageCollector.check: 10063 1 9
collected gen 0, found 2848 unreachable
stopping service: D:\mercurial
closing repo: D:\mercurial
restoring excepthook
```
Unlike some other strange behaviors with amend and evolve that I still need to nail down, this one doesn't seem stateful. I can rollback and re-prune from the command line, and open and close thg, and reproduce it on demand. It doesn't seem to be an issue if 'commit' is active instead of 'amend'.
![thg small prune error.png](https://bitbucket.org/repo/48R4X/images/1824680402-thg%20small%20prune%20error.png)https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5199hgeol policy changes don't take effect without a restart2020-06-21T11:15:12ZMatt Harbisonhgeol policy changes don't take effect without a restartI have a repo where the policy started as:
```
[patterns]
.hgtags = LF
; Shell scripts are Unix LF
**.sh = LF
; Source files
**.c = CRLF
```
I recently changed the policy to LF, and did the update to null and back aga...I have a repo where the policy started as:
```
[patterns]
.hgtags = LF
; Shell scripts are Unix LF
**.sh = LF
; Source files
**.c = CRLF
```
I recently changed the policy to LF, and did the update to null and back again. But when I edited the file, I noticed that in the diff window, the entire file's content was marked as removed and re-added. The same is true when running `hg diff` in the log window. But `hg diff` in a terminal window correctly shows only the few added lines. Additionally, committing from tortoise will commit the wrong line endings. Using tortoise vs separate command terminal to do the updates didn't matter. Closing and reopening fixes the diff.
I thought maybe this was a command server thing, but I wasn't able to write a test that reproduces it.
```
$ hg init eol-change
$ cd eol-change
$ cat >> .hgeol << EOF
> [patterns]
> **.c = CRLF
> EOF
$ hg ci -Aqm 'add CRLF eol policy'
>>> with open('file.c', 'wb') as fp:
... fp.write('line1\r\nline2\r\nline3\r\n')
$ hg ci -Aqm 'add CRLF file'
$ cat > .hgeol << EOF
> [patterns]
> **.c = LF
> EOF
>>> from __future__ import absolute_import
>>> from hgclient import check, readchannel, runcommand
>>> @check
... def diff(server):
... readchannel(server)
... runcommand(server, ['ci', '-m', 'change eol policy'])
... runcommand(server, ['up', '-C', 'null'])
... runcommand(server, ['up', '-C', 'tip'])
... with open('file.c', 'wb') as fp:
... fp.write('line1\r\nline2\r\nline2.5\r\n\r\nline3\r\n')
... runcommand(server, ['diff'])
*** runcommand ci -m change eol policy
*** runcommand up -C null
0 files updated, 0 files merged, 2 files removed, 0 files unresolved
*** runcommand up -C tip
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
*** runcommand diff
diff -r a5a9447127e7 file.c
--- a/file.c Thu Jan 01 00:00:00 1970 +0000
+++ b/file.c Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +1,5 @@
line1
line2
+line2.5
+
line3
```https://foss.heptapod.net/mercurial/tortoisehg/thg/-/issues/5173Suggestion for "Confirm Add" dialog in Workbench2020-06-21T11:14:39ZBitbucket ImporterSuggestion for "Confirm Add" dialog in Workbench*Created originally on Bitbucket by [retroj (John Foerch)](https://bitbucket.org/%7B2b4b2be3-4f8a-489a-be49-31d0eadd8501%7D/)*
In TortoiseHg Workbench, when you commit and have added files, a dialog appears:
```
Confirm Add
A...*Created originally on Bitbucket by [retroj (John Foerch)](https://bitbucket.org/%7B2b4b2be3-4f8a-489a-be49-31d0eadd8501%7D/)*
In TortoiseHg Workbench, when you commit and have added files, a dialog appears:
```
Confirm Add
Add selected untracked files?
[Add] [Cancel] [Show Details...]
```
I think that it would be a small improvement to remove the "Show Details..." button and simply automatically display the list of details. I don't know whether the dialog is auto-sized to the length of that list, but it need not be.. if the list is long, a scrollable list showing 10 lines or so would be fine.
Workbench has a pretty complex UI, and I think that this would be a way to simplify one small part of it with no negative side effects.