hgext/absorb.py
changeset 44452 9d2b2df2c2ba
parent 44236 e1ecfc7c84be
child 44983 1b757f385549
--- a/hgext/absorb.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/hgext/absorb.py	Fri Mar 06 13:27:41 2020 -0500
@@ -407,7 +407,7 @@
             involved = [
                 annotated[i] for i in nearbylinenums if annotated[i][0] != 1
             ]
-        involvedrevs = list(set(r for r, l in involved))
+        involvedrevs = list({r for r, l in involved})
         newfixups = []
         if len(involvedrevs) == 1 and self._iscontinuous(a1, a2 - 1, True):
             # chunk belongs to a single revision
@@ -734,10 +734,10 @@
     @property
     def chunkstats(self):
         """-> {path: chunkstats}. collect chunkstats from filefixupstates"""
-        return dict(
-            (path, state.chunkstats)
+        return {
+            path: state.chunkstats
             for path, state in pycompat.iteritems(self.fixupmap)
-        )
+        }
 
     def commit(self):
         """commit changes. update self.finalnode, self.replacemap"""