Merge lp://staging/~mnordhoff/loggerhead/one-config into lp://staging/loggerhead
Proposed by
Matt Nordhoff
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp://staging/~mnordhoff/loggerhead/one-config |
Merge into: | lp://staging/loggerhead |
Diff against target: | None lines |
To merge this branch: | bzr merge lp://staging/~mnordhoff/loggerhead/one-config |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Hudson-Doyle | Approve | ||
Review via email: mp+5643@code.staging.launchpad.net |
To post a comment you must log in.
Updating diff...
An updated diff will be available in a few minutes. Reload to see the changes.
Hello!
This makes serve-branches pass its LoggerheadConfig object to {User,} BranchesFromFil eSystemRoot, which then passes it to BranchesFromFil eSystemServer instead of creating a new one every time.
Um. I honestly don't know if this is a benefit in any way, but it seems like a good idea to me. There's no need to call optparse more than once, so why do it? I think it's worth a little complexity.
The biggest open issue, IMO, is whether to make the "config" arguments optional, for the sake of backwards compatibility. I did it this way since it was the least typing, but I don't really have a preference.
I also made only the minimal code changes necessary. It would probably be better to restructure things, but again, less typing. :D
(This change benefits me because it makes it possible to hack the LoggerheadConfig object in serve-branches to do weird things instead of having to manipulate sys.argv or something.)