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

Re: Issue 2784 Work In Progress Patch

From: Karl Fogel <kfogel_at_red-bean.com>
Date: 2007-05-25 23:51:25 CEST

"Jeremy Whitlock" <jcscoobyrs@gmail.com> writes:
> While working on issue 2784:
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=2784
>
> I have gotten to the second phase of my unit test only to run into something
> weird. When comparing the tree structures as part of an update, I get the
> following:

Some of the error messages in the test suite, especially the ones
about tree differences, are notoriously opaque. I'm not sure why it
has to be this way; no doubt improvement is possible, if only one of
us would Get Around To It.

In the meantime, don't spend a lot of time trying to interpret that
error message. Instead, use manual investigation techniques to find
out if your test is doing what you expect. (If it is, and you're
still getting this error message, then send a mail here detailing what
you expected and what you actually saw, and we'll figure it out. By
"what you expected", I don't mean the output from the Python test, but
rather the behavior of the test on disk -- what it's actually doing.)

Given the incomplete state of the patch, probably the test should be
marked XFAIL right now, since it's still expected to fail.

Also, when you the "automatic_conflict_resolution" test to test_list
in the Python file, put a comma at the end, so the next person to add
a test after it doesn't make a syntax error :-). In Python, the last
element in a list can have a comma after it, unlike in C.

Good luck,
-Karl

> =============================================================
> Expected '__SVN_ROOT_NODE' and actual '__SVN_ROOT_NODE' are different!
> =============================================================
> EXPECTED NODE TO BE:
> =============================================================
> * Node name: __SVN_ROOT_NODE
> Path: __SVN_ROOT_NODE
> Contents: N/A (node is a directory)
> Properties: {}
> Attributes: {}
> Children: 1
> =============================================================
> ACTUAL NODE FOUND:
> =============================================================
> * Node name: __SVN_ROOT_NODE
> Path: __SVN_ROOT_NODE
> Contents: None
> Properties: {}
> Attributes: {}
> Children: N/A (node is a file)
> Unequal Types: one Node is a file, the other is a directory
> EXCEPTION: SVNTreeUnequal
> FAIL: basic_tests.py 38: automatic conflict resolution
>
> It doesn't make any sense as to why the root node of the actual tree, which was
> just used in a test higher up the chain, is the problematic node. I have
> attached my work in progress patch to see if anyone else could help. Please
> remember that this patch is incomplete.
>
> Take care,
>
> Jeremy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 25 23:51:34 2007

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.