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

Re: svn commit: r1076726 - /subversion/trunk/subversion/tests/cmdline/log_tests.py

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sun, 6 Mar 2011 22:14:36 +0200

pburba_at_apache.org wrote on Thu, Mar 03, 2011 at 19:09:01 -0000:
> Author: pburba
> Date: Thu Mar 3 19:09:01 2011
> New Revision: 1076726
>
> URL: http://svn.apache.org/viewvc?rev=1076726&view=rev
> Log:
> * subversion/tests/cmdline/log_tests.py
> (check_merge_results): Don't assume expected_reverse_merges is present, it
> may be None.
>
> Modified:
> subversion/trunk/subversion/tests/cmdline/log_tests.py
>
> Modified: subversion/trunk/subversion/tests/cmdline/log_tests.py
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/log_tests.py?rev=1076726&r1=1076725&r2=1076726&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/tests/cmdline/log_tests.py (original)
> +++ subversion/trunk/subversion/tests/cmdline/log_tests.py Thu Mar 3 19:09:01 2011
> @@ -1149,7 +1149,8 @@ def check_merge_results(log_chain, expec
> # Check to see if the number and values of the revisions is correct
> for log in log_chain:
> if (log['revision'] not in expected_merges
> - and log['revision'] not in expected_reverse_merges):
> + and (expected_reverse_merges is not None
> + and log['revision'] not in expected_reverse_merges)):

I'm re-reading this and I'm still not convinced that it's correct:
it means that if expected_reverse_merges is None, then the "Found
unexpected revision" error will never be raised. Is that the intended
semantics?

Or did you mean this ---

     if (log['revision'] not in expected_merges
         and (expected_reverse_merges is not None
              ? log['revision'] not in expected_reverse_merges
              : True):

> raise SVNUnexpectedLogs("Found unexpected revision %d" %
> log['revision'], log_chain)
>
>
>
Received on 2011-03-06 21:15:30 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.