Commit 31eb360b authored by Felipe Contreras's avatar Felipe Contreras Committed by Junio C Hamano

remote-bzr: fixes for older versions of bzr

Down to v2.0, by using older but still valid interfaces.
Signed-off-by: Felipe Contreras's avatarFelipe Contreras <>
Signed-off-by: default avatarJunio C Hamano <>
parent a70ae587
......@@ -31,6 +31,7 @@ import bzrlib.transport
import bzrlib.errors
import bzrlib.ui
import bzrlib.urlutils
import bzrlib.branch
import sys
import os
......@@ -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'):
......@@ -924,7 +925,8 @@ def main(args):
if not os.path.exists(dirname):
if hasattr(bzrlib.ui.ui_factory, 'be_quiet'):
repo = get_repo(url, alias)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment