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

Re: svn commit: r30776 - trunk/subversion/tests/cmdline

From: David Glasser <glasser_at_davidglasser.net>
Date: Fri, 25 Apr 2008 08:41:42 -0700

Whoa, this seems rather serious. Are you saying that svndumpfilter,
by default, will be lossy?

--dave

On Fri, Apr 25, 2008 at 5:26 AM, <kameshj_at_tigris.org> wrote:
> Author: kameshj
> Date: Fri Apr 25 05:26:40 2008
> New Revision: 30776
>
> Log:
> Testcase to show issue 3181.
> svndumpfilter drops mergeinfo when it is *not* run with --renumber-revs.
>
> * subversion/tests/cmdline/svndumpfilter_tests.py
> (svndumpfilter_loses_mergeinfo): New function.
> (test_list): Add 'svndumpfilter_loses_mergeinfo' as XFail test.
>
> Found by: MSshu
>
> Modified:
> trunk/subversion/tests/cmdline/svndumpfilter_tests.py
>
> Modified: trunk/subversion/tests/cmdline/svndumpfilter_tests.py
> URL: http://svn.collab.net/viewvc/svn/trunk/subversion/tests/cmdline/svndumpfilter_tests.py?pathrev=30776&r1=30775&r2=30776
> ==============================================================================
> --- trunk/subversion/tests/cmdline/svndumpfilter_tests.py Fri Apr 25 04:19:25 2008 (r30775)
> +++ trunk/subversion/tests/cmdline/svndumpfilter_tests.py Fri Apr 25 05:26:40 2008 (r30776)
> @@ -103,6 +103,32 @@ def reflect_dropped_renumbered_revs(sbox
> [], 'propget', 'svn:mergeinfo', '-R',
> sbox.repo_url + '/branch2')
>
> +def svndumpfilter_loses_mergeinfo(sbox):
> + "svndumpfilter looses mergeinfo"
> + #svndumpfilter looses mergeinfo if invoked without --renumber-revs
> +
> + ## See http://subversion.tigris.org/issues/show_bug.cgi?id=3181. ##
> +
> + test_create(sbox)
> + dumpfile_location = os.path.join(os.path.dirname(sys.argv[0]),
> + 'svndumpfilter_tests_data',
> + 'with_merges.dump')
> + dumpfile = svntest.main.file_read(dumpfile_location)
> +
> + filtered_out = filter_and_return_output(dumpfile, "include",
> + "trunk", "branch1", "--quiet")
> + load_and_verify_dumpstream(sbox, [], [], None, filtered_out)
> +
> + # Verify the svn:mergeinfo properties
> + svntest.actions.run_and_verify_svn(None,
> + [sbox.repo_url+"/trunk - /branch1:4-8\n"],
> + [], 'propget', 'svn:mergeinfo', '-R',
> + sbox.repo_url + '/trunk')
> + svntest.actions.run_and_verify_svn(None,
> + [sbox.repo_url+"/branch1 - /trunk:1-2\n"],
> + [], 'propget', 'svn:mergeinfo', '-R',
> + sbox.repo_url + '/branch1')
> +
>
> ########################################################################
> # Run the tests
> @@ -111,6 +137,7 @@ def reflect_dropped_renumbered_revs(sbox
> # list all tests here, starting with None:
> test_list = [ None,
> reflect_dropped_renumbered_revs,
> + XFail(svndumpfilter_loses_mergeinfo),
> ]
>
> if __name__ == '__main__':
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svn-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: svn-help_at_subversion.tigris.org
>
>

-- 
David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-25 17:42:17 CEST

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.