-
Notifications
You must be signed in to change notification settings - Fork 17
Description
So, if I do a little black magic (edit repositoryhandler.git.log to request only 100 commits .... implying git log -100 for a "limited history"), the last commit does not get properly inserted into DBTempLog in __writer. In fact, it comes in "ill - formed". The revision field is filled in, but no "data" (author, log message, etc.).
Adding a little debugging code to __writer shows the issue:
if n_commits == 50:
print str(load(StringIO(commits[0][2])))
cursor.executemany(statement("INSERT into _temp_log " + \
"(rev, date, object) values (?, ?, ?)",
self.db.place_holder), commits)Gives the following (for the oldest commit ... sort of HEAD~100):
{'committer': None, 'author': None, 'composed_rev': False, 'tags': None, 'commit_date': None, 'actions': [], 'branch': 'master', 'mes
sage': '', 'author_date': None, 'revision': '6d7c2b4cfa5cb17c9f84c949bfece17b60b0f929'}I receive the same sort of error with a history limited to 100 and 1000. With a history of 10, 50, 105, 200, 500 -- it works just fine. I'm guessing that one of the AsyncQ's (maybe in parser?), isn't flushing out its lines properly and leaving one at the tail end.
Input is very welcome.
Best,
Mark