mercurial/logcmdutil.py
changeset 48946 642e31cb55f0
parent 48913 f254fc73d956
child 49029 eb8aed493a56
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
   225                 fp=fp,
   225                 fp=fp,
   226                 prefix=subprefix,
   226                 prefix=subprefix,
   227             )
   227             )
   228 
   228 
   229 
   229 
   230 class changesetdiffer(object):
   230 class changesetdiffer:
   231     """Generate diff of changeset with pre-configured filtering functions"""
   231     """Generate diff of changeset with pre-configured filtering functions"""
   232 
   232 
   233     def _makefilematcher(self, ctx):
   233     def _makefilematcher(self, ctx):
   234         return scmutil.matchall(ctx.repo())
   234         return scmutil.matchall(ctx.repo())
   235 
   235 
   259         for instability in ctx.instabilities():
   259         for instability in ctx.instabilities():
   260             labels.append(b'instability.%s' % instability)
   260             labels.append(b'instability.%s' % instability)
   261     return b' '.join(labels)
   261     return b' '.join(labels)
   262 
   262 
   263 
   263 
   264 class changesetprinter(object):
   264 class changesetprinter:
   265     '''show changeset information when templating not requested.'''
   265     '''show changeset information when templating not requested.'''
   266 
   266 
   267     def __init__(self, ui, repo, differ=None, diffopts=None, buffered=False):
   267     def __init__(self, ui, repo, differ=None, diffopts=None, buffered=False):
   268         self.ui = ui
   268         self.ui = ui
   269         self.repo = repo
   269         self.repo = repo
   704 
   704 
   705     return changesettemplater(ui, repo, spec, *postargs)
   705     return changesettemplater(ui, repo, spec, *postargs)
   706 
   706 
   707 
   707 
   708 @attr.s
   708 @attr.s
   709 class walkopts(object):
   709 class walkopts:
   710     """Options to configure a set of revisions and file matcher factory
   710     """Options to configure a set of revisions and file matcher factory
   711     to scan revision/file history
   711     to scan revision/file history
   712     """
   712     """
   713 
   713 
   714     # raw command-line parameters, which a matcher will be built from
   714     # raw command-line parameters, which a matcher will be built from