Randomly get two different behaviors when attempting to update to revision, from "dirty" working directory
I have a working directory with some uncommitted changes.
I right-click on a previous revision and choose Update.
I get randomly one of the two following behaviors, sometimes one, sometimes the other:
A) In the update pop-up, the "Update" button is disabled, unless I check the "Discard local changes, no backup" option
B) The Update button is enabled even if the checkbox is not checked, and if I click Update, I get a warning that there are uncommitted changes and asking me what to do: discard changes, or cancel.
Both behaviors make sense. One can argue in favour of one or the other; I haven't given much thought to which one is the best. But it certainly doesn't make sense to have sometimes one and sometimes the other; and I also don't see a good reason for preferring one under certain conditions and the other under other conditions. At some point I had the impression it depended on whether or not the uncommitted changes include added/removed files, but I am unable to reproduce the two cases at will, and I don't see a good reason why that should make a difference anyway.