diff mercurial/revlogutils/constants.py @ 43076:2372284d9457

formatting: blacken the codebase This is using my patch to black (https://github.com/psf/black/pull/826) so we don't un-wrap collection literals. Done with: hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S # skip-blame mass-reformatting only # no-check-commit reformats foo_bar functions Differential Revision: https://phab.mercurial-scm.org/D6971
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 09:45:02 -0400
parents a12a9af7536c
children 2d6aea053153
line wrap: on
line diff
--- a/mercurial/revlogutils/constants.py	Sat Oct 05 10:29:34 2019 -0400
+++ b/mercurial/revlogutils/constants.py	Sun Oct 06 09:45:02 2019 -0400
@@ -9,9 +9,7 @@
 
 from __future__ import absolute_import
 
-from ..interfaces import (
-    repository,
-)
+from ..interfaces import repository
 
 # revlog header flags
 REVLOGV0 = 0
@@ -20,9 +18,9 @@
 # Reminder: change the bounds check in revlog.__init__ when this is changed.
 REVLOGV2 = 0xDEAD
 # Shared across v1 and v2.
-FLAG_INLINE_DATA = (1 << 16)
+FLAG_INLINE_DATA = 1 << 16
 # Only used by v1, implied by v2.
-FLAG_GENERALDELTA = (1 << 17)
+FLAG_GENERALDELTA = 1 << 17
 REVLOG_DEFAULT_FLAGS = FLAG_INLINE_DATA
 REVLOG_DEFAULT_FORMAT = REVLOGV1
 REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_FORMAT | REVLOG_DEFAULT_FLAGS
@@ -53,10 +51,7 @@
 
 # bitmark for flags that could cause rawdata content change
 REVIDX_RAWTEXT_CHANGING_FLAGS = (
-    REVIDX_ISCENSORED
-    | REVIDX_EXTSTORED
-    | REVIDX_SIDEDATA
+    REVIDX_ISCENSORED | REVIDX_EXTSTORED | REVIDX_SIDEDATA
 )
 
 SPARSE_REVLOG_MAX_CHAIN_LENGTH = 1000
-