[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn ls shows escaped paths

From: <cmpilato_at_collab.net>
Date: 2003-05-28 20:24:30 CEST

"SteveKing" <steveking@gmx.ch> writes:

> Hi,
>
> unlike other commands
>
> svn ls url
>
> does not unescape the paths it shows as output.
> So if a file with e.g. a space is in the repository
> it isn't shown correctly but with the %20 escape
> sequence in it.
>
> Shouldn't this be changed?

Try this patch:

* subversion/libsvn_ra_dav/fetch.c
  (svn_ra_dav__get_dir): URI-decode the dirent names before using them
    as hash keys.

Index: subversion/libsvn_ra_dav/fetch.c
===================================================================
--- subversion/libsvn_ra_dav/fetch.c (revision 6063)
+++ subversion/libsvn_ra_dav/fetch.c (working copy)
@@ -946,7 +946,9 @@
           if (propval != NULL)
             entry->last_author = propval->data;
           
- apr_hash_set(*dirents, svn_path_basename(childname, pool),
+ apr_hash_set(*dirents,
+ svn_path_uri_decode(svn_path_basename(childname, pool),
+ pool),
                        APR_HASH_KEY_STRING, entry);
         }
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 28 20:24:19 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.