Jump to content

Plastic SCM, detecting files moved within Unity as renamed or Deleted and Added


Recommended Posts

Posted

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.
1056103109_DeletedFiles.thumb.PNG.9bb478cd0b297cd9c2f524e321ed706c.PNG
Added.thumb.PNG.d0bc2ddab25da46175b36ad416a15f89.PNGCreate 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.
image.thumb.png.06aa22bb535969ec55e125a9bd576a8d.png
But moving xxxx__0019 as well produces this result
image.thumb.png.4ec7c8a94c9771bfd15f7ec047b03fc3.png
 

  • 2 weeks later...
Posted

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).

Posted

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:

image.png

Indeed working with the plastic client workspace explorer will keep the history with complete consistency.
 
Regards,
 
Rafael
Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

  • 5 months later...
Posted

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. 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...