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

  • Committer: Jelmer Vernooij
  • Date: 2020-07-28 00:32:38 UTC
  • mfrom: (7490.40.77 work)
  • mto: (7490.40.79 work)
  • mto: This revision was merged to the branch mainline in revision 7521.
  • Revision ID: jelmer@jelmer.uk-20200728003238-vx5u412hn72f18lr
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
            raise ValueError
211
211
        return decode_git_path(unescape_file_id(file_id[len(FILE_ID_PREFIX):]))
212
212
 
213
 
    def revid_as_refname(self, revid):
214
 
        if not isinstance(revid, bytes):
215
 
            raise TypeError(revid)
216
 
        if PY3:
217
 
            revid = revid.decode('utf-8')
218
 
        quoted_revid = urlutils.quote(revid)
219
 
        return b"refs/bzr/" + quoted_revid.encode('utf-8')
220
 
 
221
213
    def import_unusual_file_modes(self, rev, unusual_file_modes):
222
214
        if unusual_file_modes:
223
215
            ret = [(path, unusual_file_modes[path])