Skip to content

Should only consider commits for the current namespace #43

@simonw

Description

@simonw

Repeating the command against a database with more than one namespace can result in commits being missed, because all commits across all namespaces will be skipped - especially problematic if you try to run against the same file but using a different namespace.

Solution: this code should take the current namespace into account:

def get_commit_hashes(db):
return (
set(r[0] for r in db.execute("select hash from commits").fetchall())
if db["commits"].exists()
else set()
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions