subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: svn commit: r1868561 - /subversion/trunk/subversion/tests/cmdline/diff_tests.py
Date Thu, 17 Oct 2019 21:48:28 GMT
Good morning Nathan,

hartmannathan@apache.org wrote on Thu, Oct 17, 2019 at 16:23:21 -0000:
> +++ subversion/trunk/subversion/tests/cmdline/diff_tests.py Thu Oct 17 16:23:21 2019
> @@ -5253,6 +5253,83 @@ def diff_git_format_copy(sbox):
> +def diff_nonexistent_in_wc(sbox):
> +  "nonexistent in working copy"
> +
> +  sbox.build(empty=True)
> +  wc_dir = sbox.wc_dir
> +
> +  # We mirror the actions of the reproduction script (with one exception:
> +  # we 'svn up -r 0' instead of checking out a second working copy)
> +
> +  sbox.simple_add_text('test\n', 'file')
> +  sbox.simple_commit()

If instead of using «echo test > file» you would use the existing file 'iota'
(see subversion/tests/README), you'd be able to pass read_only=True to
sbox.build(), which avoids some test suite overhead in setting a dedicated
repository for each test function — i.e., makes tests run half a millisecond faster. ☺

Cheers,

Daniel

Mime
View raw message