def _get_log(self, limit=None):
self.ui.pushbuffer()<EOL>commands.log(self.ui, self.repo, limit=limit, date=None, rev=None, user=None)<EOL>res = self.ui.popbuffer().strip()<EOL>logList = []<EOL>for logentry in res.split("<STR_LIT>"):<EOL><INDENT>log = {}<EOL>logList.append(log)<EOL>for line in logentry.split("<STR_LIT:\n>"):<EOL><INDENT>k, v = line.split("<STR_LIT::>", <NUM_LIT:1>)<EOL>assert k in ("<STR_LIT>", "<STR_LIT>", "<STR_LIT:user>", "<STR_LIT:date>", "<STR_LIT>")<EOL>log[k.strip()] = v.strip()<EOL><DEDENT>log["<STR_LIT>"] = util.parse_time_string(log["<STR_LIT:date>"])<EOL>local_id, unid = log["<STR_LIT>"].split("<STR_LIT::>")<EOL>log["<STR_LIT>"] = int(local_id)<EOL>log["<STR_LIT>"] = unid<EOL><DEDENT>return logList<EOL>
Read log entries into a list of dictionaries.