Merge lp:~ian-clatworthy/bzr/422415 into lp:bzr/2.0

Proposed by Ian Clatworthy
Status: Merged
Approved by: Ian Clatworthy
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~ian-clatworthy/bzr/422415
Merge into: lp:bzr/2.0
Diff against target: 56 lines
To merge this branch: bzr merge lp:~ian-clatworthy/bzr/422415
Reviewer Review Type Date Requested Status
Vincent Ladeuil Approve
Review via email: mp+10975@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

2-minute fix to clean up 'bzr help hooks' a little.

Revision history for this message
Vincent Ladeuil (vila) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NEWS'
2--- NEWS 2009-08-31 00:25:33 +0000
3+++ NEWS 2009-09-01 12:35:11 +0000
4@@ -24,6 +24,9 @@
5 that has a ghost in the mainline ancestry.
6 (John Arbash Meinel, #419241)
7
8+* Help on hooks no longer says 'Not deprecated' for hooks that are
9+ currently supported. (Ian Clatworthy, #422415)
10+
11 Documentation
12 *************
13
14
15=== modified file 'bzrlib/hooks.py'
16--- bzrlib/hooks.py 2009-06-10 03:31:01 +0000
17+++ bzrlib/hooks.py 2009-09-01 12:35:11 +0000
18@@ -219,9 +219,7 @@
19 strings.append('Introduced in: %s' % introduced_string)
20 if self.deprecated:
21 deprecated_string = _format_version_tuple(self.deprecated)
22- else:
23- deprecated_string = 'Not deprecated'
24- strings.append('Deprecated in: %s' % deprecated_string)
25+ strings.append('Deprecated in: %s' % deprecated_string)
26 strings.append('')
27 strings.extend(textwrap.wrap(self.__doc__,
28 break_long_words=False))
29
30=== modified file 'bzrlib/tests/test_hooks.py'
31--- bzrlib/tests/test_hooks.py 2009-04-06 22:31:35 +0000
32+++ bzrlib/tests/test_hooks.py 2009-09-01 12:35:11 +0000
33@@ -80,7 +80,6 @@
34 "~~~~~~~~~~~~~~~\n"
35 "\n"
36 "Introduced in: 1.4\n"
37- "Deprecated in: Not deprecated\n"
38 "\n"
39 "Invoked after the tip of a branch changes. Called with a\n"
40 "ChangeBranchTipParams object.\n"
41@@ -89,7 +88,6 @@
42 "~~~~~~~~~~~~~~\n"
43 "\n"
44 "Introduced in: 1.6\n"
45- "Deprecated in: Not deprecated\n"
46 "\n"
47 "Invoked before the tip of a branch changes. Called with a\n"
48 "ChangeBranchTipParams object. Hooks should raise TipChangeRejected to\n"
49@@ -133,7 +131,6 @@
50 "~~~~~~~~~~~~~~~\n"
51 "\n"
52 "Introduced in: 0.15\n"
53- "Deprecated in: Not deprecated\n"
54 "\n"
55 "Invoked after changing the tip of a branch object. Called with a\n"
56 "bzrlib.branch.PostChangeBranchTipParams object\n", hook.docs())

Subscribers

People subscribed via source and target branches