~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Martin Pool
  • Date: 2010-02-09 19:04:02 UTC
  • mfrom: (5010 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5019.
  • Revision ID: mbp@canonical.com-20100209190402-2xbzrchmb4dfi2j7
Resolve conflicts with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
 
112
112
 
113
113
MERGE_MODIFIED_HEADER_1 = "BZR merge-modified list format 1"
 
114
# TODO: Modifying the conflict objects or their type is currently nearly
 
115
# impossible as there is no clear relationship between the working tree format
 
116
# and the conflict list file format.
114
117
CONFLICT_HEADER_1 = "BZR conflict list format 1"
115
118
 
116
119
ERROR_PATH_NOT_FOUND = 3    # WindowsError errno code, equivalent to ENOENT
1728
1731
        r"""Check whether the filename matches an ignore pattern.
1729
1732
 
1730
1733
        Patterns containing '/' or '\' need to match the whole path;
1731
 
        others match against only the last component.
 
1734
        others match against only the last component.  Patterns starting
 
1735
        with '!' are ignore exceptions.  Exceptions take precedence
 
1736
        over regular patterns and cause the filename to not be ignored.
1732
1737
 
1733
1738
        If the file is ignored, returns the pattern which caused it to
1734
1739
        be ignored, otherwise None.  So this can simply be used as a
1735
1740
        boolean if desired."""
1736
1741
        if getattr(self, '_ignoreglobster', None) is None:
1737
 
            self._ignoreglobster = globbing.Globster(self.get_ignore_list())
 
1742
            self._ignoreglobster = globbing.ExceptionGlobster(self.get_ignore_list())
1738
1743
        return self._ignoreglobster.match(filename)
1739
1744
 
1740
1745
    def kind(self, file_id):
1888
1893
            # revision_id is set. We must check for this full string, because a
1889
1894
            # root node id can legitimately look like 'revision_id' but cannot
1890
1895
            # contain a '"'.
1891
 
            xml = self.branch.repository.get_inventory_xml(new_revision)
 
1896
            xml = self.branch.repository._get_inventory_xml(new_revision)
1892
1897
            firstline = xml.split('\n', 1)[0]
1893
1898
            if (not 'revision_id="' in firstline or
1894
1899
                'format="7"' not in firstline):