Skip to content

Commit 31eb360

Browse files
felipecgitster
authored andcommitted
remote-bzr: fixes for older versions of bzr
Down to v2.0, by using older but still valid interfaces. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a70ae58 commit 31eb360

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contrib/remote-helpers/git-remote-bzr

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import bzrlib.transport
3131
import bzrlib.errors
3232
import bzrlib.ui
3333
import bzrlib.urlutils
34+
import bzrlib.branch
3435

3536
import sys
3637
import os
@@ -788,7 +789,7 @@ def get_remote_branch(origin, remote_branch, name):
788789
return branch
789790

790791
def find_branches(repo, wanted):
791-
transport = repo.user_transport
792+
transport = repo.bzrdir.root_transport
792793

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

927-
bzrlib.ui.ui_factory.be_quiet(True)
928+
if hasattr(bzrlib.ui.ui_factory, 'be_quiet'):
929+
bzrlib.ui.ui_factory.be_quiet(True)
928930

929931
repo = get_repo(url, alias)
930932

0 commit comments

Comments
 (0)