/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-upload-pack

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-05-03 09:07:50 UTC
  • mfrom: (5185.1.1 fix-515660)
  • Revision ID: pqm@pqm.ubuntu.com-20100503090750-ojeefmuph3yj8m5z
Update 'bzr bind' help to indicate what happens when no location is
 specified.

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 UploadPackHandler, serve_command
8
 
import sys, os
9
 
 
10
 
if len(sys.argv) < 2:
11
 
    print "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(UploadPackHandler, backend=backend))