~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repofmt/weaverepo.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-06 06:48:25 UTC
  • mfrom: (4070.8.6 debug-config)
  • Revision ID: pqm@pqm.ubuntu.com-20090306064825-kbpwggw21dygeix6
(mbp) debug_flags configuration option

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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  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
270
269
    _fetch_order = 'topological'
271
270
    _fetch_reconcile = True
272
 
    fast_deltas = False
273
271
 
274
272
    def initialize(self, a_bzrdir, shared=False, _internal=False):
275
273
        """Create a weave repository."""
297
295
        try:
298
296
            transport.mkdir_multi(['revision-store', 'weaves'],
299
297
                mode=a_bzrdir._get_dir_mode())
300
 
            transport.put_bytes_non_atomic('inventory.weave', empty_weave,
301
 
                mode=a_bzrdir._get_file_mode())
 
298
            transport.put_bytes_non_atomic('inventory.weave', empty_weave)
302
299
        finally:
303
300
            control_files.unlock()
304
301
        return self.open(a_bzrdir, _found=True)
316
313
        result.signatures = self._get_signatures(repo_transport, result)
317
314
        result.inventories = self._get_inventories(repo_transport, result)
318
315
        result.texts = self._get_texts(repo_transport, result)
319
 
        result.chk_bytes = None
320
316
        return result
321
317
 
322
318
    def check_conversion_target(self, target_format):
477
473
 
478
474
    _versionedfile_class = weave.WeaveFile
479
475
    supports_ghosts = False
480
 
    supports_chks = False
481
 
 
482
476
    _fetch_order = 'topological'
483
477
    _fetch_reconcile = True
484
 
    fast_deltas = False
485
478
    @property
486
479
    def _serializer(self):
487
480
        return xml5.serializer_v5
559
552
        result.signatures = self._get_signatures(repo_transport, result)
560
553
        result.inventories = self._get_inventories(repo_transport, result)
561
554
        result.texts = self._get_texts(repo_transport, result)
562
 
        result.chk_bytes = None
563
555
        result._transport = repo_transport
564
556
        return result
565
557