Jump to content
JarJarThomas

Directory Merge Fail

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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

×