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

Path canonicalization

From: Arild Fines <arild.fines_at_broadpark.no>
Date: 2004-07-15 08:09:02 CEST

It seems that svn_path_canonicalize() does not strip off the trailing slash
in certain cases:

T:\>.\svn --version
svn, version 1.1.0 (dev build)
   compiled Jul 15 2004, 02:55:47

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet
(http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' schema
  - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' schema
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' schema

T:\>.\svn co file:///repos wc
A wc\foo.txt
Checked out revision 1.

T:\>.\svn info wc
Path: wc
URL: file:///repos
Repository UUID: c458957f-7bfb-894d-8e1a-dfee8bfa7e60
Revision: 1
Node Kind: directory
Schedule: normal
Last Changed Author: Administrator
Last Changed Rev: 1
Last Changed Date: 2004-07-15 07:57:46 +0200 (Thu, 15 Jul 2004)

T:\>.\svn switch --relocate file:///repos/ svn://localhost/ wc
Assertion failed: is_canonical (base, blen), file
\extlibs\subversion-1.1rc1\sub
version\libsvn_subr\path.c, line 113

The stack trace at this point is attached. I ran a similar scenario in the
scenario, and it appears that svn_path_canonicalize() returns the
svn://localhost/ URL unchanged, despite the docstring stating that it will
remove trailing slashes. The current implementation of svn_path_canonicalize
was introduced in r10133.

--
Arild
AnkhSVN: http://ankhsvn.tigris.org
Blog: http://ankhsvn.com/blog
IRC: irc://irc.freenode.net/ankhsvn
"Weaseling out of things is good. It's what separates us from the other
animals....except weasels." -- Homer Simpson


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

Received on Thu Jul 15 08:09:08 2004

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