Mercurial > hg
comparison mercurial/interfaces/repository.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 | a5206e71c536 |
children | 464539c305aa |
comparison
equal
deleted
inserted
replaced
45941:346af7687c6f | 45942:89a2afe31e82 |
---|---|
615 | 615 |
616 Any metadata is excluded from size measurements. | 616 Any metadata is excluded from size measurements. |
617 """ | 617 """ |
618 | 618 |
619 def revision(node, raw=False): | 619 def revision(node, raw=False): |
620 """"Obtain fulltext data for a node. | 620 """ "Obtain fulltext data for a node. |
621 | 621 |
622 By default, any storage transformations are applied before the data | 622 By default, any storage transformations are applied before the data |
623 is returned. If ``raw`` is True, non-raw storage transformations | 623 is returned. If ``raw`` is True, non-raw storage transformations |
624 are not applied. | 624 are not applied. |
625 | 625 |
626 The fulltext data may contain a header containing metadata. Most | 626 The fulltext data may contain a header containing metadata. Most |
627 consumers should use ``read()`` to obtain the actual file data. | 627 consumers should use ``read()`` to obtain the actual file data. |
628 """ | 628 """ |
629 | 629 |
630 def rawdata(node): | 630 def rawdata(node): |
631 """Obtain raw data for a node. | 631 """Obtain raw data for a node.""" |
632 """ | |
633 | 632 |
634 def read(node): | 633 def read(node): |
635 """Resolve file fulltext data. | 634 """Resolve file fulltext data. |
636 | 635 |
637 This is similar to ``revision()`` except any metadata in the data | 636 This is similar to ``revision()`` except any metadata in the data |