Re: Problem with add directory using NT cvs server
Milos Kleint <[email protected]> Wed, 03 Jul 2002 13:48:25 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
I'd rather keep the code in AddCommand.java. In other cases the repository value comes from server
anyway and should not be manipulated.
Milos
BTW: I couldn't reproduce the problem you describe..
Christian Stein wrote:
> Adding following lines to "libsrc/.../Client.java" [line 535 ff]
>
> public void updateAdminData(String localDirectory, String repositoryPath,
> Entry entry) throws IOException {
>
> final String absolutePath = localPath + '/' + localDirectory;
> repositoryPath = repositoryPath.substring(getRepository().length() + 1);
> if (repositoryPath.startsWith("/")) { //NOI18N
> repositoryPath = repositoryPath.substring(1);
> }
>
> + if (repositoryPath.startsWith(".")) { //NOI18N
> + repositoryPath = repositoryPath.substring(1);
> + }
> + if (repositoryPath.startsWith("CVSROOT/Emptydir")) { //NOI18N //
> + repositoryPath = repositoryPath.substring(16); // (*)
> + } //
> + if (repositoryPath.startsWith("/")) { //NOI18N
> + repositoryPath = repositoryPath.substring(1);
> + }
>
> Resolves the "/123" problem. Don't know, if this is the right
> position for the fix. Btw: it only works, if _magic_ "CVS/Repository"
> contains "." and not "CVSROOT/Emptydir".
>
> (*) doesn't hurt - but as the rest of the lib assumes that "." is
> provided as the _magic_ marker, it does not fix the problem here.
>
> Christian
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>