/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/plugins/launchpad/lp_propose.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-15 17:53:40 UTC
  • mfrom: (7322.1.8 objects-1)
  • Revision ID: breezy.the.bot@gmail.com-20190615175340-yxo036zu96wh8lcz
Use the new attributes on TreeChange rather than indexing.

Merged from https://code.launchpad.net/~jelmer/brz/objects-1/+merge/368859

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
 
225
225
def modified_files(old_tree, new_tree):
226
226
    """Return a list of paths in the new tree with modified contents."""
227
 
    for f, (op, path), c, v, p, n, (ok, k), e in new_tree.iter_changes(
228
 
            old_tree):
229
 
        if c and k == 'file':
 
227
    for change in new_tree.iter_changes(old_tree):
 
228
        if change.changed_content and change.kind[1] == 'file':
230
229
            yield str(path)