JarJarThomas Posted May 11, 2011 Report Share Posted May 11, 2011 Hi while evaluating i come to the situation that i created the same directory in two different branches adding different files to it. (At least i think it was what happend). Now the merge failes because of a conflict in the directory merge. A dialog pops up where i can select the files and rename the folders. But what i really would have liked would be a way to integrate both directories. Greetings Thomas Link to comment Share on other sites More sharing options...
psantosl Posted May 11, 2011 Report Share Posted May 11, 2011 Hi JarJarThomas, What you're describing is almost an "evil twin" scenario. Plastic identifies items (files and directories) with "unique item ids", so if you add foo.c to /main/task001 and another foo.c to /main/task002, they'll show up as different items because plastic tracks them independently. This way of working is pretty good for most situations, but as you mention not as good for an scenario like yours. But, in real life, it is hard to see a situation like that. The normal thing is that you add your code on the /main branch (for instance) and then you branch from there, and adding whole new trees on branches is perfectly doable, although it will be very rare that they'll collide. pablo Link to comment Share on other sites More sharing options...
JarJarThomas Posted May 11, 2011 Author Report Share Posted May 11, 2011 Well the interesting this was it happened rather easily while working with another guy. We have a pattern that says rootpath/ - all public headers -> private - all private headers -> source - all sourcefiles because we are currently creating a software from scratch we worked both independently on two different features. Feature one -> add a filesystem encapsulation mechanism Feature two -> add a value factory mechanism so we added in our framework under System (framework/System) both independently the folder private. User one on branch main/SCM1421 FileSystem User two on branch main/SCM1444 DomValueFactories Merging both back into main -> error. I could only overcome this by renaming the folder private to private2, move the file, checkin, delete private2 And as far as i can tell from previous projects stuff like what happens rather often. Yes it won't happen so often for files ... but directories are not source files Link to comment Share on other sites More sharing options...
psantosl Posted May 11, 2011 Report Share Posted May 11, 2011 We're working to improve this behavior on 4.0. Yes, it is not extremely common but it can happen, specially during project initiation phases. Link to comment Share on other sites More sharing options...
JacobExperimental Posted September 4, 2019 Report Share Posted September 4, 2019 I know this is an old thread, but I just wanted to add that I commonly run into this issue and wish there was a way to merge evil twin directories that have different contents. I most often run into this when I am ramping up a remote unity contractor, say for instance an audio engineer, and I want them to be able to add their content in an isolated branch without needing them to sync the entire project contents. That in itself would be fine, however a lot of those cases there are a number of third party tools from the asset store that contractor may need. Importing those tools from the asset store to their branch often creates a number of the standard unity directories, plugins, gizmos, ect which of course are already in the core project and causes this merge issue down the line. Link to comment Share on other sites More sharing options...
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