Patchwork localrepo: reformat set literals

login
register
mail settings
Submitter Gregory Szorc
Date May 19, 2017, 3:40 a.m.
Message ID <cf5f7044094cc79de3e8.1495165224@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/20702/
State Accepted
Headers show

Comments

Gregory Szorc - May 19, 2017, 3:40 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1495076489 25200
#      Wed May 17 20:01:29 2017 -0700
# Node ID cf5f7044094cc79de3e80efcd0bc5d22630c90dd
# Parent  83ff4303132f4cbde0df62ee422652795a2d21c3
localrepo: reformat set literals

Putting multiple elements on the same line makes diffs harder
to read. Switch to one line per element so future changes are
easier on the eyes.
via Mercurial-devel - May 19, 2017, 4:39 a.m.
On Thu, May 18, 2017 at 8:40 PM, Gregory Szorc <gregory.szorc@gmail.com> wrote:
> # HG changeset patch
> # User Gregory Szorc <gregory.szorc@gmail.com>
> # Date 1495076489 25200
> #      Wed May 17 20:01:29 2017 -0700
> # Node ID cf5f7044094cc79de3e80efcd0bc5d22630c90dd
> # Parent  83ff4303132f4cbde0df62ee422652795a2d21c3
> localrepo: reformat set literals

Queued, thanks.

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -247,11 +247,25 @@  class locallegacypeer(localpeer):
 
 class localrepository(object):
 
-    supportedformats = {'revlogv1', 'generaldelta', 'treemanifest',
-                        'manifestv2'}
-    _basesupported = supportedformats | {'store', 'fncache', 'shared',
-                                         'relshared', 'dotencode'}
-    openerreqs = {'revlogv1', 'generaldelta', 'treemanifest', 'manifestv2'}
+    supportedformats = {
+        'revlogv1',
+        'generaldelta',
+        'treemanifest',
+        'manifestv2',
+    }
+    _basesupported = supportedformats | {
+        'store',
+        'fncache',
+        'shared',
+        'relshared',
+        'dotencode',
+    }
+    openerreqs = {
+        'revlogv1',
+        'generaldelta',
+        'treemanifest',
+        'manifestv2',
+    }
     filtername = None
 
     # a list of (ui, featureset) functions.