Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [RFC][PATCH] Subclipse "autoadd" functionality

subclipse
Discussion topic

Back to topic list

[RFC][PATCH] Subclipse "autoadd" functionality

Author "Magnus Naeslund(t)" <mag at fbab dot net>
Full name "Magnus Naeslund(t)" <mag at fbab dot net>
Date 2005-03-16 12:49:04 PST
Message *** This patch is alpha quality, it might eat your cat **

This is a request for comments, also I want to know is if a polished
version of this patch would be accepted by you.

Explaination of as what I'm trying to accomplish:

A while ago I got a patch merged that made it possible to import stuff
that has been checked out by other means than from within Eclipse via a
PSF file (see mail "Subclipse PSF enhancement").

There are several gains in this:
You have the whole repository layout intact.
You can work together with outside tools that need the whole tree (like
a build process).

I'm working at a big financial company, and right now where we are
evaluation migration to eclipse + subversion instead of WSAD + ClearCase.

WSAD + ClearCase works like this: you check out a whole tree to some
directory and then import the projects to WSAD. You can now work from
WSAD and do some more advanced ClearCase maneuvers in the ClearCase
explorer GUI or cleartool command line utility.

I ran into a problem when using subclipse like this: when you create a
new project it would be nice to just "svn add" it to the parent
directory that is already under subversion control.

The usual way you do it in subclipse is to right-click on the project
and then go Team->Share and then you have to be aware of the repository
layout to be able to commit it to the right place.
This is big inconvenice problem to us, ClearCase just throws up a nice
dialog saying "Hey wanna add this to source control?".

So I made patch that does this. It listens for .project file creations
and checks if the parent directory is under subversion control, and just
adds the project directory.
After this is done the normal Team menu works, and you can do commit as
usual.

There are several things not finished in this patch.
I want to make it more safe (like checking for isManaged() and stuff
like that), and add a dialog asking the user if it really wants to add
the project to source control.
Right now it just goes ahead and adds it without saying anything.

Some credit goes to Panagiotis Korros, I stole the idea of listening for
metadata changed from his Issue 216 patch :)

This is how to test it:

svn mkdir svn://server/repo/AutoAddTest
svn co svn://server/repo/AutoAddTest /tmp/AutoAddTest

In eclipse, create Project "Test1" in directory /tmp/AutoAddTest/Test1

After it has created the project, it should be acessible thru the Team menu.

Done!

So what do you think?
Do I have any chance of getting this accepted (after some changes)?

Regards,
Magnus Naeslund

« Previous message in topic | 1 of 17 | Next message in topic »

Messages

Show all messages in topic

[RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(t)" <mag at fbab dot net> "Magnus Naeslund(t)" <mag at fbab dot net> 2005-03-16 12:49:04 PST
     Re: [RFC][PATCH] Subclipse "autoadd" functionality Mark Phippard <MarkP at softlanding dot com> Mark Phippard <MarkP at softlanding dot com> 2005-03-16 13:10:04 PST
         Re: [RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(t)" <mag at fbab dot net> "Magnus Naeslund(t)" <mag at fbab dot net> 2005-03-16 13:24:08 PST
             Re: [RFC][PATCH] Subclipse "autoadd" functionality Mark Phippard <MarkP at softlanding dot com> Mark Phippard <MarkP at softlanding dot com> 2005-03-16 13:26:32 PST
                 Re: [RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(t)" <mag at fbab dot net> "Magnus Naeslund(t)" <mag at fbab dot net> 2005-03-16 13:34:16 PST
                     Re: [RFC][PATCH] Subclipse "autoadd" functionality Mark Phippard <MarkP at softlanding dot com> Mark Phippard <MarkP at softlanding dot com> 2005-03-16 13:46:19 PST
                         Re: [RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(t)" <mag at fbab dot net> "Magnus Naeslund(t)" <mag at fbab dot net> 2005-03-16 13:56:50 PST
                             Re: [RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(t)" <mag at fbab dot net> "Magnus Naeslund(t)" <mag at fbab dot net> 2005-03-16 14:07:25 PST
                                 Re: [RFC][PATCH] Subclipse "autoadd" functionality pkorros Panagiotis Korros 2005-03-17 00:25:16 PST
                                     Re: [RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(w)" <mag at fbab dot net> "Magnus Naeslund(w)" <mag at fbab dot net> 2005-03-17 00:49:52 PST
                                         Re: [RFC][PATCH] Subclipse "autoadd" functionality pkorros Panagiotis Korros 2005-03-17 01:02:28 PST
                                             Re: [RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(w)" <mag at fbab dot net> "Magnus Naeslund(w)" <mag at fbab dot net> 2005-03-17 04:06:51 PST
                                                 Re: [RFC][PATCH] Subclipse "autoadd" functionality pkorros Panagiotis Korros 2005-03-17 04:40:54 PST
                                                     Re: [RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(w)" <mag at fbab dot net> "Magnus Naeslund(w)" <mag at fbab dot net> 2005-03-17 04:46:58 PST
                                                         Re: [RFC][PATCH] Subclipse "autoadd" functionality pkorros Panagiotis Korros 2005-03-17 05:05:44 PST
                                                     Re: [RFC][PATCH] Subclipse "autoadd" functionality Mark Phippard <MarkP at softlanding dot com> Mark Phippard <MarkP at softlanding dot com> 2005-03-17 05:15:06 PST
                     Re: [RFC][PATCH] Subclipse "autoadd" functionality "Magnus Naeslund(t)" <mag at fbab dot net> "Magnus Naeslund(t)" <mag at fbab dot net> 2005-03-16 13:49:29 PST
Messages per page: