changeset 51821:897972398e61

manifest: use tuple for `delta` in `fastdelta` This make the list content consistent and will help type annotation.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 05 Aug 2024 10:10:03 +0200
parents 3e9a660b074a
children 3be39e36732a
files mercurial/manifest.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: