The mercurial `evolve` subsystem isn't well handled
Apache NetBeans version
Apache NetBeans 18
What happened
With mercurial editor change bars dont' go away after hg amend
- Make code changes, see change bars.
- Manuall do
hg amendin a system console - The change bars don't go away.
- Click on
Refresh statusin mercurial output window and the status updates and the change bars go away.
Manually doing hg ci and it works as expected.
Another failure mode
- Make code changes, see change bars.
- Manuall do
hg amend. - Make some trivial change, just a few lines.
Observe the change bars both from step 1 changes and step 3 changes.
- Click on
Refresh statusin mercurial output window. Only want to see the actual pending changes.
Expect: only change bars for step 3, none for changes in step 1. Observe: still see change bars for both step 1 and step 3 changes.
- Manually did
hg amendso no changes in working directory and then doingRefresh statusworked to clear all change bars.
In mercurial window clicked Update All, in messages.log
INFO [org.netbeans.ui.metrics.vcs]: USG_VCS_REPOSITORY
WARNING [org.netbeans.modules.mercurial]: command: [hg, log, -v, -l, 7, --repository, /ref/tools/astrolog.d/castro/AstroComp, --debug, --rev, tip:0, --style=/tmp/vcs-1687118197615/vcs-1687132109249/log.style]
WARNING [org.netbeans.modules.mercurial]: output: [abort: hidden revision '0' was rewritten as: 65ae058ee044, (use --hidden to access hidden revisions)]
Mercurial's evolve is a feature, evolve, which allows changsets/history to be rewritten without losing anything. Changesets that are superceded become hidden and are not normally seen. They can be seen by using the --hidden option to several commands.
I've never look at the NetBeans VCS/Mercurial subsystems. I'm wondering how things are detected. Why would NetBeans hg ci changes be detected, but not 'hg amend' changes. Not sure when I'll get time; maybe there's debug logging that can be turned on? Any suggestions on what to look at?
How to reproduce
See above
Did this work correctly in an earlier version?
No / Don't know
Operating System
Linux harmony 6.0.6-76060006-generic #202210290932~1667401208~22.04~d2df702 SMP PREEMPT_DYNAMIC Wed N x86_64 x86_64 x86_64 GNU/Linux
JDK
java version "17.0.6" 2023-01-17 LTS Java(TM) SE Runtime Environment (build 17.0.6+9-LTS-190) Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190, mixed mode, sharing)
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
No response
Are you willing to submit a pull request?
No