/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: Jelmer Vernooij
  • Author(s): Chadrik
  • Date: 2010-07-26 14:02:05 UTC
  • mto: (0.312.1 master) (6883.23.1 bundle-git)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20100726140205-m45dyrhi1ifg0fck
Fix 'bzr status' after 'bzr add' in native git working trees.

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 UploadPackHandler
5
7
import sys, os, optparse
13
15
    print "usage: " + parser.usage
14
16
    sys.exit(1)
15
17
 
16
 
backend = BzrBackend(sys.argv[1])
 
18
backend = BzrBackend(bzrlib.transport.get_transport(sys.argv[1]))
17
19
 
18
20
def write_fn(data):
19
21
    sys.stdout.write(data)