/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/refs.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-03 03:20:44 UTC
  • mfrom: (7018.3.10 git-fixes)
  • Revision ID: breezy.the.bot@gmail.com-20180703032044-t5a5w5y0tmzrbezc
Port a few more bits of the git plugin to python 3.

Merged from https://code.launchpad.net/~jelmer/brz/git-fixes2/+merge/348803

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    if ref is None:
88
88
        return ref
89
89
    if ref.startswith(LOCAL_BRANCH_PREFIX):
90
 
        return osutils.safe_unicode(ref[len(LOCAL_BRANCH_PREFIX):])
 
90
        return ref[len(LOCAL_BRANCH_PREFIX):].decode('utf-8')
91
91
    raise ValueError("unable to map ref %s back to branch name" % ref)
92
92
 
93
93