/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 bzrlib/weave.py

  • Committer: Jelmer Vernooij
  • Date: 2017-02-05 16:49:28 UTC
  • mto: (6621.2.1 py3)
  • mto: This revision was merged to the branch mainline in revision 6624.
  • Revision ID: jelmer@jelmer.uk-20170205164928-nmcybzip5kdhiwon
Use 2to3 set_literal fixer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
805
805
            name = self._idx_to_name(i)
806
806
            sha1s[name] = sha()
807
807
            texts[name] = []
808
 
            new_inc = set([name])
 
808
            new_inc = {name}
809
809
            for p in self._parents[i]:
810
810
                new_inc.update(inclusions[self._idx_to_name(p)])
811
811
 
878
878
                raise errors.WeaveTextDiffers(name, self, other)
879
879
            self_parents = self._parents[this_idx]
880
880
            other_parents = other._parents[other_idx]
881
 
            n1 = set([self._names[i] for i in self_parents])
882
 
            n2 = set([other._names[i] for i in other_parents])
 
881
            n1 = {self._names[i] for i in self_parents}
 
882
            n2 = {other._names[i] for i in other_parents}
883
883
            if not self._compatible_parents(n1, n2):
884
884
                raise WeaveParentMismatch("inconsistent parents "
885
885
                    "for version {%s}: %s vs %s" % (name, n1, n2))