Exemple #1
0
 def list_tickets():
     # TODO share me
     for (mode, type_, object, basename) in storage.git_ls_tree(
         path='',
         repo=tmp,
         children=True,
         ):
         yield basename
Exemple #2
0
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
Exemple #3
0
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
Exemple #4
0
 def list_tickets():
     for (mode, type_, object, basename) in storage.git_ls_tree(
         path='',
         children=True,
         ):
         yield basename