comparison mercurial/revlogutils/sidedata.py @ 43142:beed7ce61681

sidedatacopies: write copies information in sidedata when applicable If the format of the repository indicate it stores copies information into changeset's sidedata, then we actually write that information into sidedata at commit time. It will be put to use in later changesets. Currently, we store all field unconditionally, but that is likely to change in the future for the sake of efficiency. Differential Revision: https://phab.mercurial-scm.org/D6950
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 06 Oct 2019 23:36:51 -0400
parents 687b865b95ad
children 9f70512ae2cf
comparison
equal deleted inserted replaced
43141:52781d57313d 43142:beed7ce61681
45 SD_TEST3 = 3 45 SD_TEST3 = 3
46 SD_TEST4 = 4 46 SD_TEST4 = 4
47 SD_TEST5 = 5 47 SD_TEST5 = 5
48 SD_TEST6 = 6 48 SD_TEST6 = 6
49 SD_TEST7 = 7 49 SD_TEST7 = 7
50
51 # key to store copies related information
52 SD_P1COPIES = 8
53 SD_P2COPIES = 9
54 SD_FILESADDED = 10
55 SD_FILESREMOVED = 11
50 56
51 # internal format constant 57 # internal format constant
52 SIDEDATA_HEADER = struct.Struct(r'>H') 58 SIDEDATA_HEADER = struct.Struct(r'>H')
53 SIDEDATA_ENTRY = struct.Struct(r'>HL20s') 59 SIDEDATA_ENTRY = struct.Struct(r'>HL20s')
54 60