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

Re: svn commit: r1089856 - /subversion/trunk/subversion/tests/cmdline/switch_tests.py

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 07 Apr 2011 13:44:24 +0100

philip_at_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
Received on 2011-04-07 14:45:03 CEST

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.