Option to revert pending changes when switching workspace
When trying to switch the workspace to a different changeset/branch, the user is first asked if he's sure, but then gets an error if there are pending changes.
It would be great if the question dialog would show how many pending changes there are (and maybe a tooltip with a list of all changed files?). Then, if the user decides to go through with it anyway, the pending changes should be reverted (maybe have a checkbox, so the user is really sure) and the switch should be performed.
When there are no pending charges, the switch should just happen without asking.
I often have loose files that got changes by the IDE or Unity that I can safely discard. Having to do this manually every time can be quite annoying when quickly zapping through different changesets.
-
Rando Wiltschek commented
Ah, I get you. Although given the overloaded context menu that we currently have, I don't think another option will be faster than double clicking a changeset and clicking "I'm sure".
But maybe holding shift like with the windows delete function might be a good compromise for experienced developers who need this often. -
Jonas commented
To be clear, I _also_ want your suggested feature. It would be super useful. It's covering a similar but unrelated use case.
-
Jonas commented
I would like to preemptively say "switch to this changeset and get rid of any pending changes, private files, deleted files, etc. along the way if there are any" without having to wait for the dialog to pop up asking me what to do.
It's like when deleting files in Windows where you already know the answers to all the "are you sure?", "hidden files too?", "readonly files too?", "really really?" dialogs beforehand and you just want to one-button fire and forget the damn thing.
-
Rando Wiltschek commented
I don't quite understand how your suggestion is different. Can you elaborate?
-
Jonas commented
We're using Unity too and man it likes making meaningless changes to files. The suggestion from OP is great, but it would be even better to have the nuclear option: https://plasticscm.uservoice.com/forums/15467-general/suggestions/39511951-one-button-switch-to-changeset