Rev 4542: (andrew) Improve error message in osutils.file_relpath. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Thu Jul 16 09:39:51 BST 2009
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 4542 [merge]
revision-id: pqm at pqm.ubuntu.com-20090716083950-cesfxhkt7rzszc8v
parent: pqm at pqm.ubuntu.com-20090716074221-a8ydf0c5tg54k35c
parent: andrew.bennetts at canonical.com-20090716071045-xdve2is0ydw65gu0
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2009-07-16 09:39:50 +0100
message:
(andrew) Improve error message in osutils.file_relpath.
modified:
bzrlib/urlutils.py urlutils.py-20060502195429-e8a161ecf8fac004
=== modified file 'bzrlib/urlutils.py'
--- a/bzrlib/urlutils.py 2009-04-24 05:08:51 +0000
+++ b/bzrlib/urlutils.py 2009-07-16 07:10:45 +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))
More information about the bazaar-commits
mailing list