~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-22 22:14:56 UTC
  • mfrom: (3946.2.2 add-rec)
  • Revision ID: pqm@pqm.ubuntu.com-20090122221456-p57kr0fane0s4iv8
(Jelmer) Don't require the present compression base in knits to be
        the same when adding records in knits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2250
2250
            present_nodes = self._get_entries(keys)
2251
2251
            for (index, key, value, node_refs) in present_nodes:
2252
2252
                if (value[0] != keys[key][0][0] or
2253
 
                    node_refs != keys[key][1]):
 
2253
                    node_refs[:1] != keys[key][1][:1]):
2254
2254
                    raise KnitCorrupt(self, "inconsistent details in add_records"
2255
2255
                        ": %s %s" % ((value, node_refs), keys[key]))
2256
2256
                del keys[key]