Esempio n. 1
0
 def serve_command(self, handler_cls, args, inf, outf):
     return serve_command(
         handler_cls,
         [b"test"] + args,
         backend=self.backend,
         inf=inf,
         outf=outf,
     )
Esempio n. 2
0
 def serve_command(self, handler_cls, args, inf, outf):
     return serve_command(handler_cls, [b"test"] + args, backend=self.backend,
         inf=inf, outf=outf)
#!/usr/bin/env python

import camlistore
from camligit import CamliBackend

from dulwich.server import (
    serve_command,
    UploadPackHandler,
)


conn = camlistore.connect("http://localhost:3179/")

backend = CamliBackend(conn)
serve_command(UploadPackHandler, backend=backend)
#!/usr/bin/env python

import camlistore
from camligit import CamliBackend

from dulwich.server import (
    serve_command,
    ReceivePackHandler,
)

conn = camlistore.connect("http://localhost:3179/")

backend = CamliBackend(conn)
serve_command(ReceivePackHandler, backend=backend)