/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/urlutils.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-09-14 22:19:55 UTC
  • mfrom: (7111.1.1 no-colo-name)
  • Revision ID: breezy.the.bot@gmail.com-20180914221955-yzu7hh0735eoinbr
Don't use colocated branch names for derived branch directory names.

Merged from https://code.launchpad.net/~jelmer/brz/no-colo-name/+merge/354946

Show diffs side-by-side

added added

removed removed

Lines of Context:
811
811
    is used without a path, e.g. c:foo-bar => foo-bar.
812
812
    If no /, path separator or : is found, the from_location is returned.
813
813
    """
 
814
    from_location, unused_params = split_segment_parameters(from_location)
814
815
    if from_location.find("/") >= 0 or from_location.find(os.sep) >= 0:
815
816
        return os.path.basename(from_location.rstrip("/\\"))
816
817
    else: