Java Forum / Tools / September 2006
Eclipse: Delete Folder winthin CVS?
mr_nice_1973@yahoo.com - 27 Oct 2005 17:34 GMT Eclipse has got to be the most UN-user friendly programs that I was forced to deal with.
That being said, does anyone know how to delete a directory within the "CVS Repositories" View? Is it even possible with Eclipse. I've searched around for the answer and this is my last attempt to finding the answer.
thanks in advance!
Lothar Kimmeringer - 27 Oct 2005 19:11 GMT > Eclipse has got to be the most UN-user friendly programs that I was > forced to deal with. Why are you forced to use Eclipse?
> That being said, does anyone know how to delete a directory within the > "CVS Repositories" View? Is it even possible with Eclipse. I've > searched around for the answer and this is my last attempt to finding > the answer. As far as I know directories can't be deleted in CVS, so how should Eclipse offer you that functionality as a frontend?
Regards, Lothar
 Signature Lothar Kimmeringer E-Mail: spamfang@kimmeringer.de PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong questions!
mr_nice_1973@yahoo.com - 27 Oct 2005 20:06 GMT "Why are you forced to use Eclipse?" My company uses Eclipse in conjunction with CVS. If you know of a better, more user friendly application that plugs into CVS, then I'm all ears.
"As far as I know directories can't be deleted in CVS, so how should Eclipse offer you that functionality as a frontend?"
So you're saying I'm stuck with the folder forever? Come on, there's got to be a way to delete the folder.
Alternatively, what about adding a folder to serve as a new project? It would be nice to be able to just right click within the "CVS Repositories" panel and choose "New Folder/Project". But instead, in order to create a new folder, you need to create a new project resource by selecting "Project" under the icon dropdown located on the toolbar. After you make a project on your local machine, you then share the project, which places a "new folder " within the CVS repository. Damn! That's definitely a round about way of adding a new folder for a project within the CVS repository.
Again it would be nice to simply click a folder within the CVS repository, right click and choose "new project" to add a folder for a new project under the selected folder. Likewise it would be nice if I could select a folder/project within the CVS repository, right click and choose delete folder/project.
Again, Eclipse is one UN-user friendly application.
Lothar Kimmeringer - 28 Oct 2005 00:39 GMT > "Why are you forced to use Eclipse?" > My company uses Eclipse in conjunction with CVS. If you know of a > better, more user friendly application that plugs into CVS, then I'm > all ears. The user-friendlyness is dependent on your needs, which I don't know, so I can't help you here I think. I was switching to Eclipse after a couple of tries, so I think my opinion is different from yours anyway.
> "As far as I know directories can't be deleted in CVS, so how > should Eclipse offer you that functionality as a frontend?" > > So you're saying I'm stuck with the folder forever? Come on, there's > got to be a way to delete the folder. I was solving that in the past with going to the CVS-server and deleting the directory directly from the repository.
Problem with CVS is that removed files are stored in a sub- directory "Attic" in a given directory, so if you remove the directory, you're not able anymore to go back to a revision where files from that deleted directory are needed.
It's a flaw in the design of CVS (or RCS to be more concrete) not Eclipse. One workaround is to update only directories, that are not empty, but that might lead to problems somewhere else, where an empty directory is intended.
> Alternatively, what about adding a folder to serve as a new project? It > would be nice to be able to just right click within the "CVS [quoted text clipped - 5 lines] > That's definitely a round about way of adding a new folder for a > project within the CVS repository. There are a full load of alternate CVS-clients, it's not necessary to fully depend on the functionality of the CVS-plugin shipped with Eclipse.
> Again it would be nice to simply click a folder within the CVS > repository, right click and choose "new project" to add a folder for a [quoted text clipped - 3 lines] > > Again, Eclipse is one UN-user friendly application. To be honest, I don't know any IDE with integrated CVS-support that offers the functionalities you need. So it seems that there is no "UN-UN-user friendly" application available.
Good thing with Eclipse is its modularity, so there is no problem with implementing your own CVS-plugin offering all the functionalities you need for your daily work.
Alternatively a change of the versioning-software being used might help as well, e.g. subversion, where directories can be deleted, the history of a moved/renamed file is not lost and where you can add folders remotely from the plugin for Eclipse.
Regards, Lothar
 Signature Lothar Kimmeringer E-Mail: spamfang@kimmeringer.de PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong questions!
Dirk Höpfner - 27 Oct 2005 21:33 GMT mr_nice_1973@yahoo.com schrieb:
> Eclipse has got to be the most UN-user friendly programs that I was > forced to deal with. This problem is based on CVS not eclipse! If you use a diffrent source repository it might be possible to use differend "UN-user friendly" program.
> That being said, does anyone know how to delete a directory within the > "CVS Repositories" View? Is it even possible with Eclipse. I've > searched around for the answer and this is my last attempt to finding > the answer. CVS is no desinged to delete folders, only files are tagged with versions.
If you are able to maintain CVS, you will know how to get rid of unnessecery folders. It is not eclipse!
My advice is to read ore about CVS. http://www.andamooka.org/reader.pl?section=cvsbook http://cvsbook.red-bean.com
Cheers Dirk
mr_nice_1973@yahoo.com - 27 Oct 2005 22:05 GMT I don't buy that it's not Eclipse's fault.
How do you advise adding a folder (for a project) within the CVS repository? As I mentioned above, I have discovered a "round about" way of doing this, but Eclipse has no direct way to adding this folder/project directly within the "CVS Repositories" panel where it would be most logical to enable such a feature..
It's as if Eclipse was designed by programmers, who never consulted with any interface designers. I'm sorry, Eclipse may work for you. (Maybe you're purely a programmer), but for us non-programmers or those who are both, this is one un-friendly software. I shouldn't have to delve too deeply, (if at all), to figure out answers for things
Dirk Höpfner - 27 Oct 2005 23:01 GMT mr_nice_1973@yahoo.com schrieb:
> How do you advise adding a folder (for a project) within the CVS > repository? As I mentioned above, I have discovered a "round about" way > of doing this, but Eclipse has no direct way to adding this > folder/project directly within the "CVS Repositories" panel where it > would be most logical to enable such a feature.. Not from the sight of CVS. Directories are no files and CVS handels them diffrent. If you create a file in a directory and you check it in a directory will be created in your repository. That is based on history developement of CVS.
Modern implementation of CVS repositories got the features of check in empty directories and delete directories after deleting all files in it first and commit and afterwards you can delete a folder.
You can easy create/delete them directly via commandline CVS.
Eclipse got problems with some versions of CVS (known bug) aswell. One is you can't checkin new projects without creating an inital directory first with a same name of the project in your repository before.(See http://www.eclipse.org)
Consult http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.platform.doc.user/re ference/ref-33.htm there is written: "An outgoing deletion is a resource that has been deleted locally. Committing these resources will cause the remote resource to be deleted. Note: in CVS directories are never really deleted from the repository. Instead, files are deleted and empty directories are pruned from your workspace." RTFM
> It's as if Eclipse was designed by programmers, who never consulted > with any interface designers. I'm sorry, Eclipse may work for you. > (Maybe you're purely a programmer), but for us non-programmers or those > who are both, this is one un-friendly software. That's right. It is'nt a click, drag and drop software.It is an IDE for development and follows same rules like JBuilder, NetBeans, Delphi, DevC++, Bloodshed uso. and not fireworks, flash aso.
> I shouldn't have to > delve too deeply, (if at all), to figure out answers for things That's all from me. I can only show you the door. The step through must be done by yourself.
Regards Dirk
Roedy Green - 28 Oct 2005 07:59 GMT >Eclipse has got to be the most UN-user friendly programs that I was >forced to deal with. You have never used EMACS? WordStar? MS Word?
Eclipse is bad mainly because of the documentation or more lack thereof. It is hump to get over, then it is not half bad.
 Signature Canadian Mind Products, Roedy Green. http://mindprod.com Java custom programming, consulting and coaching.
Rob Seegel - 14 Sep 2006 01:22 GMT > That being said, does anyone know how to delete a directory within the > "CVS Repositories" View? Is it even possible with Eclipse. I've > searched around for the answer and this is my last attempt to finding > the answer. What you can do is to have Eclipse delete any empty directories it retrieves from the CVS repository. It does this by using the -P option for the CVS checkout/update commands. You can set this within Eclipse's properties for Team->CVS under the "Files and Folders" tab, there should be an option for Prune empty directories.
Most teams I've been on come up with some sort of policy for dealing with this. This is what I've most often done in the past:
For the most part, we rely on the -P option (or Eclipse setting) to prune empty directories, and this is fine for most things. Typically, we don't purpose create directories under CVS that are not intended to have anything committed to them. These, we create through our build system. We typically like to be able to pull back at least the last three releases from our repository. If you have deleted directories from your repository that contained files that were part of one of these releases, then there's going to problems...
We track the directories that have nothing in them, and periodically review directories from older builds that we no longer require *instant* access to. Before making any changes, we will create an tarball of the existing repository, and archive it off somewhere. Then, we physically remove/move any older directories we want from the repository, and then delete any tags/branches that include one of those directories from the repository. Access to the older repositor(y/ies) can easily be done by opening the tarball in another location.
Then developers can either perform surgery within their local sandboxes to remove the directories that no longer exist within CVS, or they can delete and checkout the project again.
None of this is particularly difficult to do or manage -- its just a bit of a nuisance, and once your baseline has stabilized, it doesn't occur all that often. You might consider subversion as an alternative...
One last thing... in the early stages of project development when many of the biggest changes to project structure are most likely, and no releases have been tagged, it's not uncommon in my experience to delete directories/files from the repository often. Usually this ends up not being a problem -- occasionally, I'll delete something that I wish I didn't. When you *do* decide on deleting a file/directory from the repository, it's critical that it be communicated to others on the team, so they are aware of it, and can plan for it accordingly.
Hope this helps,
Rob
Free MagazinesGet these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...
|
|
|