Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 65301

Summary: [PatchAttached] A faster way to create new repositories
Product: [Eclipse Project] Platform Reporter: Martin Aeschlimann <martinae>
Component: TeamAssignee: Platform Team Inbox <platform-team-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: fraenkel, tlroche
Version: 3.0Keywords: helpwanted
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Simple patch to accept CVS location
none
Allows host to take a complete CVS string none

Description Martin Aeschlimann CLA 2004-06-02 09:36:31 EDT
RC1

To create a new repository conection, I have to fill out several fields. It
would be nice to do that on one 'paste', as I mostly get full location strings like
':extssh:maeschli@ottcvs1.ott.oti.com:/home/cvs/zrheclipse' from mails, or from
the 'copy to clipboard' action on connections
Comment 1 Tom Roche CLA 2005-03-28 19:36:55 EST
Another big source of CVS location strings is SourceForge: _every_
project's CVS page gives the commandline that project. It Would Be
Nice if the Add CVS Repository wizard could take a location string as
input.
Comment 2 Michael Fraenkel CLA 2005-03-28 23:44:04 EST
Created attachment 19267 [details]
Simple patch to accept CVS location

Here is an initial attempt which I don't much like.  I was trying to avoid
changing the UI.

1. The password cannot be retrieved
2. Incorporates bad UI style.  The CVS location is pulled from the host
information when a : is detected as the first character.
Comment 3 Michael Valenta CLA 2005-03-29 08:54:45 EST
Thanks for the patch. I'll hav a look at it after M6 ships.
Comment 4 Michael Fraenkel CLA 2005-03-29 09:29:25 EST
Created attachment 19272 [details]
Allows host to take a complete CVS string

An alternative way to allow CVS location strings.  My original intent was to
allow the host to accept the initial CVS location and the other fields to
override.  Without changes to CVSRepositoryLocation you can only change a
subset of the values.
The current patch either uses the host information as the location or combines
the fields to create one.
Comment 5 Michael Valenta CLA 2005-03-31 11:29:27 EST
I think I prefer the first approach if you don't want to change the UI. This 
approach could support pasting into any of the fileds and not just host. For 
the second aproach, I think we would need a separate field for the complete 
string. My feeling is that it will be too confusing without it. Thoughts?
Comment 6 Tom Roche CLA 2005-03-31 11:48:59 EST
Comment #5 From Michael Valenta  2005-03-31 11:29
> I think we would need a separate field for the complete string. My
> feeling is that it will be too confusing without it.

I concur: I suspect the separate field will also be more usable.
Comment 7 Michael Fraenkel CLA 2005-03-31 12:39:50 EST
The first approach is more usable because it makes it obvious.  The password
issue would need to be resolved.  Also, preventing notification while all the
fields are being updated would also be good.

The second approach was only done so the password would be used.  The issue I
had with an extra field was the overall intent.  Was it an either or case where
you used the new field or the separated fields?  Was it specifying an override
where the full location is nothing more than a template.  I guess it could be a
field and a button to apply it to the separate fields.

A third approach is just a different page altogether which is just the location
for those advanced users.
Comment 8 Michael Valenta CLA 2005-04-04 14:31:48 EDT
I have released the patch from comment 2 to HEAD.
Comment 9 Michael Valenta CLA 2005-05-10 10:10:09 EDT
Verified