Merge lp:~mwhudson/launchpad/incremental-code-imports-bug-512683 into lp:launchpad/db-devel
| Status: | Merged |
|---|---|
| Approved by: | Michael Hudson-Doyle on 2010-02-22 |
| Approved revision: | not available |
| Merged at revision: | not available |
| Proposed branch: | lp:~mwhudson/launchpad/incremental-code-imports-bug-512683 |
| Merge into: | lp:launchpad/db-devel |
| Diff against target: |
504 lines (+174/-67) 13 files modified
lib/canonical/config/schema-lazr.conf (+4/-0) lib/canonical/launchpad/testing/codeimporthelpers.py (+2/-6) lib/lp/code/browser/branch.py (+2/-0) lib/lp/code/enums.py (+7/-0) lib/lp/code/model/codeimportjob.py (+4/-1) lib/lp/code/model/tests/test_codeimportjob.py (+15/-0) lib/lp/code/stories/codeimport/xx-codeimport-results.txt (+21/-16) lib/lp/codehosting/codeimport/tests/test_worker.py (+42/-8) lib/lp/codehosting/codeimport/tests/test_workermonitor.py (+15/-0) lib/lp/codehosting/codeimport/worker.py (+32/-9) lib/lp/codehosting/codeimport/workermonitor.py (+3/-0) lib/lp/testing/factory.py (+25/-25) utilities/sourcedeps.conf (+2/-2) |
| To merge this branch: | bzr merge lp:~mwhudson/launchpad/incremental-code-imports-bug-512683 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Tim Penhey (community) | 2010-02-19 | Approve on 2010-02-22 | |
|
Review via email:
|
|||
Commit Message
Support incremental imports for git -- repositories will be imported 1000 revisions at a time.
| Michael Hudson-Doyle (mwhudson) wrote : | # |
| Michael Hudson-Doyle (mwhudson) wrote : | # |
Oh, the new icon looks like this: http://
Do we need a UI review? I guess we probably should.
| Tim Penhey (thumper) wrote : | # |
lib/lp/
> + if bazaar_
> + == foreign_
Our coding standard does suggest to use braces rather than line continuation
characters.
Or even:
last_revision = bazaar_
if (last_revision == foreign_
Everything else looks good!
merge approved
| Michael Hudson-Doyle (mwhudson) wrote : | # |
Hi Tim,
This branch failed tests because some other tests (the distrobrancher ones, I think) failed when run with the bzr-git plugin loaded. So I added a layer that prevents any tests from being run in the same process after the code import worker tests. Can you review this approach please? The interdiff is here: http://
With this change, the branch passed all tests in ec2.
Cheers,
mwh
| Tim Penhey (thumper) wrote : | # |
Add a comment about why this works, and land it. We can discuss the unplugability of the foreign branch bits at a later date.

Hi there,
This branch adds support to incrementally pull 5000 revisions at a time for git imports.
Not much more to say really, I hope the implementation mostly makes sense (at least if you know this area of the code).
Cheers,
mwh