/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2006-09-14 21:02:10 UTC
  • mto: (4916.1.1 45719-update-r)
  • mto: This revision was merged to the branch mainline in revision 4923.
  • Revision ID: john@arbash-meinel.com-20060914210210-1be3d56f5cd4b395
minor whitespace cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1608
1608
    def update(self, revision=None, old_tip=_marker):
1609
1609
        """Update a working tree along its branch.
1610
1610
 
1611
 
        This will update the branch if its bound too, which means we have multiple trees involved:
 
1611
        This will update the branch if its bound too, which means we have
 
1612
        multiple trees involved:
1612
1613
        The new basis tree of the master.
1613
1614
        The old basis tree of the branch.
1614
1615
        The old basis tree of the working tree.
1617
1618
        Conceptually we want to:
1618
1619
        Preserve the wt.basis->wt.state changes
1619
1620
        Transform the wt.basis to the new master basis.
1620
 
        Apply a merge of the old branch basis to get any 'local' changes from it into the tree.
 
1621
        Apply a merge of the old branch basis to get any 'local' changes from
 
1622
        it into the tree.
1621
1623
        Restore the wt.basis->wt.state changes.
1622
1624
 
1623
1625
        There isn't a single operation at the moment to do that, so we:
1624
 
        Merge current state -> basis tree of the master w.r.t. the old tree basis.
1625
 
        Do a 'normal' merge of the old branch basis if it is relevant.
 
1626
        Merge current state -> basis tree of the master w.r.t. the old tree 
 
1627
        basis. Do a 'normal' merge of the old branch basis if it is relevant.
1626
1628
 
1627
 
        :param revision: The target revision to update to. Must be in the revision history.
1628
 
        :param old_tip: If branch.update() has already been run, the value it returned 
1629
 
        (old tip of the branch or None). _marker is used otherwise.
 
1629
        :param revision: The target revision to update to. Must be in the
 
1630
            revision history.
 
1631
        :param old_tip: If branch.update() has already been run, the value it
 
1632
            returned (old tip of the branch or None). _marker is used
 
1633
            otherwise.
1630
1634
        """
1631
1635
        if old_tip == self._marker:
1632
1636
            old_tip = self.branch.update()