Skip to content

Commit

Permalink
remote-bzr: fixes for older versions of bzr
Browse files Browse the repository at this point in the history
Down to v2.0, by using older but still valid interfaces.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed May 17, 2013
1 parent a70ae58 commit 31eb360
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contrib/remote-helpers/git-remote-bzr
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import bzrlib.transport
import bzrlib.errors
import bzrlib.ui
import bzrlib.urlutils
import bzrlib.branch

import sys
import os
Expand Down Expand Up @@ -788,7 +789,7 @@ def get_remote_branch(origin, remote_branch, name):
return branch

def find_branches(repo, wanted):
transport = repo.user_transport
transport = repo.bzrdir.root_transport

for fn in transport.iter_files_recursive():
if not fn.endswith('.bzr/branch-format'):
Expand Down Expand Up @@ -924,7 +925,8 @@ def main(args):
if not os.path.exists(dirname):
os.makedirs(dirname)

bzrlib.ui.ui_factory.be_quiet(True)
if hasattr(bzrlib.ui.ui_factory, 'be_quiet'):
bzrlib.ui.ui_factory.be_quiet(True)

repo = get_repo(url, alias)

Expand Down

0 comments on commit 31eb360

Please sign in to comment.