Export-to-branch should skip unchanged files

Bug #407590 reported by Jeroen T. Vermeulen
22
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

Revision history for this message
Данило Шеган (danilo) wrote :

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.

Changed in rosetta:
milestone: none → 3.0
importance: Medium → High
tags: added: code-integration
Changed in rosetta:
assignee: nobody → Jeroen T. Vermeulen (jtv)
Changed in rosetta:
status: Triaged → In Progress
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Fixed in devel 9481

Changed in rosetta:
status: In Progress → Fix Committed
Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.