Jump to content

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


Fumsffs

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

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

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.

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