comparison mercurial/dagparser.py @ 45942: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 6d001f452bcb
children 70f8c64812db
comparison
equal deleted inserted replaced
45941:346af7687c6f 45942:89a2afe31e82
423 wrapcommands=False, 423 wrapcommands=False,
424 wrapnonlinear=False, 424 wrapnonlinear=False,
425 usedots=False, 425 usedots=False,
426 maxlinewidth=70, 426 maxlinewidth=70,
427 ): 427 ):
428 '''generates lines of a textual representation for a dag event stream 428 """generates lines of a textual representation for a dag event stream
429 429
430 events should generate what parsedag() does, so: 430 events should generate what parsedag() does, so:
431 431
432 ('n', (id, [parentids])) for node creation 432 ('n', (id, [parentids])) for node creation
433 ('l', (id, labelname)) for labels on nodes 433 ('l', (id, labelname)) for labels on nodes
499 Combining parsedag and dagtext: 499 Combining parsedag and dagtext:
500 500
501 >>> dagtext(parsedag(b'+1 :f +1 :p2 *f */p2')) 501 >>> dagtext(parsedag(b'+1 :f +1 :p2 *f */p2'))
502 '+1 :f +1 :p2 *f */p2' 502 '+1 :f +1 :p2 *f */p2'
503 503
504 ''' 504 """
505 return b"\n".join( 505 return b"\n".join(
506 dagtextlines( 506 dagtextlines(
507 dag, 507 dag,
508 addspaces, 508 addspaces,
509 wraplabels, 509 wraplabels,