# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-06-26 11:53:10 # Node ID a5e1393f61a2347eefe3d017bd62b88fd5a5d3be # Parent 53238678b1ca191aed76eb139da85459bc5b63bc py3: use pycompat.bytestr instead of str diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -324,7 +324,7 @@ def annotate(ui, repo, *pats, **opts): return '%s ' % hex else: hexfn = rootfm.hexfunc - formatrev = formathex = str + formatrev = formathex = pycompat.bytestr opmap = [('user', ' ', lambda x: x[0].user(), ui.shortuser), ('number', ' ', lambda x: x[0].rev(), formatrev),