hgext/fastannotate/context.py
changeset 40669 d6a13f6db69c
parent 39728 ce4c29705983
child 40675 9fcf8084ada8
equal deleted inserted replaced
40668:feae4d1f5e01 40669:d6a13f6db69c
   154         'followrename': True,
   154         'followrename': True,
   155         'followmerge': True,
   155         'followmerge': True,
   156     }
   156     }
   157 
   157 
   158     def __init__(self, **opts):
   158     def __init__(self, **opts):
       
   159         opts = pycompat.byteskwargs(opts)
   159         for k, v in self.defaults.iteritems():
   160         for k, v in self.defaults.iteritems():
   160             setattr(self, k, opts.get(k, v))
   161             setattr(self, k, opts.get(k, v))
   161 
   162 
   162     @util.propertycache
   163     @util.propertycache
   163     def shortstr(self):
   164     def shortstr(self):