~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-16 13:39:39 UTC
  • mto: (5923.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5925.
  • Revision ID: jelmer@samba.org-20110516133939-8u1pc9utas3uw1lt
Require a unicode prompt to be passed into all methods that prompt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
        """True if filename is the name of a control file in this tree.
231
231
 
232
232
        :param filename: A filename within the tree. This is a relative path
233
 
            from the root of this tree.
 
233
        from the root of this tree.
234
234
 
235
235
        This is true IF and ONLY IF the filename is part of the meta data
236
236
        that bzr controls in this tree. I.E. a random .bzr directory placed
626
626
        and setting the list to its value plus revision_id.
627
627
 
628
628
        :param revision_id: The revision id to add to the parent list. It may
629
 
            be a ghost revision as long as its not the first parent to be
630
 
            added, or the allow_leftmost_as_ghost parameter is set True.
 
629
        be a ghost revision as long as its not the first parent to be added,
 
630
        or the allow_leftmost_as_ghost parameter is set True.
631
631
        :param allow_leftmost_as_ghost: Allow the first parent to be a ghost.
632
632
        """
633
633
        parents = self.get_parent_ids() + [revision_id]
1478
1478
        - Restore the wt.basis->wt.state changes.
1479
1479
 
1480
1480
        There isn't a single operation at the moment to do that, so we:
1481
 
 
1482
1481
        - Merge current state -> basis tree of the master w.r.t. the old tree
1483
1482
          basis.
1484
1483
        - Do a 'normal' merge of the old branch basis if it is relevant.
1739
1738
    def _walkdirs(self, prefix=""):
1740
1739
        """Walk the directories of this tree.
1741
1740
 
1742
 
        :param prefix: is used as the directrory to start with.
1743
 
        :returns: a generator which yields items in the form::
1744
 
 
1745
 
            ((curren_directory_path, fileid),
1746
 
             [(file1_path, file1_name, file1_kind, None, file1_id,
1747
 
               file1_kind), ... ])
 
1741
           :prefix: is used as the directrory to start with.
 
1742
           returns a generator which yields items in the form:
 
1743
                ((curren_directory_path, fileid),
 
1744
                 [(file1_path, file1_name, file1_kind, None, file1_id,
 
1745
                   file1_kind), ... ])
1748
1746
        """
1749
1747
        raise NotImplementedError(self._walkdirs)
1750
1748
 
1756
1754
        are considered 'resolved', because bzr always puts conflict markers
1757
1755
        into files that have text conflicts.  The corresponding .THIS .BASE and
1758
1756
        .OTHER files are deleted, as per 'resolve'.
1759
 
 
1760
1757
        :return: a tuple of ConflictLists: (un_resolved, resolved).
1761
1758
        """
1762
1759
        un_resolved = _mod_conflicts.ConflictList()
2914
2911
    def _walkdirs(self, prefix=""):
2915
2912
        """Walk the directories of this tree.
2916
2913
 
2917
 
        :param prefix: is used as the directrory to start with.
2918
 
        :returns: a generator which yields items in the form::
2919
 
 
2920
 
            ((curren_directory_path, fileid),
2921
 
             [(file1_path, file1_name, file1_kind, None, file1_id,
2922
 
               file1_kind), ... ])
 
2914
           :prefix: is used as the directrory to start with.
 
2915
           returns a generator which yields items in the form:
 
2916
                ((curren_directory_path, fileid),
 
2917
                 [(file1_path, file1_name, file1_kind, None, file1_id,
 
2918
                   file1_kind), ... ])
2923
2919
        """
2924
2920
        _directory = 'directory'
2925
2921
        # get the root in the inventory