~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-05-08 01:57:31 UTC
  • mfrom: (1692.7.11 bzr.mbp.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060508015731-cde475bafa628268
(mbp) Fix #43064, doc updates

Show diffs side-by-side

added added

removed removed

Lines of Context:
1510
1510
        """See WorkingTreeFormat.get_format_description()."""
1511
1511
        return "Working tree format 2"
1512
1512
 
 
1513
    def stub_initialize_remote(self, control_files):
 
1514
        """As a special workaround create critical control files for a remote working tree
 
1515
        
 
1516
        This ensures that it can later be updated and dealt with locally,
 
1517
        since BzrDirFormat6 and BzrDirFormat5 cannot represent dirs with 
 
1518
        no working tree.  (See bug #43064).
 
1519
        """
 
1520
        sio = StringIO()
 
1521
        inv = Inventory()
 
1522
        bzrlib.xml5.serializer_v5.write_inventory(inv, sio)
 
1523
        sio.seek(0)
 
1524
        control_files.put('inventory', sio)
 
1525
 
 
1526
        control_files.put_utf8('pending-merges', '')
 
1527
        
 
1528
 
1513
1529
    def initialize(self, a_bzrdir, revision_id=None):
1514
1530
        """See WorkingTreeFormat.initialize()."""
1515
1531
        if not isinstance(a_bzrdir.transport, LocalTransport):