/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/git/tree.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-15 12:24:13 UTC
  • mfrom: (7322.1.5 objects)
  • Revision ID: breezy.the.bot@gmail.com-20190615122413-u2hq0mpwn2sbaad0
Add a TreeChange object that can serve as alternative to a tuple returned by Tree.iter_changes.

Merged from https://code.launchpad.net/~jelmer/brz/objects/+merge/368856

Show diffs side-by-side

added added

removed removed

Lines of Context:
828
828
            oldkind == 'directory' and newkind == 'directory' and
829
829
                oldpath_decoded == newpath_decoded):
830
830
            continue
831
 
        yield (fileid, (oldpath_decoded, newpath_decoded), (oldsha != newsha),
832
 
               (oldversioned, newversioned),
833
 
               (oldparent, newparent), (oldname, newname),
834
 
               (oldkind, newkind), (oldexe, newexe))
 
831
        yield _mod_tree.TreeChange(
 
832
            fileid, (oldpath_decoded, newpath_decoded), (oldsha != newsha),
 
833
            (oldversioned, newversioned),
 
834
            (oldparent, newparent), (oldname, newname),
 
835
            (oldkind, newkind), (oldexe, newexe))
835
836
 
836
837
 
837
838
class InterGitTrees(_mod_tree.InterTree):