~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Aaron Bentley
  • Date: 2006-11-28 04:52:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2162.
  • Revision ID: aaron.bentley@utoronto.ca-20061128045203-qnki9vf702jnb0gr
Minor tweaks

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        raise NotImplementedError("subclasses must implement kind")
156
156
 
157
157
    def _comparison_data(self, entry, path):
 
158
        """Return a tuple of kind, executable, stat_value for a file.
 
159
 
 
160
        entry may be None if there is no inventory entry for the file, but
 
161
        path must always be supplied.
 
162
 
 
163
        kind is None if there is no file present (even if an inventory id is
 
164
        present).  executable is False for non-file entries.
 
165
        """
158
166
        raise NotImplementedError(self._comparison_data)
159
167
 
160
168
    def _file_size(entry, stat_value):
452
460
        content has changed.  This includes changes to its kind, and to
453
461
        a symlink's target.
454
462
 
455
 
        versioned, parent, name, kind, executable are tuples of (from, to) if
456
 
        changed.  If a file is missing in a tree, its kind is None.
 
463
        versioned, parent, name, kind, executable are tuples of (from, to).
 
464
        If a file is missing in a tree, its kind is None.
457
465
 
458
466
        Iteration is done in parent-to-child order, relative to the to_tree.
459
467
        """