/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to __init__.py

Implement to_files() for git merge directives.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
    @classmethod
144
144
    def probe_transport(klass, transport):
145
145
        try:
146
 
            if not (transport.has('info/refs') or 
147
 
                    transport.has('.git/branches') or 
 
146
            if not (transport.has('info/refs') or transport.has('.git/branches') or 
148
147
                    transport.has('branches')):
149
148
                raise bzr_errors.NotBranchError(path=transport.base)
150
149
        except bzr_errors.NoSuchFile:
177
176
                "non-local transports")
178
177
        lazy_check_versions()
179
178
        from dulwich.repo import Repo
180
 
        Repo.init(transport.local_abspath(".").encode(osutils._fs_enc))
 
179
        Repo.create(transport.local_abspath(".").encode(osutils._fs_enc))
181
180
        return self.open(transport)
182
181
 
183
182
    def is_supported(self):