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

'svn info excluded_item'? (was: svn commit: r36689)

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Fri, 20 Mar 2009 09:12:11 +0200 (Jerusalem Standard Time)

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?

> +
> #----------------------------------------------------------------------
> # Check that "svn resolved" visits tree-conflicts *on unversioned items*
> # according to the --depth parameter.
> @@ -2446,6 +2465,7 @@ test_list = [ None,
> excluded_path_update_operation,
> excluded_path_misc_operation,
> excluded_receive_remote_removal,
> + exclude_keeps_hidden_entries,
> tree_conflicts_resolved_depth_empty,
> tree_conflicts_resolved_depth_files,
> tree_conflicts_resolved_depth_immediates,
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=495&dsMessageId=1358868
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1362351
Received on 2009-03-20 08:12:33 CET

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.