hgext/convert/bzr.py
changeset 35187 671aba341d90
parent 34488 6bda8a9d8431
child 35220 15d38e8fcb1e
equal deleted inserted replaced
35186:e0a1b9ee93cd 35187:671aba341d90
    42 supportedkinds = ('file', 'symlink')
    42 supportedkinds = ('file', 'symlink')
    43 
    43 
    44 class bzr_source(common.converter_source):
    44 class bzr_source(common.converter_source):
    45     """Reads Bazaar repositories by using the Bazaar Python libraries"""
    45     """Reads Bazaar repositories by using the Bazaar Python libraries"""
    46 
    46 
    47     def __init__(self, ui, path, revs=None):
    47     def __init__(self, ui, repotype, path, revs=None):
    48         super(bzr_source, self).__init__(ui, path, revs=revs)
    48         super(bzr_source, self).__init__(ui, repotype, path, revs=revs)
    49 
    49 
    50         if not os.path.exists(os.path.join(path, '.bzr')):
    50         if not os.path.exists(os.path.join(path, '.bzr')):
    51             raise common.NoRepo(_('%s does not look like a Bazaar repository')
    51             raise common.NoRepo(_('%s does not look like a Bazaar repository')
    52                               % path)
    52                               % path)
    53 
    53