Mercurial > hg
comparison mercurial/metadata.py @ 45635:9003e6524f78
changing-files: drop the now useless changelogrevision argument
Since all filename are now included in the sidedata block, we no longer need to decode the `files` from the revision.
Differential Revision: https://phab.mercurial-scm.org/D9091
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 15 Sep 2020 10:49:50 +0200 |
parents | 9a6b409b8ebc |
children | a475db79d84d |
comparison
equal
deleted
inserted
replaced
45634:9a6b409b8ebc | 45635:9003e6524f78 |
---|---|
428 chunks.append(INDEX_ENTRY.pack(flag, filename_length, copy_idx)) | 428 chunks.append(INDEX_ENTRY.pack(flag, filename_length, copy_idx)) |
429 chunks.extend(all_files) | 429 chunks.extend(all_files) |
430 return {sidedatamod.SD_FILES: b''.join(chunks)} | 430 return {sidedatamod.SD_FILES: b''.join(chunks)} |
431 | 431 |
432 | 432 |
433 def decode_files_sidedata(changelogrevision, sidedata): | 433 def decode_files_sidedata(sidedata): |
434 md = ChangingFiles() | 434 md = ChangingFiles() |
435 raw = sidedata.get(sidedatamod.SD_FILES) | 435 raw = sidedata.get(sidedatamod.SD_FILES) |
436 | 436 |
437 if raw is None: | 437 if raw is None: |
438 return md | 438 return md |