equal
deleted
inserted
replaced
127 """Copy cached attributes from srcrepo to destrepo""" |
127 """Copy cached attributes from srcrepo to destrepo""" |
128 destfilecache = destrepo._filecache |
128 destfilecache = destrepo._filecache |
129 srcfilecache = srcrepo._filecache |
129 srcfilecache = srcrepo._filecache |
130 if b'changelog' in srcfilecache: |
130 if b'changelog' in srcfilecache: |
131 destfilecache[b'changelog'] = ce = srcfilecache[b'changelog'] |
131 destfilecache[b'changelog'] = ce = srcfilecache[b'changelog'] |
132 ce.obj.opener = ce.obj._realopener = destrepo.svfs |
132 ce.obj.opener = ce.obj._inner.opener = destrepo.svfs |
133 if b'obsstore' in srcfilecache: |
133 if b'obsstore' in srcfilecache: |
134 destfilecache[b'obsstore'] = ce = srcfilecache[b'obsstore'] |
134 destfilecache[b'obsstore'] = ce = srcfilecache[b'obsstore'] |
135 ce.obj.svfs = destrepo.svfs |
135 ce.obj.svfs = destrepo.svfs |
136 if b'_phasecache' in srcfilecache: |
136 if b'_phasecache' in srcfilecache: |
137 destfilecache[b'_phasecache'] = ce = srcfilecache[b'_phasecache'] |
137 destfilecache[b'_phasecache'] = ce = srcfilecache[b'_phasecache'] |