/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 bzrlib/repofmt/weaverepo.py

  • Committer: Martin Pool
  • Date: 2009-06-10 02:51:23 UTC
  • mfrom: (4423 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4464.
  • Revision ID: mbp@sourcefrog.net-20090610025123-2u0c0ng5jcezjzqh
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
"""Deprecated weave-based repository formats.
18
18
 
266
266
    supports_tree_reference = False
267
267
    supports_ghosts = False
268
268
    supports_external_lookups = False
 
269
    supports_chks = False
269
270
    _fetch_order = 'topological'
270
271
    _fetch_reconcile = True
 
272
    fast_deltas = False
271
273
 
272
274
    def initialize(self, a_bzrdir, shared=False, _internal=False):
273
275
        """Create a weave repository."""
295
297
        try:
296
298
            transport.mkdir_multi(['revision-store', 'weaves'],
297
299
                mode=a_bzrdir._get_dir_mode())
298
 
            transport.put_bytes_non_atomic('inventory.weave', empty_weave)
 
300
            transport.put_bytes_non_atomic('inventory.weave', empty_weave,
 
301
                mode=a_bzrdir._get_file_mode())
299
302
        finally:
300
303
            control_files.unlock()
301
304
        return self.open(a_bzrdir, _found=True)
313
316
        result.signatures = self._get_signatures(repo_transport, result)
314
317
        result.inventories = self._get_inventories(repo_transport, result)
315
318
        result.texts = self._get_texts(repo_transport, result)
 
319
        result.chk_bytes = None
316
320
        return result
317
321
 
318
322
    def check_conversion_target(self, target_format):
473
477
 
474
478
    _versionedfile_class = weave.WeaveFile
475
479
    supports_ghosts = False
 
480
    supports_chks = False
 
481
 
476
482
    _fetch_order = 'topological'
477
483
    _fetch_reconcile = True
 
484
    fast_deltas = False
478
485
    @property
479
486
    def _serializer(self):
480
487
        return xml5.serializer_v5
552
559
        result.signatures = self._get_signatures(repo_transport, result)
553
560
        result.inventories = self._get_inventories(repo_transport, result)
554
561
        result.texts = self._get_texts(repo_transport, result)
 
562
        result.chk_bytes = None
555
563
        result._transport = repo_transport
556
564
        return result
557
565