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

Re: svn commit: r14407 - trunk/subversion/tests/clients/cmdline/svntest

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-04-22 21:05:03 CEST

fitz@tigris.org writes:

> Author: fitz
> Date: Fri Apr 22 11:41:39 2005
> New Revision: 14407

> @@ -619,6 +619,8 @@
> for opt, val in opts:
> if opt == "--url":
> test_area_url = val
> + if test_area_url[-1:] == '/': # Normalize url to have no trailing slash
> + test_area_url = test_area_url[:-1]

Move this code lower down to handle BASE_URL=xxx as well as --url=xxx.

How about "while" instead of "if" to handle multiple slashes, or is
that a bad thing?

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 22 21:05:56 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.