On Fri, Mar 20, 2009 at 08:12, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> Daniel Shahaf wrote on Thu, 19 Mar 2009 at 16:13 -0700:
>> +# Regression test for r36686.
>> +def exclude_keeps_hidden_entries(sbox):
>> + "'up --set-depth exclude' doesn't lose entries"
>> +
>> + sbox.build()
>> + wc_dir = sbox.wc_dir
>> +
>> + A_path = os.path.join(wc_dir, 'A')
>> + os.chdir(A_path)
>> +
>> + # the second 'up' used to cause the entry of 'C' to be lost.
>> + svntest.main.run_svn(None, 'up', '--set-depth', 'exclude', 'C')
>> + svntest.main.run_svn(None, 'up', '--set-depth', 'exclude', 'D')
>> + # we could grep the 'entries' file, but...
>> + expected_stderr = ".*svn: 'C' is already under version control.*"
>> + svntest.actions.run_and_verify_svn(None, None, expected_stderr,
>> + 'mkdir', 'C')
>> +
>
> The reason I use 'mkdir' here is that 'info' doesn't acknowledge the
> existence-in-repos of 'C'; for example:
>
> % cd greek-tree
> % svn up --set-depth exclude A
> D A
>
> ### The next two have different outputs (good):
> % svn mkdir A
> ..\..\..\subversion\libsvn_wc\adm_ops.c:1394: (apr_err=150002)
> svn: 'A' is already under version control
>
> % svn mkdir foo
> A foo
>
> ### The next two don't (not good):
> % svn info foo
> foo: (Not a versioned resource)
>
> ..\..\..\subversion\svn\info-cmd.c:562: (apr_err=200000)
> svn: A problem occurred; see other errors for details
>
> % svn info A
> A: (Not a versioned resource)
>
> ..\..\..\subversion\svn\info-cmd.c:562: (apr_err=200000)
> svn: A problem occurred; see other errors for details
>
> %
>
>
> Shouldn't 'info' act differently for non-existent targets and for
> excluded targets?
Definitely!
Sounds like an XFAIL test in the making :-)
Cheers,
-g
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1364209
Received on 2009-03-20 13:22:05 CET