Bug 11084 - Feature request: allow connection to CVS repository for users not having update rights
Summary: Feature request: allow connection to CVS repository for users not having upda...
Status: RESOLVED DUPLICATE of bug 15490
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Kevin McGuire CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-11 04:28 EST by Wolf Siberski CLA
Modified: 2002-09-09 14:39 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolf Siberski CLA 2002-03-11 04:28:48 EST
Currently when a CVS user has no update access to a repository,
he can't connect to this repository. Since this right is only 
needed to find module names, but not to work with the files stored
in the repository, there should be a way to specify the module name
explicitly. The best solution would be a CVS connection wizard
(see following quote from the eclipse newsgroup).

James Moody (James_Moody@oti.com) wrote:
> An ideal solution would be a "Checkout" wizard into which you can type 
> the connection information and the name of the module to checkout, along 
> with an optional tag, and the Finish button would check out this module. 
> No browsing necessary, and this will work even if you don't have update 
> access. If you would like such a feature, please log a feature request 
> to bugzilla (dev.eclipse.org/bugs) in the VCM component.
> 
> > Of course it would be useful only if an interesting portion of Eclipse 
users
> > have to deal with CVS repositories that do not allow anonymous users to
> > update.
> 
> I think such a wizard as I describe would be useful for lots of people, 
> in the same way as having some of the basic cvs commands available in 
> the team menu are useful. It's a lot faster to type the module and tag 
> into a wizard and hit Finish than it is to navigate a (possibly slow) 
> tree which displays the repository, drill down into the right version, 
> find the module I want, and check it out. If you know what you want, 
> it's faster just to type it in.
Comment 1 Michael Valenta CLA 2002-03-11 08:45:54 EST
Is update access only restricted at the root level of the repository. In other 
words, once a project is checked out, can the user perform updates to get the 
latest from HEAD?
Comment 2 Wolf Siberski CLA 2002-03-11 11:38:05 EST
I must admit that I'm a CVS dummy. What I know is that I have
rights to checkout a specific module (HEAD or by tag) and even 
to checkin changes within that module (using WinCVS).
So probably only the root level access is disallowed.

My problems occur when I work on the open source (sub-)project
http://edutella.jxta.org; if you are interested I could
manage giving you a CVS account for testing purposes. 
Unfortunately I don't have any influence on CVS administration.
Comment 3 Michael Valenta CLA 2002-05-07 22:19:50 EDT
We have just released the ability to share a local project with an existing 
remote project. This will allow you to checkout your project by performing the 
following steps.

1) Create an empty local project (of the proper type)
2) Choose Team/Share Project
3) Select or enter your repository information
4) On the next wizard page enter the module path if it differs from the project 
name
5) Click finish
6) Select which tag to sync with (most likely HEAD)
7Z) cathc up to the incoming additions from the remotely existing project
Comment 4 Wolf Siberski CLA 2002-05-24 04:37:22 EDT
With build 20020520 this works already for me with one minor annoyance:
When I add a directory to the repository, it is added, but the add
of the first file contained in the directory always fails. When I try 
again to add the files to the repository, the add succeeds.
This may be a server problem, but I never get any problems when doing
the same using the commmand line cvs.

Let me add that I'm quite excited to be able using eclipse for cvs
versioning now. This is a quantum leap in efficiency and convenience
compared to plain cvs. Thanks for your efforts.

This is a sample cvs console output:

 ***
cvs 
add "src" "src/net" "src/net/jxta" "src/net/jxta/edutella" "src/net/jxta/edutel
la/ecdm"
  Directory /cvs/edutella/src added to the repository
  Directory /cvs/edutella/src/net added to the repository
  Directory /cvs/edutella/src/net/jxta added to the repository
  Directory /cvs/edutella/src/net/jxta/edutella added to the repository
  3 file(s) commited
  Processing log script arguments...
  Mailing the commit message to cvs@edutella.jxta.org (from wsjxta@jxta.org)
  Directory /cvs/edutella/src/net/jxta/edutella/ecdm added to the repository
ok (took 0:01.182)
***

***
cvs add -
ko "src/net/jxta/edutella/ecdm/RDFReifiedStatement.java" "src/net/jxta/edutella
/ecdm/EduLiteral.java" "src/net/jxta/edutella/ecdm/EduRule.java" "src/net/jxta/
edutella/ecdm/EduResultSet.java" "src/net/jxta/edutella/ecdm/EduResult.java" "s
rc/net/jxta/edutella/ecdm/EduStatementLiteral.java" "src/net/jxta/edutella/ecdm
/EduQuery.java" "src/net/jxta/edutella/ecdm/EduVariableBinding.java" "src/net/j
xta/edutella/ecdm/ECDMException.java" "src/net/jxta/edutella/ecdm/RDFModel.java
" "src/net/jxta/edutella/ecdm/EduResultTuple.java" "src/net/jxta/edutella/ecdm/
EduConditionLiteral.java"
  cvs [server aborted]: received broken pipe signal
  cvs server: Invalid reply from auth server (wsjxta) looking for (DONE)
failed due to a server error (took 0:00.651)
***
Comment 5 Michael Valenta CLA 2002-05-24 08:34:16 EDT
It looks like the server is running a script on add. There are two possiblities 
here. Either the script doesn't like the "-ko" option or the script can't 
handle multiple commands being issued over the same connection (more likely 
since it would explain why it succeeded the next time). For the first, could 
you try a "cvs add -ko filename" with the command line client to ensure that it 
actually does work. For the second, perhaps we could investigate adding a 
preference which will use a single command to do all the adds.
Comment 6 Wolf Siberski CLA 2002-05-24 09:03:29 EDT
add -ko works on the command line. Your guess that the server runs a script
on add is most probably correct, because all changes to cvs are automatically 
mailed to a cvs mailing list. 
You may as well close this feature request; for me it works good enough, I just
wanted to bring this behaviour to your attention.
Comment 7 Kevin McGuire CLA 2002-05-24 11:11:13 EDT
We will keep it open to revisit post 2.0, since you kindly indicate you can 
manage with current behaviour.
Comment 8 Kevin McGuire CLA 2002-05-28 15:17:02 EDT
(Correcting milestone to F2)
Comment 9 Wolf Siberski CLA 2002-06-21 07:00:43 EDT
With F3 (maybe also earlier versions, I didn't try for a while)
it isn't possible anymore to use 'Check Out As...'.
'Check out as Project' works, but this doesn't allow creation
of a Java project. I wonder why CVS is handled differently here.
Comment 10 Michael Valenta CLA 2002-09-09 14:39:00 EDT
Reopening
Comment 11 Michael Valenta CLA 2002-09-09 14:39:53 EDT

*** This bug has been marked as a duplicate of 15490 ***