~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/scripts/translations_to_branch.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-01 20:32:35 UTC
  • mfrom: (13261.7.23 bzr-2.4b4)
  • Revision ID: launchpad@pqm.canonical.com-20110901203235-gjkcaa4llvi4q856
[r=gmb][bug=301472] Update bzr to version 2.4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
import os.path
15
15
 
16
16
from bzrlib.errors import NotBranchError
 
17
from bzrlib.revision import NULL_REVISION
17
18
import pytz
18
19
from storm.expr import (
19
20
    And,
157
158
 
158
159
        revno, current_rev = branch.last_revision_info()
159
160
        repository = branch.repository
160
 
        for rev_id in repository.iter_reverse_revision_history(current_rev):
 
161
        graph = repository.get_graph()
 
162
        for rev_id in graph.iter_lefthand_ancestry(
 
163
                current_rev, (NULL_REVISION, )):
161
164
            revision = repository.get_revision(rev_id)
162
165
            revision_date = self._getRevisionTime(revision)
163
166
            if self._isTranslationsCommit(revision):