def list_tickets(): # TODO share me for (mode, type_, object, basename) in storage.git_ls_tree( path='', repo=tmp, children=True, ): yield basename
def list_tickets(snapshot): for (mode, type_, object, basename) in storage.git_ls_tree( path='', treeish=snapshot.head, repo=snapshot.repo, children=True, ): # TODO enforce filename sanity yield basename
def exists( snapshot, ticket, ): found = False for (mode, type_, object, basename) in storage.git_ls_tree( path=ticket, treeish=snapshot.head, repo=snapshot.repo, children=False, ): found = True break return found
def list_tickets(): for (mode, type_, object, basename) in storage.git_ls_tree( path='', children=True, ): yield basename