~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/groupcompress.py

  • Committer: Jelmer Vernooij
  • Date: 2011-06-16 11:57:36 UTC
  • mto: This revision was merged to the branch mainline in revision 5987.
  • Revision ID: jelmer@samba.org-20110616115736-5xuzwdf87qb81su4
Use iter_ancestry rather than get_ancestry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    )
40
40
 
41
41
from bzrlib.repofmt import pack_repo
42
 
from bzrlib.i18n import gettext
43
42
""")
44
43
 
45
44
from bzrlib.btree_index import BTreeBuilder
1755
1754
                raise errors.RevisionNotPresent(record.key, self)
1756
1755
            if random_id:
1757
1756
                if record.key in inserted_keys:
1758
 
                    trace.note(gettext('Insert claimed random_id=True,'
1759
 
                               ' but then inserted %r two times'), record.key)
 
1757
                    trace.note('Insert claimed random_id=True,'
 
1758
                               ' but then inserted %r two times', record.key)
1760
1759
                    continue
1761
1760
                inserted_keys.add(record.key)
1762
1761
            if reuse_blocks: