~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/dirstate.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-01 06:45:57 UTC
  • mfrom: (5247.2.41 more-ignored-exceptions)
  • Revision ID: pqm@pqm.ubuntu.com-20100901064557-qsxmjmp195ozbluf
(vila) Catch EPIPE when shutting down test servers. (Vincent Ladeuil)

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.get(key[2], ())
 
2879
            existing_keys = id_index[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 existing_keys:
 
2884
            for entry_key in id_index[key[2]]:
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.