/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

  • Committer: Jelmer Vernooij
  • Date: 2009-04-02 16:10:24 UTC
  • mto: (0.200.326 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090402161024-ngoay3s4mpsq5pts
Add -Dverify flag (not fully implemented yet).

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()
5
3
from bzrlib.plugins.git.server import BzrBackend
6
4
from dulwich.server import ReceivePackHandler
7
5
import sys, os
10
8
    print "usage: git-receive-pack <git-dir>"
11
9
    sys.exit(1)
12
10
 
13
 
backend = BzrBackend(bzrlib.transport.get_transport(sys.argv[1]))
 
11
backend = BzrBackend(sys.argv[1])
14
12
 
15
13
def write_fn(data):
16
14
    sys.stdout.write(data)