Fumsffs Posted February 2, 2023 Report Posted February 2, 2023 I'm trying to move a folder with multiple subfolders and files inside of the Unity Project tap. Instead of being detected as either, a single folder move or multiple file moves by Plastic. It is detected as a series of renames and deletions/additions. Most of these pictures are identical, so a similarity check might be confused(if not for the filename staying the same) and losing history on the "deleted"/"added" files isn't the biggest concern, but I don't really see a reason why it wouldn't be able to detect this move correctly.Create the folder structure in the new spot manually and then moving files individually still ends up giving weird changes. Here I've moved xxxx__0018 and xxxx__0017. But moving xxxx__0019 as well produces this result
Wolfram Posted February 14, 2023 Report Posted February 14, 2023 It mostly depends on your move detection settings in the Plastic client, so play around with different settings there. But still Plastic will sometimes get confused, as it seems to compare file content ONLY, independent of the file name. So if you have two identical PNGs and move them to a different folder, the confusion shown in your screenshots may happen. When Plastic's detection fails, I generally undo the rename, and then move/rename these files in the Workspace explorer in Plastic (not the Windows Explorer, and not the Unity Editor), as it fully keeps track of all affected files. However, make sure you ALSO move/rename every associated .meta file along with it 8especially when renaming a folder - each folder also has its own .meta file).
Rafael Posted February 14, 2023 Report Posted February 14, 2023 Hi, What @Wolfram is saying is true, just so you know the Move Detection settings can be accessed from the Options of the pending changes view: Indeed working with the plastic client workspace explorer will keep the history with complete consistency. Regards, RafaelUnity Plastic SCM SupportVirtualize your Workspace. Make it dynamic.
GabrielR Posted July 18, 2023 Report Posted July 18, 2023 Plastic really needs to disable move detection by default with Unity. I've had it break my local repository 5 times in one month because I deleted files in Unity. When you have a big project and you delete meta files, Plastic often detects those as a file move. This is a terrible bug that has been around for four or five years. You can only safely delete files inside the Plastic client, not in Unity. I've had more problems with Plastic than I ever had with SVN, and SVN is known for being terrible. The critical bug is it's impossible revert some of these moves. The only fix is to redownload your repo to a new folder and manually move your newly changed files to the new workspace. I've found complaints about this issue from 2019. Plastic clearly aren't interested in fixing these bugs. If you have this problem, please please please report them to Unity. If we get enough bugs filed, then Unity may force them to fix the file move bugs.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now