Merge lp://staging/~nacc/ubuntu-dev-tools/update-vcs into lp://staging/~ubuntu-dev/ubuntu-dev-tools/trunk
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~nacc/ubuntu-dev-tools/update-vcs |
Merge into: | lp://staging/~ubuntu-dev/ubuntu-dev-tools/trunk |
Diff against target: |
241 lines (+129/-44) 2 files modified
ubuntutools/update_maintainer.py (+122/-43) update-maintainer (+7/-1) |
To merge this branch: | bzr merge lp://staging/~nacc/ubuntu-dev-tools/update-vcs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mattia Rizzolo | Needs Information | ||
Benjamin Drung | Needs Fixing | ||
Review via email: mp+308871@code.staging.launchpad.net |
Description of the change
I am not necessarily requesting this for merging yet, but it's a PoC implementation that resolves a process issue we hit somewhat often on the Server Team.
I am open to:
- Making this a separate command
- Adding a new command (update-metadata?) that update-maintainer aliases to for BC which supports the new flag (perhaps without the flag and by default therefore?)
- Adding a parameter to --vcs to specify a new value should be used instead (similar for vcs-browser I guess?). Could use the protocol of the repository to determine the protocol to use for the tag, if needed?
- ... any other changes, I just think code speaks louder than words :)
Unmerged revisions
- 1456. By Nish Aravamudan
-
Fix obvious syntax errors. Sorry!
- 1455. By Nish Aravamudan
-
Pass verbose down to the internal functions.
- 1454. By Nish Aravamudan
-
Drop unnecessary whitespace change.
- 1453. By Nish Aravamudan
-
Merge with lp:ubuntu-dev-tools
- 1452. By Nish Aravamudan
-
Refactor code based upon MR feedback. Remove duplication of code between
update_maintainer. py and update_vcs.py. Delete update_vcs.py. Add a vcs
parameter to {update,restore} _maintainer to indicate if VCS fields
should be modified. Refactor both functions to not continue in the loop
until both maintainer and VCS fields have been examined if necessary. - 1451. By Nish Aravamudan
-
update-maintainer: add --vcs mode
As we perform merges on the server team, we tend to try and replay the
maintainer changes to debian/control via update-maintainer. However, for
those packages that also update the Vcs fields, we have no automated
tooling to do the same. Add a fairly simple version of the same code
as in update_maintainer, but handling Vcs-Git-* fields (including
Browser).Signed-off-by: Nishanth Aravamudan <email address hidden>
A quick review.
1) Instead of duplicating code (including classes), please re-use ubuntutools. update_ maintainer and add your new methods to the Control class.
2) The functions update_maintainer and restore_maintainer could gain an vcs parameter to update the vcs option or you can refactor the code to retrieve the control class and then run update_maintainer, update_vcs on it.
3) Having an option to set the vcs values would be nice
I don't thinks that splitting this feature into a separate command makes sense.