~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to switch.py

  • Committer: Aaron Bentley
  • Date: 2007-11-14 13:51:00 UTC
  • Revision ID: abentley@panoramicfeedback.com-20071114135100-4nl2zzm8zfg0e2cu
Fix handling of heavyweight checkouts

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        raise errors.BzrCommandError(
55
55
            'The switch command can only be used on a light checkout.\n'
56
56
            'Expected branch reference, found %s at %s' % (
57
 
            format_string.strip(), transport.base))
 
57
            format_string.strip(), control.root_transport.base))
58
58
    if not format_string == BranchReferenceFormat().get_format_string():
59
59
        raise errors.BzrCommandError(
60
60
            'Unsupported: %r' % (format_string.strip(),))