This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 53625 - Wrong CVS/Repository value
Summary: Wrong CVS/Repository value
Status: RESOLVED DUPLICATE of bug 52296
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS library (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 06:48 UTC by pkaminsk
Modified: 2007-01-04 17:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pkaminsk 2005-01-19 06:48:57 UTC
On initial checkout into an empty directory,
javacvs will create a CVS/Repository file with the
wrong value inside.  Instead of a root-relative
path to the equivalent directory on the server, it
will also include the name of the first file in
the directory.  This is wrong and will cause later
commands to fail with strange errors.

The error can be fixed by stripping the filename
from the repositoryPath in Client.updateAdminData.
 Replace the appropriate line with:
repositoryPath =
repositoryPath.substring(getRepository().length()
+ 1, repositoryPath.lastIndexOf('/'));

Tested with HEAD of javacvs (Client.java revision
1.73), and CVSNT 2.0.4.

Relevant fragment of cvs-log.in follows.  Without
the fix above, the Ideanest/CVS/Repository file
would be set to "Ideanest/.classpath" rather than
"Ideanest".


I LOVE YOU
Valid-requests Root Valid-responses valid-requests
Directory Max-dotdot Static-directory Sticky Entry
EntryExtra Kopt Checkin-time Modified Is-modified
UseUnchanged Unchanged Notify NotifyUser
Questionable Case Utf8 Argument Argumentx
Global_option Gzip-stream
wrapper-sendme-rcsOptions Set expand-modules ci co
chown setowner setperm chacl setacl listperm lsacl
setpass passwd update diff log rlog add remove
update-patches status ls rdiff tag rtag import
admin export history release watch-on watch-off
watch-add watch-remove watchers editors init
annotate rannotate noop version Module-Prefix
Current-Module Rootless-stream-modification
Kerberos-encrypt Gssapi-encrypt Protocol-encrypt
Gssapi-authenticate Protocol-authenticate
read-cvsrc read-cvsrc2 Error-If-Reader      
ok
Module-expansion Ideanest
ok
Set-sticky Ideanest/
c:/code/cvs/cvsrepo/work/Ideanest/
D2003.06.09.01.16.00
Clear-static-directory Ideanest/
c:/code/cvs/cvsrepo/work/Ideanest/
Set-sticky Ideanest/
c:/code/cvs/cvsrepo/work/Ideanest/
D2003.06.09.01.16.00
Mod-time 9 Jun 2003 01:15:10 -0000
MT +updated
MT text U 
MT fname Ideanest/.classpath
MT newline
MT -updated
Updated Ideanest/
c:/code/cvs/cvsrepo/work/Ideanest/.classpath
/.classpath/1.1///D2003.06.09.01.16.00
u=rw,g=rw,o=rw
329
Comment 1 pkaminsk 2005-01-19 23:14:29 UTC

*** This issue has been marked as a duplicate of 52296 ***