/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 breezy/git/git-remote-bzr

  • Committer: Jelmer Vernooij
  • Date: 2019-03-05 07:32:38 UTC
  • mto: (7290.1.21 work)
  • mto: This revision was merged to the branch mainline in revision 7311.
  • Revision ID: jelmer@jelmer.uk-20190305073238-zlqn981opwnqsmzi
Add appveyor configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python3
 
1
#!/usr/bin/env python
2
2
# vim: expandtab
3
3
 
4
4
# Copyright (C) 2011 Jelmer Vernooij <jelmer@apache.org>
32
32
import breezy
33
33
breezy.initialize()
34
34
 
 
35
from breezy.sixish import PY3
 
36
 
35
37
from breezy.plugin import load_plugins
36
38
load_plugins()
37
39
 
41
43
    open_remote_dir,
42
44
    )
43
45
 
44
 
from breezy.trace import warning
45
 
 
46
46
parser = optparse.OptionParser()
47
47
(opts, args) = parser.parse_args()
48
48
(shortname, url) = args
49
49
 
50
 
warning(
51
 
    'git-remote-bzr is experimental and has not been optimized for '
52
 
    'performance. Use \'brz fast-export\' and \'git fast-import\' for '
53
 
    'large repositories.')
54
 
 
55
50
helper = RemoteHelper(open_local_dir(), shortname, open_remote_dir(url))
56
 
helper.process(sys.stdin.buffer, sys.stdout.buffer)
 
51
if PY3:
 
52
    helper.process(sys.stdin.buffer, sys.stdout.buffer)
 
53
else:
 
54
    helper.process(sys.stdin, sys.stdout)