manifest: use tuple for `delta` in `fastdelta`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 05 Aug 2024 10:10:03 +0200
changeset 51769 897972398e61
parent 51768 3e9a660b074a
child 51770 3be39e36732a
manifest: use tuple for `delta` in `fastdelta` This make the list content consistent and will help type annotation.
mercurial/manifest.py
--- a/mercurial/manifest.py	Mon Aug 05 09:22:18 2024 +0200
+++ b/mercurial/manifest.py	Mon Aug 05 10:10:03 2024 +0200
@@ -692,13 +692,13 @@
                         dline.append(l)
                 else:
                     if dstart is not None:
-                        delta.append([dstart, dend, b"".join(dline)])
+                        delta.append((dstart, dend, b"".join(dline)))
                     dstart = start
                     dend = end
                     dline = [l]
 
             if dstart is not None:
-                delta.append([dstart, dend, b"".join(dline)])
+                delta.append((dstart, dend, b"".join(dline)))
             # apply the delta to the base, and get a delta for addrevision
             deltatext, arraytext = _addlistdelta(base, delta)
         else: