You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Brevoort, Mike" <Mi...@catholichealth.net> on 2004/12/01 01:46:41 UTC

SVN directory with a trailing space problem

We have a directory in our repository that has a trailing space.  I have
no idea how this happened, but it is what it is.  I can list the parent
directory contents:
 
E:\SVN\ws_dev\conf>svn ls svn://nitcfps03/portal/trunk/src
BuilderApplications/
CHIGoodPracticesApplication /
Modules/
NonVap/
NonVap_Old_08042004/
Portal_Not_Available/
Portlets/
UserInterface/
 
Notice the "CHIGoodPracticesApplication /" line with the trailing space.
I get errors when I try to delete it, update in a parent, show the log
on it, etc.  All of the errors boil down to the fact that SVN can't find
the directory I'm requesting, most likely because it's stripping the
trailing space.  I've tried command line operations while quoting the
path and including the trailing space but this has failed also.  I've
also run an Ethereal trace and here is the TCP stream:
 

 

( success ( 1 2 ( ANONYMOUS ) ( edit-pipeline ) ) ) ( 2 ( edit-pipeline
) 32:svn://nitcfps03/portal/trunk/src ) ( success ( ( ANONYMOUS ) 0: ) )
( ANONYMOUS ( 0: ) ) ( success ( ) ) ( success (
36:9cdcb694-652d-8145-8606-b0ef75cdf628 15:svn://nitcfps03 ) ) (
get-latest-rev ( ) ) ( success ( ( ) 0: ) ) ( success ( 892 ) ) (
check-path ( 0: ( 892 ) ) ) ( success ( ( ) 0: ) ) ( success ( dir ) ) (
get-dir ( 0: ( 892 ) false true ) ) ( success ( ( ) 0: ) ) ( success (
892 ( ) ( ( 13:UserInterface dir 0 false 112 (
27:2004-07-02T19:11:21.567506Z ) ( 9:luisroche ) ) (
19:NonVap_Old_08042004 dir 0 false 351 ( 27:2004-08-05T13:55:59.995871Z
) ( 9:LuisRoche ) ) ( 20:Portal_Not_Available dir 0 false 753 (
27:2004-11-08T18:36:10.145436Z ) ( 9:luisroche ) ) ( 6:NonVap dir 0
false 879 ( 27:2004-11-29T19:16:57.648308Z ) ( 11:markliedtke ) ) (
7:Modules dir 0 false 728 ( 27:2004-11-04T00:41:15.315333Z ) (
12:mikebrevoort ) ) ( 8:Portlets dir 0 false 61 (
27:2004-06-18T15:54:39.579854Z ) ( 9:luisroche ) ) (
19:BuilderApplications dir 0 false 877 ( 27:2004-11-26T18:29:49.950657Z
) ( 12:mikebrevoort ) ) ( 28:CHIGoodPracticesApplication  dir 0 false
442 ( 27:2004-09-13T18:25:36.807191Z ) ( 9:luisroche ) ) ) ) ) 

 

Notice the space after "( 28:CHIGoodPracticesApplication ".

 

Does anyone know how I can delete this directory??

 

Thanks

MIke

 

Re: SVN directory with a trailing space problem

Posted by Brass Tilde <br...@insightbb.com>.
> >>Does anyone know how I can delete this directory??
>
> You should be able to delete remotely:
> svn rm file:///path/to/repos/CHIGoodPracticesApplication%20/

That may work if he wants to actually remove the directory from source
control, but if what he really wants is to rename the directory throughout
his repository so that it doesn't have a space, then he'll likely need to do
the dump.

If he just cares about moving forward, and doesn't care about the presence
of the name in "past history", then svn rm or svn move may work.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: SVN directory with a trailing space problem

Posted by François Beausoleil <fb...@ftml.net>.

Brass Tilde wrote:
>>We have a directory in our repository that has a trailing space.  I
>>have no idea how this happened, but it is what it is.  I can list
>>the parent directory contents:
> 
> 
>>Notice the "CHIGoodPracticesApplication /" line with the trailing
>>space.
> 
> 
>>Does anyone know how I can delete this directory??

You should be able to delete remotely:
svn rm file:///path/to/repos/CHIGoodPracticesApplication%20/

Notice the space was URL-encoded.

Bye !
François

Re: SVN directory with a trailing space problem

Posted by Brass Tilde <br...@insightbb.com>.
> We have a directory in our repository that has a trailing space.  I
> have no idea how this happened, but it is what it is.  I can list
> the parent directory contents:

> Notice the "CHIGoodPracticesApplication /" line with the trailing
> space.

> Does anyone know how I can delete this directory??

What does a dump look like?  Can you edit the dump file to remove the
offending space?  If so, you should be able to dump the repository, remove
the spaces from all occurrences of the directory name, then reload the
repository.

Brad


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org