Bug 36317 - [CVS FAQ] "Team/Compare with" fails on nonstandard CVS port
Summary: [CVS FAQ] "Team/Compare with" fails on nonstandard CVS port
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows NT
: P3 major (vote)
Target Milestone: 3.0   Edit
Assignee: Platform-VCM-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: faq
Depends on:
Blocks:
 
Reported: 2003-04-09 16:26 EDT by Mark S. Williams CLA
Modified: 2003-05-26 14:54 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 Mark S. Williams CLA 2003-04-09 16:26:41 EDT
Given this CVS repository location in the CVS Repository Exploring Perspective:

:pserver:msw@cvs_server.safeway.com:3401/usr/cvs/root

If the user selects Team/Compare With/Revision...(or any CVS-related compare 
action), the connection times out, and the CVS Repository Exploring Perspective 
is changed to:

:pserver:msw@cvs_server.safeway.com:/usr/cvs/root
:pserver:msw@cvs_server.safeway.com:3401/usr/cvs/root

Even those CVS operations that succeed, such as commit, create the spurious 
repository location with the default port.
Comment 1 Michael Valenta CLA 2003-04-09 16:55:32 EDT
Are you using the "official" 2.1 release? I am unable to reproduce this using 
simple scenarios on 2.1 (i.e. I created a repository location with a port 
specified and Compare, Replace, Commit and other operations work fine without 
creating another repository location). If you start with a fresh Eclipse, 
define the repository location using a custom port, checkout a project and 
perform operations on it, does the problem occur? If so, give the exact steps 
that you took. 
Comment 2 Mark S. Williams CLA 2003-04-10 21:19:45 EDT
Ok, it looks like I have a more basic problem.  I can't see any modules when I 
try to expand the HEAD tag in the CVS Repository Exploring Perspective. 
(When I reported the original bug, I had cheated and checked out the project to 
my Eclipse workspace using WinCVS).

Version: 2.1.0
Build id: 200303272130
CVS server on AIX 4.3

From /etc/services:
cvspserver 3401/tcp

From /etc/inetd.conf (per Eclipse CVS FAQ):
cvspserver stream  tcp nowait root /appl/cvs/bin/cvs  cvs -f 
--allow-root=/appl/cvs/root

The following CVS trace was produced from a fresh Eclipse install and fresh 
workspace, after setting up a new repository location and double-clicking on 
the HEAD tag:

I LOVE YOU
Valid-responses ok error M E Set-sticky Checked-in Mod-time 
Clear-static-directo
ry Updated Valid-requests Removed Clear-sticky Update-existing Module-expansion
MT New-entry Set-static-directory Merged Created Notified Remove-entry Template
Copy-file
valid-requests
Valid-requests Root Valid-responses valid-requests Repository Directory 
Max-dotd
ot Static-directory Sticky Checkin-prog Update-prog Entry Kopt Checkin-time 
Modi
fied Is-modified UseUnchanged Unchanged Notify Questionable Case Argument 
Argume
ntx Global_option Gzip-stream wrapper-sendme-rcsOptions Set expand-modules ci 
co
 update diff log rlog add remove update-patches gzip-file-contents status rdiff
tag rtag import admin export history release watch-on watch-off watch-add 
watch-
remove watchers editors init annotate rannotate noop version
ok
Root /appl/cvs/root
CMD> cvs version
version
M Concurrent Versions System (CVS) 1.11.1p1 (client/server)
ok
RESULT> Status OKorg.eclipse.team.cvs.core code=0 ok null
CMD> cvs -n update -d ""
Global_option -n
Argument -d
Directory .
/appl/cvs/root/
Argument .
Directory .
/appl/cvs/root/
update
E cvspserver server: Updating .
E cvspserver server: New directory `CVSROOT' -- ignored
E cvspserver server: New directory `aa' -- ignored
E cvspserver server: New directory `bb' -- ignored
E cvspserver server: New directory `cc' -- ignored
E cvspserver server: New directory `dd' -- ignored
E cvspserver server: New directory `ee' -- ignored
E cvspserver server: New directory `ff' -- ignored
E cvspserver server: New directory `gg' -- ignored
ok
RESULT> Status ERRORorg.eclipse.team.cvs.core code=1 The following warnings 
were
 reported while performing the "cvs update" command. null children=[Status 
ERROR
org.eclipse.team.cvs.core code=-14 cvspserver server: Updating . null Status 
ERR
ORorg.eclipse.team.cvs.core code=-14 cvspserver server: New directory `CVSROOT'
-- ignored null Status ERRORorg.eclipse.team.cvs.core code=-14 cvspserver 
server
: New directory `aa' -- ignored null Status ERRORorg.eclipse.team.cvs.core 
code=
-14 cvspserver server: New directory `bb' -- ignored null Status 
ERRORorg.eclips
e.team.cvs.core code=-14 cvspserver server: New directory `cc' -- ignored nul
l Status ERRORorg.eclipse.team.cvs.core code=-14 cvspserver server: New 
director
y `dd' -- ignored null Status ERRORorg.eclipse.team.cvs.core code=-14 cvspserv
er server: New directory `ee' -- ignored null Status ERRORorg.eclipse.team.
cvs.core code=-14 cvspserver server: New directory `ff' -- ignored null Statu
s ERRORorg.eclipse.team.cvs.core code=-14 cvspserver server: New directory `gg'
-- ignored null]
I LOVE YOU
Valid-responses ok error M E Set-sticky Checked-in Mod-time 
Clear-static-directo
ry Updated Valid-requests Removed Clear-sticky Update-existing Module-expansion
New-entry Set-static-directory Merged Created Notified Remove-entry Template 
Cop
y-file
valid-requests
Valid-requests Root Valid-responses valid-requests Repository Directory 
Max-dotd
ot Static-directory Sticky Checkin-prog Update-prog Entry Kopt Checkin-time 
Modi
fied Is-modified UseUnchanged Unchanged Notify Questionable Case Argument 
Argume
ntx Global_option Gzip-stream wrapper-sendme-rcsOptions Set expand-modules ci 
co
 update diff log rlog add remove update-patches gzip-file-contents status rdiff
tag rtag import admin export history release watch-on watch-off watch-add 
watch-
remove watchers editors init annotate rannotate noop version
ok
Root /appl/cvs/root
CMD> cvs co -c
Argument -c
Directory .
/appl/cvs/root/
co
ok
RESULT> Status OKorg.eclipse.team.cvs.core code=0 ok null



Comment 3 Michael Valenta CLA 2003-04-11 09:14:38 EDT
You are using a custom server executable and this is throwing off the message 
parsing that is used to populate the CVS Repositories View. From the context 
menu of the repository location, open the Properties page. On the CVS 
properties page (the only one present), select "Expect a custom program name" 
(at the bottom) and enter "cvspserver". This should fix the problem.

The above should be added to the FAQ.
Comment 4 Mark S. Williams CLA 2003-04-11 12:24:37 EDT
That did the trick!  Thanks very much for your help.
Comment 5 Michael Valenta CLA 2003-04-11 12:34:08 EDT
Reopening until this is added to the FAQ
Comment 6 Michael Valenta CLA 2003-04-11 14:14:32 EDT
Entry added to FAQ