phi...@apache.org writes:

> Author: philip
> Date: Thu Apr  7 12:34:33 2011
> New Revision: 1089856
>
> URL: http://svn.apache.org/viewvc?rev=1089856&view=rev
> Log:
> Make switch_tests.py 38 into a PASS.  It was failing because of an
> 'R'/'A' difference between WCNG status and the old entries-based
> status (for which we have testsuite support) but apart from that it
> was behaving in the way the test expected.

> -    # This should be:
> -    # 'R/G'       : Item(status='A ', copied='+', wc_rev='-'),
> -    # But is:
> -    'R/G'       : Item(status='  ', copied='+', wc_rev='-'),
> +    'R/G'       : Item(status='R ', copied='+', wc_rev='-', entry_status='A 
> '),

This is the bit that makes the test PASS.  It'a a test that switches a
subdir and then copies the parent of the switched subdir.  The copied,
switched subdir shows up as 'R' and when committed and when the copy is
committed it gives:

------------------------------------------------------------------------
r2 | jrandom | 2011-04-07 13:11:28 +0100 (Thu, 07 Apr 2011) | 1 line
Changed paths:
   A /R (from /A/D:1)
   R /R/G (from /A/B/E:1)

Commit added folder
------------------------------------------------------------------------

I made it a PASS because the behaviour we are getting is essentially
what the test expected.

I'm not really sure how a copied switch should behave when committed, is
the above correct?

-- 
Philip

Reply via email to