equal
deleted
inserted
replaced
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: |
94 util.copyfile(olddata, newdata) |
94 util.copyfile(olddata, newdata) |
95 |
95 |
96 if rl_type & store.FILEFLAGS_FILELOG: |
96 if rl_type & store.FILEFLAGS_FILELOG: |
97 destrepo.svfs.fncache.add(unencodedname) |
97 destrepo.svfs.fncache.add(unencodedname) |