/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to processors/info_processor.py

support merges when from clause implicit

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
    def commit_handler(self, cmd):
174
174
        """Process a CommitCommand."""
175
175
        self.cmd_counts[cmd.name] += 1
176
 
        self.parent_counts[len(cmd.parents)] += 1
177
176
        self.committers.add(cmd.committer)
178
177
        if cmd.author is not None:
179
178
            self.separate_authors_found = True
190
189
                    else:
191
190
                        self.sha_blob_references = True
192
191
        # Track the heads
193
 
        if cmd.parents:
194
 
            parents = cmd.parents
 
192
        if cmd.from_ is not None:
 
193
            parents = [cmd.from_]
195
194
        else:
196
195
            last_id = self.last_ids.get(cmd.ref)
197
196
            if last_id is not None:
198
197
                parents = [last_id]
199
198
            else:
200
199
                parents = []
 
200
        parents.extend(cmd.merges)
201
201
        for parent in parents:
202
202
            try:
203
203
                del self.heads[parent]
207
207
                pass
208
208
        self.heads[cmd.id] = cmd.ref
209
209
        self.last_ids[cmd.ref] = cmd.id
 
210
        self.parent_counts[len(parents)] += 1
210
211
 
211
212
    def reset_handler(self, cmd):
212
213
        """Process a ResetCommand."""