-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel,
Yes this happens only if you give '.' and none of the parents of '.' are
under version control.
Following is even worse.
$cd /tmp
$mkdir addme
$touch addme/valuable.c
$svn mkdir --parents addme
Assuming /tmp itself is not an svn wc(which is almost the case)
svn mkdir --parents wipes off addme.
With regards
Kamesh Jayachandran
Daniel Shahaf wrote:
> Kamesh Jayachandran wrote on Fri, 2 May 2008 at 16:13 +0530:
>> from_svn_wc/a/b/c/d$svn mkdir --parents .
>> Segmentation fault with your patch.
>>
>
> Also without it. With current (unpatched) trunk:
>
> 0:% svnversion
> exported
> 0:% svn mkdir --parents .
> lt-svn: subversion/libsvn_subr/path.c:119: svn_path_join: Assertion
> `is_canonical(base, blen)' failed.
> zsh: abort svn mkdir --parents .
>
> 0:% svn info | grep URL
> URL: https://svn.collab.net/repos/svn/trunk
> 0:% svn mkdir --parents .
> lt-svn: subversion/libsvn_subr/path.c:119: svn_path_join: Assertion
> `is_canonical(base, blen)' failed.
> zsh: abort svn mkdir --parents .
>
>> With regards
>> Kamesh Jayachandran
>>
>> Senthil Kumaran S wrote:
>>> Senthil Kumaran S wrote:
>>>> Is this an intended behavior? If not the following patch fixes this,
>>>> which
>>>> changes/removes a line from the public API svn_client_add4 (I know
>>>> which is not
>>>> allowed, but what is the best way to go about this?)
>>>>
>>>> [[[
>>>> 'svn mkdir --parents' shows absolute paths
>>>>
>>>> * subversion/libsvn_client/add.c
>>>> (svn_client_add4): Do not change the path supplied to absolute path.
>>>>
>>>> Patch by: stylesen
>>>> ]]]
>>> Forgot to attach the patch in the previous email.
>>>
>>> Thank You.
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
>>> For additional commands, e-mail: dev-help_at_subversion.tigris.org
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.2.6 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>>
>> iD8DBQFIGvBL3WHvyO0YTCwRAvYNAJ48Vf6UT15+j1rTlK2LworQhwJF4QCgjqUd
>> EsoMadQ+Q4v/FFEy/bBP+Hs=
>> =vJEl
>> -----END PGP SIGNATURE-----
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: dev-help_at_subversion.tigris.org
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIGvxX3WHvyO0YTCwRAkpjAJsF2a5+AUChfdd15OTWpQJLeAy44ACglnOT
FifPPU9XlbnL5phamE7g+nE=
=5XgG
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-02 13:35:37 CEST