/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzr-receive-pack

Set and verify testament.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
import bzrlib
 
3
from bzrlib.plugin import load_plugins
 
4
load_plugins()
3
5
from bzrlib.plugins.git.server import BzrBackend
4
6
from dulwich.server import ReceivePackHandler
5
7
import sys, os
8
10
    print "usage: git-receive-pack <git-dir>"
9
11
    sys.exit(1)
10
12
 
11
 
backend = BzrBackend(sys.argv[1])
 
13
backend = BzrBackend(bzrlib.transport.get_transport(sys.argv[1]))
12
14
 
13
15
def write_fn(data):
14
16
    sys.stdout.write(data)