comparison mercurial/upgrade_utils/engine.py @ 47148:a07d5cb03a85

revlog: rename `indexfile` to `_indexfile` We want to make the actual location of the indexfile and location more of an implementation details than what is is currently. In that process, we make the attribute private. Differential Revision: https://phab.mercurial-scm.org/D10574
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 03 May 2021 12:22:16 +0200
parents bea4717415c0
children 396442cd7e6a
comparison
equal deleted inserted replaced
47147:8a1a51d31e85 47148:a07d5cb03a85
78 newrl = _revlogfrompath(destrepo, rl_type, unencodedname) 78 newrl = _revlogfrompath(destrepo, rl_type, unencodedname)
79 newrl = getattr(newrl, '_revlog', newrl) 79 newrl = getattr(newrl, '_revlog', newrl)
80 80
81 oldvfs = oldrl.opener 81 oldvfs = oldrl.opener
82 newvfs = newrl.opener 82 newvfs = newrl.opener
83 oldindex = oldvfs.join(oldrl.indexfile) 83 oldindex = oldvfs.join(oldrl._indexfile)
84 newindex = newvfs.join(newrl.indexfile) 84 newindex = newvfs.join(newrl._indexfile)
85 olddata = oldvfs.join(oldrl.datafile) 85 olddata = oldvfs.join(oldrl.datafile)
86 newdata = newvfs.join(newrl.datafile) 86 newdata = newvfs.join(newrl.datafile)
87 87
88 with newvfs(newrl.indexfile, b'w'): 88 with newvfs(newrl._indexfile, b'w'):
89 pass # create all the directories 89 pass # create all the directories
90 90
91 util.copyfile(oldindex, newindex) 91 util.copyfile(oldindex, newindex)
92 copydata = oldrl.opener.exists(oldrl.datafile) 92 copydata = oldrl.opener.exists(oldrl.datafile)
93 if copydata: 93 if copydata: