(NOTE: THIS WILL WIPE YOUR LOCAL PROJECT BY DOING THIS)
Not sure what to label this as, but noted it down as critical since technically if someone were to do this their entire project get’s wiped completely.
Issue: “X” button on Revert All Changes action acts as a Confirm button rather than a No button
Repro: (THIS WILL WIPE YOUR LOCAL PROJECT BY DOING THIS)
- Load local project (That hasn’t synced changes with Skien before)
- Turn on Revision Control (Skein)
- Click Revert All Files on the bottom right tab of screen
- Click “X”
Result: Project is reverted to latest snapshot but since there is no snapshot existing it reverts to the projects first instance (Creation of File)
Expected Result: X should cancel the action not confirm it.
Basically when switching an existing local project to skein (That didn’t previously have skein), make sure that if you accidentally click Revert All Files DO NOT CLICK the X button. Make sure to click the No button.
When clicking the X button, it assumes that you want to confirm Revert All Files which then wipes and deletes your entire project off your local system and if you haven’t checked in any files to skein before for that project, then it’ll delete the entire project and from what we have found, there is no way to get it back. (If you have checked in files then it’ll just revert to the last snapshot.)
We thought that the X button would act as a No button but nope. Luckily not too much was done on the map, about a weeks work. But project is gone and unable to be loaded since there is no snapshot ID. If someone has a fix for this that would be great!
If this is a project that’s been added to a team, you’ll no longer be able to load the project and will get this error since there is no longer any snapshot associated with the map.