changeset 45569:64d18e9e8508

sidedata: rename `encode_copies_sidedata` to `encode_files_sidedata` We are storing more than copies information, so lets make it clear.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 22 Sep 2020 10:27:35 +0200
parents 9a26fea2b518
children 9a3563b46f52
files mercurial/changelog.py mercurial/metadata.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changelog.py	Sat Sep 12 21:45:37 2020 +0900
+++ b/mercurial/changelog.py	Tue Sep 22 10:27:35 2020 +0200
@@ -570,7 +570,7 @@
         sortedfiles = sorted(files.touched)
         sidedata = None
         if self._copiesstorage == b'changeset-sidedata':
-            sidedata = metadata.encode_copies_sidedata(files)
+            sidedata = metadata.encode_files_sidedata(files)
 
         if extra:
             extra = encodeextra(extra)
--- a/mercurial/metadata.py	Sat Sep 12 21:45:37 2020 +0900
+++ b/mercurial/metadata.py	Tue Sep 22 10:27:35 2020 +0200
@@ -318,7 +318,7 @@
         return None
 
 
-def encode_copies_sidedata(files):
+def encode_files_sidedata(files):
     sortedfiles = sorted(files.touched)
     sidedata = {}
     p1copies = files.copied_from_p1