~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to cbranch.py

  • Committer: Aaron Bentley
  • Date: 2006-03-31 01:47:15 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20060331014715-127c9cda9bbc1e6f
Strip trailing / from input location

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib.osutils import pathjoin, basename, abspath, getcwd
22
22
 
23
23
def cbranch(from_location, to_location=None, revision=None, lightweight=False):
 
24
    from_location = from_location.rstrip('/')
24
25
    if to_location is None:
25
26
        to_location = pathjoin(getcwd(), basename(from_location))
26
27
    config = LocationConfig(abspath(to_location))