/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 breezy/transform.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-09-21 19:00:56 UTC
  • mfrom: (7358.16.4 tree-change-without-file-id)
  • Revision ID: breezy.the.bot@gmail.com-20190921190056-6ti43ngs2vpo8obd
Don't make TreeChange tuple-like objects anymore, so we can add and remove attributes as necessary.

Merged from https://code.launchpad.net/~jelmer/brz/tree-change-without-file-id/+merge/369484

Show diffs side-by-side

added added

removed removed

Lines of Context:
2039
2039
    def _content_change(self, file_id):
2040
2040
        """Return True if the content of this file changed"""
2041
2041
        changes = self._iter_changes_cache.get(file_id)
2042
 
        # changes[2] is true if the file content changed.  See
2043
 
        # InterTree.iter_changes.
2044
 
        return (changes is not None and changes[2])
 
2042
        return (changes is not None and changes.changed_content)
2045
2043
 
2046
2044
    def _get_repository(self):
2047
2045
        repo = getattr(self._transform._tree, '_repository', None)