~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to cbranch.py

  • Committer: Aaron Bentley
  • Date: 2006-03-29 13:59:14 UTC
  • Revision ID: abentley@panoramicfeedback.com-20060329135914-43b75df29af22b14
Fixed thinko determining to_location

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
def cbranch(from_location, to_location=None, revision=None, lightweight=False):
24
24
    if to_location is None:
25
 
        to_location = pathjoin(getcwd(), basename(to_location))
 
25
        to_location = pathjoin(getcwd(), basename(from_location))
26
26
    config = LocationConfig(abspath(to_location))
27
27
    b_root = config.get_user_option("cbranch_root")
28
28
    if b_root is None: