~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Aaron Bentley
  • Date: 2007-12-20 20:44:45 UTC
  • mto: This revision was merged to the branch mainline in revision 3235.
  • Revision ID: abentley@panoramicfeedback.com-20071220204445-9o2f10gvvd8e4rks
Implement hard-link support for branch and checkout

Show diffs side-by-side

added added

removed removed

Lines of Context:
2747
2747
        
2748
2748
 
2749
2749
    def initialize(self, a_bzrdir, revision_id=None, from_branch=None,
2750
 
                   accelerator_tree=None):
 
2750
                   accelerator_tree=None, hardlink=False):
2751
2751
        """See WorkingTreeFormat.initialize()."""
2752
2752
        if not isinstance(a_bzrdir.transport, LocalTransport):
2753
2753
            raise errors.NotLocalUrl(a_bzrdir.transport.base)
2840
2840
                             self._lock_class)
2841
2841
 
2842
2842
    def initialize(self, a_bzrdir, revision_id=None, from_branch=None,
2843
 
                   accelerator_tree=None):
 
2843
                   accelerator_tree=None, hardlink=False):
2844
2844
        """See WorkingTreeFormat.initialize().
2845
2845
        
2846
2846
        :param revision_id: if supplied, create a working tree at a different
2849
2849
            contents more quickly than the revision tree, i.e. a workingtree.
2850
2850
            The revision tree will be used for cases where accelerator_tree's
2851
2851
            content is different.
 
2852
        :param hardlink: If true, hard-link files from accelerator_tree,
 
2853
            where possible.
2852
2854
        """
2853
2855
        if not isinstance(a_bzrdir.transport, LocalTransport):
2854
2856
            raise errors.NotLocalUrl(a_bzrdir.transport.base)