Merge lp:~jelmer/bzr/rm-annotate_file into lp:bzr

Proposed by Jelmer Vernooij
Status: Merged
Approved by: John A Meinel
Approved revision: no longer in the source branch.
Merged at revision: 6527
Proposed branch: lp:~jelmer/bzr/rm-annotate_file
Merge into: lp:bzr
Diff against target: 73 lines (+3/-39)
3 files modified
bzrlib/annotate.py (+0/-26)
bzrlib/tests/test_annotate.py (+0/-13)
doc/en/release-notes/bzr-2.6.txt (+3/-0)
To merge this branch: bzr merge lp:~jelmer/bzr/rm-annotate_file
Reviewer Review Type Date Requested Status
John A Meinel Approve
Review via email: mp+112081@code.launchpad.net

Commit message

Remove deprecated annotate_file function.

Description of the change

Remove annotate_file function deprecated in bzr 2.4.

To post a comment you must log in.
Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/26/2012 02:21 PM, Jelmer Vernooij wrote:
> Jelmer Vernooij has proposed merging
> lp:~jelmer/bzr/rm-annotate_file into lp:bzr.
>
> Requested reviews: bzr-core (bzr-core)
>
> For more details, see:
> https://code.launchpad.net/~jelmer/bzr/rm-annotate_file/+merge/112081
>
> Remove annotate_file function deprecated in bzr 2.4.
>

 merge: approve

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/pqiYACgkQJdeBCYSNAAOM9wCgzF+4ratFkxEioYHQxHzFmdoQ
q3AAnAnwIwzQFNIEs0SVWJRQ0OKcCMjv
=gCxP
-----END PGP SIGNATURE-----

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bzrlib/annotate.py'
2--- bzrlib/annotate.py 2011-12-19 13:23:58 +0000
3+++ bzrlib/annotate.py 2012-06-26 12:24:23 +0000
4@@ -47,32 +47,6 @@
5 CURRENT_REVISION,
6 Revision,
7 )
8-from bzrlib.symbol_versioning import (
9- deprecated_function,
10- deprecated_in,
11- )
12-
13-
14-@deprecated_function(deprecated_in((2, 4, 0)))
15-def annotate_file(branch, rev_id, file_id, verbose=False, full=False,
16- to_file=None, show_ids=False):
17- """Annotate file_id at revision rev_id in branch.
18-
19- The branch should already be read_locked() when annotate_file is called.
20-
21- :param branch: The branch to look for revision numbers and history from.
22- :param rev_id: The revision id to annotate.
23- :param file_id: The file_id to annotate.
24- :param verbose: Show all details rather than truncating to ensure
25- reasonable text width.
26- :param full: XXXX Not sure what this does.
27- :param to_file: The file to output the annotation to; if None stdout is
28- used.
29- :param show_ids: Show revision ids in the annotation output.
30- """
31- tree = branch.repository.revision_tree(rev_id)
32- annotate_file_tree(tree, file_id, to_file, verbose=verbose,
33- full=full, show_ids=show_ids, branch=branch)
34
35
36 def annotate_file_tree(tree, file_id, to_file, verbose=False, full=False,
37
38=== modified file 'bzrlib/tests/test_annotate.py'
39--- bzrlib/tests/test_annotate.py 2011-05-03 13:53:46 +0000
40+++ bzrlib/tests/test_annotate.py 2012-06-26 12:24:23 +0000
41@@ -302,19 +302,6 @@
42 '1.1.1 barry@f | third\n',
43 builder.get_branch(), 'a-id', 'rev-3')
44
45- def test_annotate_file(self):
46- builder = self.create_merged_trees()
47-
48- to_file = StringIO()
49- self.applyDeprecated(symbol_versioning.deprecated_in((2, 4, 0)),
50- annotate.annotate_file, builder.get_branch(),
51- 'rev-3', 'a-id', to_file=to_file)
52-
53- self.assertAnnotateEqualDiff('1 joe@foo | first\n'
54- '2 joe@foo | second\n'
55- '1.1.1 barry@f | third\n',
56- to_file.getvalue())
57-
58 def test_annotate_limits_dotted_revnos(self):
59 """Annotate should limit dotted revnos to a depth of 12"""
60 builder = self.create_deeply_merged_trees()
61
62=== modified file 'doc/en/release-notes/bzr-2.6.txt'
63--- doc/en/release-notes/bzr-2.6.txt 2012-04-17 12:18:27 +0000
64+++ doc/en/release-notes/bzr-2.6.txt 2012-06-26 12:24:23 +0000
65@@ -58,6 +58,9 @@
66 .. Changes that may require updates in plugins or other code that uses
67 bzrlib.
68
69+* The previously deprecated ``bzrlib.annotate.annotate_file`` function
70+ has been removed. (Jelmer Vernooij)
71+
72 Internals
73 *********
74