Jump to content

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


Recommended Posts

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.
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.
But moving xxxx__0019 as well produces this result

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites


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.
Unity Plastic SCM Support
Virtualize your Workspace. Make it dynamic.

Link to comment
Share on other sites

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