Skip to content

Problem if # commits == 100 or 1000 #139

@mfenner1

Description

@mfenner1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions