/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: Ian Clatworthy
  • Date: 2007-09-21 07:29:37 UTC
  • mto: (2867.1.1 ianc-integration2)
  • mto: This revision was merged to the branch mainline in revision 2869.
  • Revision ID: ian.clatworthy@internode.on.net-20070921072937-ase3yh9f1pune4vq
Incorporate feedback from poolie's review

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
 
3
 
import bzrlib
4
 
from bzrlib.plugin import load_plugins
5
 
load_plugins()
6
 
from bzrlib.plugins.git.server import BzrBackend
7
 
from dulwich.server import ReceivePackHandler, serve_command
8
 
import sys, os
9
 
 
10
 
if len(sys.argv) < 2:
11
 
    print >>sys.stderr, "usage: %s <git-dir>" % os.path.basename(sys.argv[0])
12
 
    sys.exit(1)
13
 
 
14
 
backend = BzrBackend(bzrlib.transport.get_transport("/"))
15
 
sys.exit(serve_command(ReceivePackHandler, backend=backend))