Rev 4465: Remove the check for trailing '/' completely. in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Fri Jun 19 15:46:14 BST 2009
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 4465 [merge]
revision-id: john at arbash-meinel.com-20090619144528-bwuwb2phua2pafb4
parent: pqm at pqm.ubuntu.com-20090619110117-rhph89w2k9gavp24
parent: john at arbash-meinel.com-20090205205535-pem827po5a2h204o
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Fri 2009-06-19 09:45:28 -0500
message:
Remove the check for trailing '/' completely.
modified:
bzrlib/bundle/__init__.py changeset.py-20050513021216-b02ab57fb9738913
-------------- next part --------------
=== modified file 'bzrlib/bundle/__init__.py'
--- a/bzrlib/bundle/__init__.py 2009-03-23 14:59:43 +0000
+++ b/bzrlib/bundle/__init__.py 2009-06-19 14:45:28 +0000
@@ -45,10 +45,6 @@
possible_transports=possible_transports)
transport = child_transport.clone('..')
filename = transport.relpath(child_transport.base)
- if filename.endswith('/'):
- # A path to a directory was passed in
- # definitely not a bundle
- raise errors.NotABundle('A directory cannot be a bundle')
mergeable, transport = read_mergeable_from_transport(transport, filename,
_do_directive)
return mergeable
@@ -82,7 +78,7 @@
return directive, transport
else:
return _serializer.read_bundle(f), transport
- except errors.ConnectionReset:
+ except (errors.ConnectionReset, errors.ConnectionError), e:
raise
except (errors.TransportError, errors.PathError), e:
raise errors.NotABundle(str(e))
More information about the bazaar-commits
mailing list