/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3

import breezy
import breezy.bzr
import breezy.git
from breezy.git.server import BzrBackend
from dulwich.server import ReceivePackHandler, serve_command
import sys, os

if len(sys.argv) < 2:
    print("usage: %s <git-dir>" % os.path.basename(sys.argv[0]))
    sys.exit(1)

backend = BzrBackend(breezy.transport.get_transport("/"))
sys.exit(serve_command(ReceivePackHandler, backend=backend))