Merge lp:~stevenk/launchpad/poppy-sftp-updates into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Steve Kowalik on 2010-05-28 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 10937 |
| Proposed branch: | lp:~stevenk/launchpad/poppy-sftp-updates |
| Merge into: | lp:launchpad |
| Diff against target: |
165 lines (+35/-13) 5 files modified
lib/lp/codehosting/sftp.py (+1/-0) lib/lp/poppy/hooks.py (+4/-2) lib/lp/poppy/tests/test_poppy.py (+10/-2) lib/lp/poppy/tests/test_twistedsftp.py (+13/-5) lib/lp/poppy/twistedsftp.py (+7/-4) |
| To merge this branch: | bzr merge lp:~stevenk/launchpad/poppy-sftp-updates |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Curtis Hovey (community) | release-critical | 2010-05-28 | Approve on 2010-05-28 |
| Abel Deuring (community) | code | 2010-05-28 | Approve on 2010-05-28 |
|
Review via email:
|
|||
Commit Message
Clean up the poppy-sftp service a little bit, exercise more code in the tests, and add a prefix which means it is far less likely to have a directory name clash with Poppy.
Description of the Change
This branch just does a little clean-up of the poppy-sftp service that landed yesterday:
* Export FileIsADirectory from lp.codehosting.sftp so I can use it.
* Add a prefix argument to poppy's hooks, and use it for the SFTP server. This means it is far less likely that we will have a directory name clash with both the FTP and SFTP service running on one host.
* Note the bug number for the time.sleep XXX.
* Conform to PEP8 in the one place I missed.
| Curtis Hovey (sinzui) wrote : | # |
Lp XXX style is
# XXX <engineer> <yyyy-mm-dd> [bug=<number>
| Curtis Hovey (sinzui) wrote : | # |
You may land this once you have fixed the XXX.

Hi Steve,
nice work, and thanks again for the added tests!