15
15
# along with this program; if not, write to the Free Software
16
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
18
from bzrlib.bzrdir import BzrDir
20
19
from bzrlib.branch import Branch
21
20
from bzrlib.config import LocationConfig
23
22
from bzrlib.osutils import pathjoin, basename, abspath
25
23
from bzrlib.workingtree import WorkingTree
26
25
from bzrlib.urlutils import derive_to_location
28
27
def cbranch(from_location, to_location=None, revision=None,
31
30
to_location = derive_to_location(from_location)
32
31
config = LocationConfig(abspath(to_location))