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

Re: CVS update: subversion/subversion/tests/clients/cmdline svn_tree.py svn_wc.py README example_tests1.py svn_output.py svn_test_main.py xml_tests.py

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2001-04-27 00:19:30 CEST

Sam TH <sam@uchicago.edu> writes:

> The nameless root node is definitely neccessary, for the reasons you
> described. The problem is with the next node. Maybe this will
> explain it better.
>
> You're generating trees that look like this:
>
> ROOT
> |
> +-- wc-t1
> |
> |-- iota
> +-- A
>
> etc.
>
> The problem is with the wc-t1 node, which we don't want, since it
> isn't a property of the working copy, and will be different with a
> different working copy that we might want to compare with. What we
> want is a tree like this:

Ahhhh, nope. wc-t1 (in the example above) may contain dir-props that
need to be examined. Should we be storing dir-props in the nameless
root node instead?

>
> ROOT
> |
> |-- iota
> +-- A
>
> etc.
>
> The latter is the kind generated by build_generic_tree(). The former
> is generated by wc_to_tree(). The way I got wc_to_tree to generate
> the latter kind of tree was with the hack I mentioned above.

Heh, of course I did the opposite. I made the systems match by
calling wc_to_tree(wc-t1), and then comparing against a homemade tree
constructed out of paths that *all* began with 'wc-t1'.

Hm. I'm not sure what to think. What's the elegant answer here?
Received on Sat Oct 21 14:36:29 2006

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.