~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Jelmer Vernooij
  • Date: 2010-12-18 00:16:41 UTC
  • mto: This revision was merged to the branch mainline in revision 767.
  • Revision ID: jelmer@samba.org-20101218001641-1ex046f0brdoeip5
Add DiffWriter.writelines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
 
203
203
class NotStandalone(BzrError):
204
204
 
205
 
    _format = '%(location) is not a standalone tree.'
 
205
    _fmt = '%(location)s is not a standalone tree.'
206
206
    _internal = False
207
207
 
208
208
    def __init__(self, location):
408
408
def open_from_url(location):
409
409
    location = urlutils.normalize_url(location)
410
410
    dirname, basename = urlutils.split(location)
 
411
    if location.endswith('/') and not basename.endswith('/'):
 
412
        basename += '/'
411
413
    return get_transport(dirname).get(basename)
412
414
 
413
415