/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

  • Committer: Max Bowsher
  • Date: 2011-01-25 23:37:28 UTC
  • mto: (0.200.1074 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: maxb@f2s.com-20110125233728-ge68iskw0z7vh7v0
Make tests tolerant to bzr <= 2.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
                "non-local transports")
222
222
        lazy_check_versions()
223
223
        from dulwich.repo import Repo
224
 
        Repo.init(transport.local_abspath(".").encode(osutils._fs_enc),
225
 
            bare=self.bare)
 
224
        path = transport.local_abspath(".").encode(osutils._fs_enc)
 
225
        if self.bare:
 
226
            Repo.init_bare(path)
 
227
        else:
 
228
            Repo.init(path)
226
229
        return self.open(transport)
227
230
 
228
231
    def is_supported(self):
333
336
        stanza.add("git-commit", rev.foreign_revid)
334
337
 
335
338
 
336
 
rio_hooks = getattr(RioVersionInfoBuilder, "hooks", None)
337
 
if rio_hooks is not None:
338
 
    rio_hooks.install_named_hook('revision', update_stanza, None)
 
339
RioVersionInfoBuilder.hooks.install_named_hook('revision', update_stanza, None)
339
340
 
340
341
 
341
342
from bzrlib.transport import transport_server_registry