Quantcast

[PATCH] localrepo: reformat set literals

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] localrepo: reformat set literals

Gregory Szorc
# HG changeset patch
# User Gregory Szorc <[hidden email]>
# 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.

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.
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [PATCH] localrepo: reformat set literals

Martin von Zweigbergk via Mercurial-devel
On Thu, May 18, 2017 at 8:40 PM, Gregory Szorc <[hidden email]> wrote:
> # HG changeset patch
> # User Gregory Szorc <[hidden email]>
> # Date 1495076489 25200
> #      Wed May 17 20:01:29 2017 -0700
> # Node ID cf5f7044094cc79de3e80efcd0bc5d22630c90dd
> # Parent  83ff4303132f4cbde0df62ee422652795a2d21c3
> localrepo: reformat set literals

Queued, thanks.
_______________________________________________
Mercurial-devel mailing list
[hidden email]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
Loading...