Re: [PATCH] git-svn: keep leading slash when canonicalizing paths (fallback case)

2012-10-05 Thread Junio C Hamano
Eric Wong writes: > Jonathan Nieder wrote: >> Noticed by forcing the fallback on and running tests. Without this >> patch, t9101.4 fails: >> >> Bad URL passed to RA layer: Unable to open an ra_local session to \ >> URL: Local URL 'file://homejrnsrcgit-scratch/t/trash%20directory.\ >> t9101-

Re: [PATCH] git-svn: keep leading slash when canonicalizing paths (fallback case)

2012-10-05 Thread Eric Wong
Jonathan Nieder wrote: > Noticed by forcing the fallback on and running tests. Without this > patch, t9101.4 fails: > > Bad URL passed to RA layer: Unable to open an ra_local session to \ > URL: Local URL 'file://homejrnsrcgit-scratch/t/trash%20directory.\ > t9101-git-svn-props/svnrepo' conta

[PATCH] git-svn: keep leading slash when canonicalizing paths (fallback case)

2012-10-05 Thread Jonathan Nieder
Subversion's svn_dirent_canonicalize() and svn_path_canonicalize() APIs keep a leading slash in the return value if one was present on the argument, which can be useful since it allows relative and absolute paths to be distinguished. When git-svn's canonicalize_path() learned to use these function