Mercurial > hg
comparison mercurial/revlogutils/rewrite.py @ 51087:df50a1592e0c
revlog: move _getsegmentforrevs on the internal object
See inline documentation for details.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 24 Oct 2023 17:03:27 +0200 |
parents | 59c6f99723b1 |
children | 9c8df10ea6e0 |
comparison
equal
deleted
inserted
replaced
51086:c3748f38dcd0 | 51087:df50a1592e0c |
---|---|
124 rl.opener.rename(newrl._indexfile, rl._indexfile) | 124 rl.opener.rename(newrl._indexfile, rl._indexfile) |
125 if not rl._inline: | 125 if not rl._inline: |
126 rl.opener.rename(newrl._datafile, rl._datafile) | 126 rl.opener.rename(newrl._datafile, rl._datafile) |
127 | 127 |
128 rl.clearcaches() | 128 rl.clearcaches() |
129 rl._loadindex() | 129 chunk_cache = rl._loadindex() |
130 rl._load_inner(chunk_cache) | |
130 | 131 |
131 | 132 |
132 def v2_censor(revlog, tr, censornode, tombstone=b''): | 133 def v2_censor(revlog, tr, censornode, tombstone=b''): |
133 """censors a revision in a "version 2" revlog""" | 134 """censors a revision in a "version 2" revlog""" |
134 assert revlog._format_version != REVLOGV0, revlog._format_version | 135 assert revlog._format_version != REVLOGV0, revlog._format_version |