~gandelman-a/+junk/os_testing

« back to all changes in this revision

Viewing changes to archive-tools/prep_sru_changelog.py

  • Committer: Adam Gandelman
  • Date: 2012-12-04 23:13:43 UTC
  • Revision ID: adamg@canonical.com-20121204231343-ignl3mvzjchydw7d
prep_sru_changelog.py: Small fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
    top_commit = target.commit
121
121
    # Be sure to include the most recent commit, not just its parents.
122
122
    summary = _process_commit(top_commit)
 
123
    if top_commit == end_commit:
 
124
        end_commit_seen = True
123
125
    if summary:
124
126
        log.append(summary)
125
127
    for commit in top_commit.iter_parents():
131
133
        if end_commit_seen:
132
134
            if commit == start_commit:
133
135
                break
 
136
 
134
137
        summary = _process_commit(commit)
135
138
        if summary and summary not in log:
136
139
            log.append(summary)