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
18
19
from bzrlib.branch import Branch
20
20
from bzrlib.config import LocationConfig
21
21
from bzrlib.errors import BzrCommandError
22
from bzrlib.osutils import pathjoin, basename, abspath, getcwd
25
27
def cbranch(from_location, to_location=None, revision=None,
30
31
config = LocationConfig(abspath(to_location))
31
32
b_loc = config.get_user_option("cbranch_target")