/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: 2019-03-04 06:21:20 UTC
  • mfrom: (7141.8.7 git-config-branches)
  • Revision ID: breezy.the.bot@gmail.com-20190304062120-pmcmhza3xro5euy7
Support reading related branches from git configs.

Merged from https://code.launchpad.net/~jelmer/brz/git-config-branches/+merge/358140

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
unquote = urlparse.unquote
163
163
 
164
164
 
165
 
def escape(relpath):
 
165
def escape(relpath, safe='/~'):
166
166
    """Escape relpath to be a valid url."""
167
167
    if not isinstance(relpath, str) and sys.version_info[0] == 2:
168
168
        relpath = relpath.encode('utf-8')
169
 
    return quote(relpath, safe='/~')
 
169
    return quote(relpath, safe=safe)
170
170
 
171
171
 
172
172
def file_relpath(base, path):