/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/plugins/git/branch.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-25 03:06:42 UTC
  • mfrom: (7045.3.4 python3-r)
  • Revision ID: breezy.the.bot@gmail.com-20180725030642-oghhedvui3470wy6
Fix another ~500 tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-r/+merge/350430

Show diffs side-by-side

added added

removed removed

Lines of Context:
460
460
        except KeyError:
461
461
            pass
462
462
        else:
463
 
            if ref != 'HEAD':
 
463
            if ref != b'HEAD':
464
464
                try:
465
 
                    params['branch'] = ref_to_branch_name(ref).encode('utf-8')
 
465
                    params['branch'] = urlutils.escape(ref_to_branch_name(ref))
466
466
                except ValueError:
467
 
                    params['ref'] = ref.encode('utf-8')
 
467
                    params['ref'] = urlutils.quote_from_bytes(ref)
468
468
 
469
 
        url = git_url_to_bzr_url(location)
 
469
        url = git_url_to_bzr_url(location.decode('utf-8'))
470
470
        return urlutils.join_segment_parameters(url, params)
471
471
 
472
472
    def set_parent(self, location):