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

Re: Incorrectness in svn_opt__split_arg_at_peg_revision()

From: Troy Curtis Jr <troycurtisjr_at_gmail.com>
Date: Thu, 28 Aug 2008 21:58:52 -0400

On Wed, Aug 27, 2008 at 8:44 PM, <scottnotrobot_at_gmail.com> wrote:
> one more observation in case it helps... this problem seems limited to
> filenames with @ as the first character only... if the @ comes after the
> first, things seem ok to me:
> i.e. this works in 1.5.1:
> mkdir dir
> svn add dir
> svn ci -m test dir
> touch dir/a_at_file
> svn add dir/a_at_file
> svn ci -m test dir/a_at_file
> -Scott

Yep the reason here is that 'dir/@file' is split into 'dir/' and
'@file' (because the characters following the '@' symbol are detected
as a peg revision). Then 'dir/' is canonicalized into 'dir' (trailing
slashes are not canonical). Then it is stuck back together as
'dir_at_file' which of course doesn't exist.

dir/a_at_file is split into 'dir/a' and '@file', but now there is no
trailing slash for it to 'canonicalize' away so it is joined back
together as 'dir/a_at_file'.


"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-08-29 03:59:22 CEST

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.