/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/repodebug/file_refs.py

  • Committer: Jelmer Vernooij
  • Date: 2018-05-27 18:00:21 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 6992.
  • Revision ID: jelmer@jelmer.uk-20180527180021-kbdxgsh5bbbxha8o
Random bunch of python3 bee-improvements.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    takes_options = ['directory']
33
33
 
34
34
    def run(self, file_id, rev_id, directory=u'.'):
35
 
        file_id = file_id.decode('ascii')
36
 
        rev_id = rev_id.decode('ascii')
 
35
        file_id = file_id.encode()
 
36
        rev_id = rev_id.encode()
37
37
        bd, relpath = controldir.ControlDir.open_containing(directory)
38
38
        repo = bd.find_repository()
39
39
        self.add_cleanup(repo.lock_read().unlock)
47
47
                # This file doesn't even appear in this inv.
48
48
                continue
49
49
            if entry.revision == rev_id:
50
 
                self.outf.write(inv.revision_id + '\n')
 
50
                self.outf.write(inv.revision_id + b'\n')