~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/dirstate.py

  • Committer: Andrew Bennetts
  • Date: 2010-09-13 06:36:59 UTC
  • mfrom: (5050.17.16 2.2)
  • mto: This revision was merged to the branch mainline in revision 5419.
  • Revision ID: andrew.bennetts@canonical.com-20100913063659-gs1d1xnsdbj59sx6
Merge lp:bzr/2.2, including fixes for #619872, #631350, #633745.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2876
2876
            # converted to relocated.
2877
2877
            if path_utf8 is None:
2878
2878
                raise AssertionError('no path')
2879
 
            existing_keys = id_index[key[2]]
 
2879
            existing_keys = id_index.get(key[2], ())
2880
2880
            if key not in existing_keys:
2881
2881
                raise AssertionError('We found the entry in the blocks, but'
2882
2882
                    ' the key is not in the id_index.'
2883
2883
                    ' key: %s, existing_keys: %s' % (key, existing_keys))
2884
 
            for entry_key in id_index[key[2]]:
 
2884
            for entry_key in existing_keys:
2885
2885
                # TODO:PROFILING: It might be faster to just update
2886
2886
                # rather than checking if we need to, and then overwrite
2887
2887
                # the one we are located at.