Comment 2 for bug 398199

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 398199] [NEW] Error: Length of base must be equal or exceed the platform minimum url length

2009/7/12 Andrew Bennetts <email address hidden>:
> === modified file 'bzrlib/urlutils.py'
> --- bzrlib/urlutils.py  2009-04-24 05:08:51 +0000
> +++ bzrlib/urlutils.py  2009-07-12 06:25:28 +0000
> @@ -75,9 +75,9 @@
>     This assumes that both paths are already fully specified file:// URLs.
>     """
>     if len(base) < MIN_ABS_FILEURL_LENGTH:
> -        raise ValueError('Length of base must be equal or'
> +        raise ValueError('Length of base (%r) must equal or'
>             ' exceed the platform minimum url length (which is %d)' %
> -            MIN_ABS_FILEURL_LENGTH)
> +            (base, MIN_ABS_FILEURL_LENGTH))
>     base = local_path_from_url(base)
>     path = local_path_from_url(path)
>     return escape(osutils.relpath(base, path))

+1

--
Martin <http://launchpad.net/~mbp/>