Hello!
We’ve been using Plastic / Unity VCS for about five years. It’s wonderful in comparison to other tools or Git LFS.
There is a bug I keep seeing I’m hoping to get some assistance with. I’ve been able to find references to this in forums as far back as 2011, with no real solutions provided and several fixes implemented to solve it.
Unity VCS Version: 11.0.16.9055
Unity: Unity 2021.3.15f1 LTS
Issue:
When I download the latest commit all is well except for a single, small text file. This text file is in conflict, but will always use the latest source version. This should be a 10 second UI notification and clear button input, then move on.
What actually happens is that when I choose the source version it then it errors, saying I must have switched repos, and says I have pending merge links. I only use one repo and never switched. There is no UI on the left hand side to view the pending files. Right clicking the troubling file has no options. And so I’m stuck where I have pending merge links, yet have the latest files. I can verify that I have the latest files by choosing “Merge from this changeset” and there are zero files here.
UI problems:
The deadlock here is caused by the UI which seems stuck in a strange state.
Since we know I have the files the “Pending Changes” view acknowledges this saying “Pending Merge Links will be committed when you check-in your changes or when you undo your changes”. This seems accurate. But when I try to check in I see:
When you try to undo the changes in the file, it says you can’t as you have to undo the whole merge link, which we have no idea of what files these are. Even if we did, it would likely error.
There was also multiple posts from the Plastic team about how the changes could be shelved, undone, pull, and then reapply changes. This doesn’t work, showing the error above. It was the same ten years ago also.
So I can’t merge, check in, or shelve, so I have to undo.
Ultimately, this 80kb file which will always default to source is costing us many days of rework because the UI won’t allow us to choose what to do with this file and is caught with a pending merge link perpetually. We’re now afraid of pushing and pulling, as it could randomly mean backtracking. It’s morale death.
The only time we were able to get around it was to manually download the file from a commit, add it to the repo, and push, but this doesn’t work consistently. It also makes Unity VCS lose its mind.
Happy to share anything I can to help track this down. Thank you!