~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2011-04-27 20:12:43 UTC
  • mfrom: (744.1.1 trunk)
  • Revision ID: aaron@aaronbentley.com-20110427201243-fctyrxt0u4dyr9xf
Add DiffWriter.writelines (jelmer).

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