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

Re: svn commit: r40485 - in trunk/subversion: svn tests/cmdline

From: Hyrum K. Wright <hyrum_at_hyrumwright.org>
Date: Fri, 13 Nov 2009 08:55:22 -0600

On Nov 12, 2009, at 5:41 PM, Julian Foad wrote:

> Hyrum K. Wright wrote:
>> Author: hwright
>> Date: Thu Nov 12 10:21:32 2009
>> New Revision: 40485
>>
>> Log:
>> Make "svn export $repos/blah '.'" do what you think it would, namely, put a
>> file named "blah" into the cwd.
>>
>> * subversion/tests/cmdline/export_tests.py
>> (export_to_explicit_cwd): New.
>> (test_list): Run the new test.
>>
>> * subversion/svn/export-cmd.c
>> (svn_cl__export): If the explicit TO path is '.', treat it as if it weren't
>> given.
>
> I understand why you did it, but... ugh. Special case. The built-in help
> doesn't describe it. "." now behaves differently from
> "../name-of-this-dir". Are you sure you really really want this?

I don't know what the current behavior of 'svn export $url ../this-dir' is. I *do* know that a one-argument export uses the cwd as the export target, and explicitly supplying the cwd should behave the same as implicitly supplying one via the one-argument mechanism.

Additionally, poking around the export code has demonstrated a number of scenarios where it falls flat on its face. *sigh*

-Hyrum

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2417575
Received on 2009-11-13 15:56:18 CET

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