~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Jelmer Vernooij
  • Date: 2011-09-09 12:20:33 UTC
  • mto: This revision was merged to the branch mainline in revision 6129.
  • Revision ID: jelmer@samba.org-20110909122033-s4baeluwazfpqrm6
Add lightweight option to _get_checkout_format().

Show diffs side-by-side

added added

removed removed

Lines of Context:
2624
2624
                self.bzrdir, self._client)
2625
2625
        return self._control_files
2626
2626
 
2627
 
    def _get_checkout_format(self):
 
2627
    def _get_checkout_format(self, lightweight=False):
2628
2628
        self._ensure_real()
2629
 
        return self._real_branch._get_checkout_format()
 
2629
        if lightweight:
 
2630
            format = RemoteBzrDirFormat()
 
2631
            self.bzrdir._format._supply_sub_formats_to(format)
 
2632
            format.workingtree_format = self._real_branch._get_checkout_format(
 
2633
                lightweight=lightweight).workingtree_format
 
2634
            return format
 
2635
        else:
 
2636
            return self._real_branch._get_checkout_format(lightweight=False)
2630
2637
 
2631
2638
    def get_physical_lock_status(self):
2632
2639
        """See Branch.get_physical_lock_status()."""