Merge lp:~parthm/bzr/584650-incorrect-alias-info-in-help into lp:bzr
| Status: | Merged |
|---|---|
| Approved by: | Parth Malwankar on 2010-05-26 |
| Approved revision: | 5257 |
| Merged at revision: | 5258 |
| Proposed branch: | lp:~parthm/bzr/584650-incorrect-alias-info-in-help |
| Merge into: | lp:bzr |
| Diff against target: |
30 lines (+6/-2) 2 files modified
NEWS (+4/-0) bzrlib/help.py (+2/-2) |
| To merge this branch: | bzr merge lp:~parthm/bzr/584650-incorrect-alias-info-in-help |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Martin Pool | 2010-05-26 | Approve on 2010-05-26 | |
| Robert Collins (community) | 2010-05-26 | Approve on 2010-05-26 | |
|
Review via email:
|
|||
Commit Message
Fix the display of cmd aliases in the help topic for aliased commands.
Description of the Change
=== Fixes bug #584650 ===
bzrlib.help.help has the signature below (not seen in the diff)
def help(topic=None, outfile=None):
The for loop in the diff was using 'topic' as a variable so in cases where the loop was coming in, topic was being overwritten and as a result the alias info was showing the object name. Renaming the loop variable to topic_obj fixes this.
Unfortunately I don't have a test case for this as the bundled plugins (I tried lp) doesn't have this problem. I have tested this manually.
| Parth Malwankar (parthm) wrote : | # |
Thanks for the review. I will go ahead and land this.
| Robert Collins (lifeless) wrote : | # |
sent to pqm by email
| Parth Malwankar (parthm) wrote : | # |
> sent to pqm by email
Looks like you got to pqm before me :)
I will skip feed-pqm.

looks good; pending a second committer ok.