1
Description: Use the standard interface for obtaining annotations - the other (private)
2
one is likely to go away in bzr 2.4.
3
Origin: commit, revision id: jelmer@samba.org-20110504132433-950pr6w54y2r5tn4
4
Author: Jelmer Vernooij <jelmer@samba.org>
5
Last-Update: 2011-05-04
6
X-Bzr-Revision-Id: jelmer@samba.org-20110504132433-950pr6w54y2r5tn4
8
=== modified file 'annotatexml.py'
9
--- old/annotatexml.py 2010-12-15 18:27:12 +0000
10
+++ new/annotatexml.py 2011-05-04 13:24:33 +0000
13
# to support bzr < 1.8
14
from bzrlib.annotate import _annotate_file
15
+ from bzrlib.annotate import _annotations
17
-from bzrlib.annotate import _annotations
18
from bzrlib import osutils
20
from writer import _escape_cdata
23
'file="%s"' % file_path)).encode(encoding, 'replace'))
25
- annotations = _annotations(branch.repository, file_id, rev_id)
27
+ if _annotate_file: # bzr < 1.8
28
+ annotations = _annotations(branch.repository, file_id, rev_id)
29
annotation = list(_annotate_file(branch, rev_id, file_id))
31
+ tree = branch.repository.revision_tree(rev_id)
32
+ annotations = tree.annotate_iter(file_id)
33
annotation = list(_expand_annotations(annotations, branch))
35
for (revno_str, author, date_str, line_rev_id,