Re: svn commit: rev 2309 - trunk/subversion/tests/clients/cmdline trunk/subversion/tests/clients/cmdline/svntest
From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-06-24 16:21:59 CEST
kfogel@tigris.org writes:
> + ### Okay, I don't get it. How can I set up expected_output so that
No, 'output' trees don't need to be initialized with any magic
Here are the "three bits".
1. Disk Trees: how the working copy looks on disk (text & props)
Initial state: grab a copy of the Greek Tree State like so:
expected_disk = svntest.main.greek_state.copy()
Tweakage: use normal tweak methods like so:
expected_disk.tweak('A/mu',
2. Status Trees: does 'svn st -v' show what you expect?
Initial state: create a generic status listing, everything at rev N:
expected_status =
Tweakage: use normal tweak methods like so:
expected_status.tweak('A/mu', 'A/D/G/rho', wc_rev=2)
3. Output trees: was the subcommand output what you expected?
Initial state: just make a list of what you expected to see:
expected_output = wc.State(wc_dir, {
expected_output = svntest.wc.State(wc_dir, {
Tweakage: no need to tweak. You already specified the exact
---------------------------------------------------------------------
|
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.