/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-06 11:48:54 UTC
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180506114854-h4qd9ojaqy8wxjsd
Move .mailmap to root.

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.encode()
36
 
        rev_id = rev_id.encode()
 
35
        file_id = file_id.decode('ascii')
 
36
        rev_id = rev_id.decode('ascii')
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 + b'\n')
 
50
                self.outf.write(inv.revision_id + '\n')