Example #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
Example #2
0
File: lookup.py Project: tv42/bugit
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
Example #3
0
File: lookup.py Project: tv42/bugit
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
Example #4
0
 def list_tickets():
     for (mode, type_, object, basename) in storage.git_ls_tree(
         path='',
         children=True,
         ):
         yield basename