Exemplo n.º 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
Exemplo n.º 2
0
Arquivo: lookup.py Projeto: 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
Exemplo n.º 3
0
Arquivo: lookup.py Projeto: 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
Exemplo n.º 4
0
 def list_tickets():
     for (mode, type_, object, basename) in storage.git_ls_tree(
         path='',
         children=True,
         ):
         yield basename