/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: Jelmer Vernooij
  • Date: 2018-09-14 12:10:17 UTC
  • mto: This revision was merged to the branch mainline in revision 7113.
  • Revision ID: jelmer@jelmer.uk-20180914121017-6oxxxqfx8exkp9ef
Don't let the default directory name derive from a branch name.

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: