/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: Michael Hudson
  • Date: 2010-02-17 02:34:02 UTC
  • mto: (0.200.721 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: michael.hudson@canonical.com-20100217023402-aq92w9wqnk9b32r7
NEWS

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)