~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/chk_map.py

  • Committer: Johan Walles
  • Date: 2009-05-06 05:36:28 UTC
  • mfrom: (4332 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4343.
  • Revision ID: johan.walles@gmail.com-20090506053628-tbf1wz4a0m9t684g
Merge from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
559
559
        """
560
560
        if key.startswith(prefix):
561
561
            return prefix
562
 
        pos = -1
563
562
        # Is there a better way to do this?
564
563
        for pos, (left, right) in enumerate(zip(prefix, key)):
565
564
            if left != right: