Rev 3477: Remove the now unused functions. in http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/annotation
John Arbash Meinel
john at arbash-meinel.com
Thu Jun 5 18:23:37 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/annotation
------------------------------------------------------------
revno: 3477
revision-id: john at arbash-meinel.com-20080605172317-h2u23f1ldi6h2rev
parent: john at arbash-meinel.com-20080605013229-m3r1oknwt8d3lcjr
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: annotation
timestamp: Thu 2008-06-05 12:23:17 -0500
message:
Remove the now unused functions.
modified:
bzrlib/annotate.py annotate.py-20050922133147-7c60541d2614f022
-------------- next part --------------
=== modified file 'bzrlib/annotate.py'
--- a/bzrlib/annotate.py 2008-06-05 01:32:29 +0000
+++ b/bzrlib/annotate.py 2008-06-05 17:23:17 +0000
@@ -429,27 +429,3 @@
policy = HeadsAnnotationPolicy(heads_provider)
return policy.reannotate(parents_lines, new_lines, new_revision_id,
_left_matching_blocks=_left_matching_blocks)
-
-
-def _reannotate(parent_lines, new_lines, new_revision_id,
- matching_blocks=None):
- new_cur = 0
- if matching_blocks is None:
- plain_parent_lines = [l for r, l in parent_lines]
- matcher = patiencediff.PatienceSequenceMatcher(None,
- plain_parent_lines, new_lines)
- matching_blocks = matcher.get_matching_blocks()
- lines = []
- for i, j, n in matching_blocks:
- for line in new_lines[new_cur:j]:
- lines.append((new_revision_id, line))
- lines.extend(parent_lines[i:i+n])
- new_cur = j + n
- return lines
-
-
-def _get_matching_blocks(old, new):
- matcher = patiencediff.PatienceSequenceMatcher(None,
- old, new)
- return matcher.get_matching_blocks()
-
More information about the bazaar-commits
mailing list