~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/patiencediff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-05-03 19:49:12 UTC
  • mfrom: (2476.1.1 shared_repo_layouts)
  • Revision ID: pqm@pqm.ubuntu.com-20070503194912-pzlcms91kk2uqfdo
(John Arbash Meinel) Add doc/shared_repository_layouts.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
 
19
19
from bisect import bisect
20
 
from copy import copy
21
20
import difflib
22
21
import os
23
22
import sys
44
43
    http://en.wikipedia.org/wiki/Patience_sorting
45
44
    """
46
45
    # set index[line in a] = position of line in a unless
47
 
    # unless a is a duplicate, in which case it's set to None
 
46
    # a is a duplicate, in which case it's set to None
48
47
    index = {}
49
48
    for i in xrange(len(a)):
50
49
        line = a[i]