##// END OF EJS Templates
revlog: fix the naming scheme use by split temporary file...
marmoute -
r51707:4a3a9d96 stable
parent child Browse files
Show More
@@ -2131,11 +2131,14 b' class revlog:'
2131
2131
2132 The file will only exist if a splitting operation is in progress, but
2132 The file will only exist if a splitting operation is in progress, but
2133 it is always expected at the same location."""
2133 it is always expected at the same location."""
2134 parts = os.path.split(self.radix)
2134 parts = self.radix.split(b'/')
2135 if len(parts) > 1:
2135 if len(parts) > 1:
2136 # adds a '-s' prefix to the ``data/` or `meta/` base
2136 # adds a '-s' prefix to the ``data/` or `meta/` base
2137 head = parts[0] + b'-s'
2137 head = parts[0] + b'-s'
2138 return os.path.join(head, *parts[1:])
2138 mids = parts[1:-1]
2139 tail = parts[-1] + b'.i'
2140 pieces = [head] + mids + [tail]
2141 return b'/'.join(pieces)
2139 else:
2142 else:
2140 # the revlog is stored at the root of the store (changelog or
2143 # the revlog is stored at the root of the store (changelog or
2141 # manifest), no risk of collision.
2144 # manifest), no risk of collision.
@@ -202,11 +202,11 b' The inline revlog still exist, but a spl'
202 data/some_dir/sub_dir/foo_bar.i.s/tutu.i 1174
202 data/some_dir/sub_dir/foo_bar.i.s/tutu.i 1174
203 data/some_dir/sub_dir/foo_bar.i.s/tutu.d 0
203 data/some_dir/sub_dir/foo_bar.i.s/tutu.d 0
204 $ f -s .hg/store/data*/file*
204 $ f -s .hg/store/data*/file*
205 .hg/store/data-s/file: size=320
205 .hg/store/data-s/file.i: size=320
206 .hg/store/data/file.d: size=267307
206 .hg/store/data/file.d: size=267307
207 .hg/store/data/file.i: size=132395
207 .hg/store/data/file.i: size=132395
208 $ f -s .hg/store/data*/foo*/bar*/babar__celeste*/foo*
208 $ f -s .hg/store/data*/foo*/bar*/babar__celeste*/foo*
209 .hg/store/data/foo/bar/babar__celeste-s/foo: size=320
209 .hg/store/data-s/foo/bar/babar__celeste/foo.i: size=320
210 .hg/store/data/foo/bar/babar__celeste/foo.d: size=267307
210 .hg/store/data/foo/bar/babar__celeste/foo.d: size=267307
211 .hg/store/data/foo/bar/babar__celeste/foo.i: size=132395
211 .hg/store/data/foo/bar/babar__celeste/foo.i: size=132395
212
212
@@ -221,7 +221,7 b' A "temporary file" entry exist for the s'
221 data/file.d 0
221 data/file.d 0
222 $ cat .hg/store/journal.backupfiles | tr -s '\000' ' ' | tr -s '\00' ' '| grep 'data.*/file'
222 $ cat .hg/store/journal.backupfiles | tr -s '\000' ' ' | tr -s '\00' ' '| grep 'data.*/file'
223 data/file.i data/journal.backup.file.i.bck 0
223 data/file.i data/journal.backup.file.i.bck 0
224 data-s/file 0
224 data-s/file.i 0
225
225
226 recover is rolling the split back, the fncache is still valid
226 recover is rolling the split back, the fncache is still valid
227
227
@@ -285,7 +285,7 b' Reference size:'
285 The inline revlog still exist, but a split version exist next to it
285 The inline revlog still exist, but a split version exist next to it
286
286
287 $ f -s .hg/store/data*/file*
287 $ f -s .hg/store/data*/file*
288 .hg/store/data-s/file: size=320
288 .hg/store/data-s/file.i: size=320
289 .hg/store/data/file.d: size=267307
289 .hg/store/data/file.d: size=267307
290 .hg/store/data/file.i: size=132395
290 .hg/store/data/file.i: size=132395
291
291
General Comments 0
You need to be logged in to leave comments. Login now