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

Re: [PATCH] Issue 2318 : Inconsistent behavior with trailing '/'

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-10-04 23:26:07 CEST

"Madan US" <madan@collab.net> writes:

> Index: subversion/tests/clients/cmdline/basic_tests.py
> ===================================================================
> --- subversion/tests/clients/cmdline/basic_tests.py (revision 16440)
> +++ subversion/tests/clients/cmdline/basic_tests.py (working copy)
> @@ -1610,7 +1610,13 @@
> output, errlines = svntest.actions.run_and_verify_svn(None, ["xyz\n"], [],
> 'cat', url+'@')
>
> + # With the trailing "/", expect success.
> + output, errlines = svntest.actions.run_and_verify_svn(None, ["xyz\n"], [],
> + 'cat', wc_file+'/')
> + output, errlines = svntest.actions.run_and_verify_svn(None, ["xyz\n"], [],
> + 'cat', url+'/')
>
> +
> #----------------------------------------------------------------------
> ########################################################################
>
> Issue #2318: Inconsistent behavior with trailing '/'
>
> * subversion/libsvn_subr/path.c
> (svn_path_canonicalize): Modified to replace the trailing slash
> in the filename to @ if the last segment of the file path
> contained an @.
> * subversion/test/clients/cmdline/basic_tests.py
> (basic_peg_revision): Modified to check for the @ sign and the
> trailing slash combination.

Your test doesn't really check your new code since it doesn't use an
'@' sign. You should probably write more complete tests, i.e. all
combinations, in test_canonical in tests/libsvn_subr/path-test.c.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 4 23:26:51 2005

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.