Export-to-branch should skip unchanged files
Bug #407590 reported by
Jeroen T. Vermeulen
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Jeroen T. Vermeulen |
Bug Description
The export-to-branch feature currently re-generates every POFile every time. It should only regenerate files that have been changed/created since the last export, or have had their templates changed/created since the last export.
One way to do it would be to add a last-exported timestamp to the product series, but then the export script would need update privileges on ProductSeries just for that. Another approach is a separate table mapping (distroseries, branch) -> timestamp.
Related branches
lp://qastaging/~jtv/launchpad/bug-407590
- Brad Crittenden (community): Approve
- Diff: None lines
Changed in rosetta: | |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
Changed in rosetta: | |
status: | Triaged → In Progress |
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
My comment from bug #415243:
We should export only those PO files which have been changed since the last commit. The slightly harder part is figuring out when were last translations committed, but we can probably figure that out by using some heuristics (we can't just export anything that has been changed in the last day, since our previous export might have failed): i.e. X-Launchpad- Export- Date and bzr revision log should be enough.