/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 remote.py

Fix tests, split up InterGitNonGitRepository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
from dulwich.pack import (
72
72
    Pack,
73
73
    PackData,
74
 
    PackIndex,
75
74
    )
76
75
import os
77
76
import tempfile
78
77
import urllib
79
78
import urlparse
80
79
 
 
80
try:
 
81
    from dulwich.pack import load_pack_index
 
82
except ImportError:
 
83
    from dulwich.pack import PackIndex as load_pack_index
 
84
 
81
85
 
82
86
# Don't run any tests on GitSmartTransport as it is not intended to be 
83
87
# a full implementation of Transport
170
174
            if self._data is None:
171
175
                self._data = PackData(self._data_path)
172
176
            self._data.create_index_v2(self._idx_path, self.resolve_ext_ref)
173
 
            self._idx = PackIndex(self._idx_path)
 
177
            self._idx = load_pack_index(self._idx_path)
174
178
        return self._idx
175
179
 
176
180
    def __del__(self):