/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 parser.py

identify unmarked blobs and commits by line numbers

Show diffs side-by-side

added added

removed removed

Lines of Context:
323
323
 
324
324
    def _parse_blob(self):
325
325
        """Parse a blob command."""
 
326
        lineno = self.lineno
326
327
        mark = self._get_mark_if_any()
327
328
        data = self._get_data('blob')
328
 
        return commands.BlobCommand(mark, data)
 
329
        return commands.BlobCommand(mark, data, lineno)
329
330
 
330
331
    def _parse_commit(self, ref):
331
332
        """Parse a commit command."""
 
333
        lineno  = self.lineno
332
334
        mark = self._get_mark_if_any()
333
335
        author = self._get_user_info('commit', 'author', False)
334
336
        committer = self._get_user_info('commit', 'committer')
345
347
        else:
346
348
            parents = []
347
349
        return commands.CommitCommand(ref, mark, author, committer, message,
348
 
            parents, self.iter_file_commands)
 
350
            parents, self.iter_file_commands, lineno)
349
351
 
350
352
    def _parse_file_modify(self, info):
351
353
        """Parse a filemodify command within a commit.