~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree_4.py

  • Committer: Patch Queue Manager
  • Date: 2011-12-22 18:52:58 UTC
  • mfrom: (6213.1.55 feature-flags)
  • Revision ID: pqm@pqm.ubuntu.com-20111222185258-wgcba8590pbw5sf1
(jelmer) Add support for feature flags in bzr formats. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1478
1478
        control_files = self._open_control_files(a_bzrdir)
1479
1479
        control_files.create_lock()
1480
1480
        control_files.lock_write()
1481
 
        transport.put_bytes('format', self.get_format_string(),
 
1481
        transport.put_bytes('format', self.as_string(),
1482
1482
            mode=a_bzrdir._get_file_mode())
1483
1483
        if from_branch is not None:
1484
1484
            branch = from_branch
2260
2260
    def update_format(self, tree):
2261
2261
        """Change the format marker."""
2262
2262
        tree._transport.put_bytes('format',
2263
 
            self.target_format.get_format_string(),
 
2263
            self.target_format.as_string(),
2264
2264
            mode=tree.bzrdir._get_file_mode())
2265
2265
 
2266
2266
 
2283
2283
    def update_format(self, tree):
2284
2284
        """Change the format marker."""
2285
2285
        tree._transport.put_bytes('format',
2286
 
            self.target_format.get_format_string(),
 
2286
            self.target_format.as_string(),
2287
2287
            mode=tree.bzrdir._get_file_mode())
2288
2288
 
2289
2289
 
2312
2312
    def update_format(self, tree):
2313
2313
        """Change the format marker."""
2314
2314
        tree._transport.put_bytes('format',
2315
 
            self.target_format.get_format_string(),
 
2315
            self.target_format.as_string(),
2316
2316
            mode=tree.bzrdir._get_file_mode())