comparison mercurial/logcmdutil.py @ 45957:89a2afe31e82

formating: upgrade to black 20.8b1 This required a couple of small tweaks to un-confuse black, but now it works. Big formatting changes come from: * Dramatically improved collection-splitting logic upstream * Black having a strong (correct IMO) opinion that """ is better than ''' Differential Revision: https://phab.mercurial-scm.org/D9430
author Augie Fackler <raf@durin42.com>
date Fri, 27 Nov 2020 17:03:29 -0500
parents 0aa118f18d4b
children 9c0db3671008
comparison
equal deleted inserted replaced
45956:346af7687c6f 45957:89a2afe31e82
415 self._columns[b'obsolete'] % obsfateline, 415 self._columns[b'obsolete'] % obsfateline,
416 label=b'log.obsfate', 416 label=b'log.obsfate',
417 ) 417 )
418 418
419 def _exthook(self, ctx): 419 def _exthook(self, ctx):
420 '''empty method used by extension as a hook point 420 """empty method used by extension as a hook point"""
421 '''
422 421
423 def _showpatch(self, ctx, graphwidth=0): 422 def _showpatch(self, ctx, graphwidth=0):
424 if self._includestat: 423 if self._includestat:
425 self._differ.showdiff( 424 self._differ.showdiff(
426 self.ui, ctx, self._diffopts, graphwidth, stat=True 425 self.ui, ctx, self._diffopts, graphwidth, stat=True
507 self._differ.showdiff(self.ui, ctx, self._diffopts, stat=False) 506 self._differ.showdiff(self.ui, ctx, self._diffopts, stat=False)
508 fm.data(diff=self.ui.popbuffer()) 507 fm.data(diff=self.ui.popbuffer())
509 508
510 509
511 class changesettemplater(changesetprinter): 510 class changesettemplater(changesetprinter):
512 '''format changeset information. 511 """format changeset information.
513 512
514 Note: there are a variety of convenience functions to build a 513 Note: there are a variety of convenience functions to build a
515 changesettemplater for common cases. See functions such as: 514 changesettemplater for common cases. See functions such as:
516 maketemplater, changesetdisplayer, buildcommittemplate, or other 515 maketemplater, changesetdisplayer, buildcommittemplate, or other
517 functions that use changesest_templater. 516 functions that use changesest_templater.
518 ''' 517 """
519 518
520 # Arguments before "buffered" used to be positional. Consider not 519 # Arguments before "buffered" used to be positional. Consider not
521 # adding/removing arguments before "buffered" to not break callers. 520 # adding/removing arguments before "buffered" to not break callers.
522 def __init__( 521 def __init__(
523 self, ui, repo, tmplspec, differ=None, diffopts=None, buffered=False 522 self, ui, repo, tmplspec, differ=None, diffopts=None, buffered=False