Bug 54415 - [Sync Info] Copying resources from head to branch in navigator results in mixed branch.
Summary: [Sync Info] Copying resources from head to branch in navigator results in mix...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P5 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
: 171065 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-10 21:10 EST by MG CLA
Modified: 2021-09-03 20:23 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MG CLA 2004-03-10 21:10:08 EST
I have two projects - the head and a branch - I wanted to port a directory with
a set of files from the head to the branch.  I selected the folder in the head
and ctrl-c went to the spot in the branch and ctrl-v.  This resulted in the
files coming over - good - but the files are still part of the head - bad.

The files should have been copied without their cvs info such that they would
appear as new resources inside the branch and could then be committed to that
branch.
Comment 1 MG CLA 2004-03-10 21:12:39 EST
The work around is to right click the added folder in the branch and select cvs
then disconnect.  You can then commit them to the branch.  

I think this is a pretty bad situation to have a mixed branch where you might
not be aware that you are commiting changes to the head even though your project
is a branch.
Comment 2 Michael Valenta CLA 2004-03-11 09:19:07 EST
Unfortunately, this is a consequence of CVS. Try this with a sandbox created 
by the CVS command line client and you will get the same behavior. The best we 
could do is warn the user that they are mixing tags (as we do when they mix 
tags using Replace with). I don't think we'll have time to address this in 3.0.
Comment 3 Michael Valenta CLA 2004-03-11 09:29:26 EST

*** This bug has been marked as a duplicate of 54006 ***
Comment 4 MG CLA 2004-03-11 13:35:53 EST
It is true that if you did this with the commandline client then indeed you
would see the same behavior.  I believe the difference here is that since the
cvs folders are hidden from the user and you copy a folder from one branch to
another you are less likely to realize that the cvs folders with cvs info will
be copied and result in a mixed branch.  

Now I see that you have resolved this as a duplicate of an enhancement.  I'd
have to argue for this being a bug.  When you want a mixed branch project?  I
don't think that is a state that should be possible to have. 

I think the proper behavior would be to have copy not copy the cvs meta data
folders.  I mean even if you were copying within the same project you wouldn't
want the cvs folders copied since you are moving resources and would assumably
like to move them in respect to the cvs project.

If a warning is the best you could for 3.0 then so be it but 
Comment 5 Michael Valenta CLA 2004-03-11 14:18:24 EST
I agree that this is a separate case from bug 54006. However, a solution for 
that bug would aleviate the need to address this one to some extent.

We will not have time to address this in 3.0. At the CVS level, it is 
difficult to differentiate the case where the CVS folders should be purged 
from the case were they shouldn't (i.e. even though you can't conceive of why 
a user wants a mixed project, CVS supports it and to not allow it in Eclipse 
is an unnecessary restriction).
Comment 6 MG CLA 2004-03-11 15:46:30 EST
I agree that you should allow the full flexibility of cvs through eclipse,
however, in the future it would be nice to have an option to disable copying of
cvs meta data with copy commands.  Even if this were a disabled checkbox that I
could enable it would improve my workflow and probably the majority of the other
eclipse users when porting files from one branch to another.

Another option would be to has the checkbox in the warning message itself.

Now that I think about it a little more there is one case that I can envision
the mixed branch being of value; that is if you were developing a project based
on two different projects and wanted to use files from each inside the one
project.  Still a lot more of a fringe case than porting files from one branch
to another.  
Comment 7 Michael Valenta CLA 2007-01-19 11:55:20 EST
*** Bug 171065 has been marked as a duplicate of this bug. ***
Comment 8 Bryan Mason CLA 2007-10-15 11:35:41 EDT
Can the Eclipse users get a patch to correct this bug?  Simply copying a folder from one project with CVS folders to another project that is connected to CVS will  alter version control information.  This is unexpected; I expect this problem when done using a native OS copy command, but not when done through Eclipse.  I think it is reasonable to expect that Eclipse, being aware of version control schemes, can exclude CVS/SVN/etc version information metadata folders where appropriate.  Without this patch, it becomes the end user's responsibility to make sure that underlying version control system files are properly maintained.  It is very easy to overlook that Eclipse does not do this automatically.  Please consider creating a patch for this!
Comment 9 Eclipse Webmaster CLA 2019-09-06 16:05:31 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Comment 10 Eclipse Genie CLA 2021-09-03 20:23:14 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.