equal
deleted
inserted
replaced
123 ellipsisprocessor = ( |
123 ellipsisprocessor = ( |
124 ellipsisreadprocessor, |
124 ellipsisreadprocessor, |
125 ellipsiswriteprocessor, |
125 ellipsiswriteprocessor, |
126 ellipsisrawprocessor, |
126 ellipsisrawprocessor, |
127 ) |
127 ) |
128 |
|
129 def _censoredtext(text): |
|
130 m, offs = storageutil.parsemeta(text) |
|
131 return m and "censored" in m |
|
132 |
128 |
133 def addflagprocessor(flag, processor): |
129 def addflagprocessor(flag, processor): |
134 """Register a flag processor on a revision data flag. |
130 """Register a flag processor on a revision data flag. |
135 |
131 |
136 Invariant: |
132 Invariant: |
1704 if revornode is None: |
1700 if revornode is None: |
1705 revornode = templatefilters.short(hex(node)) |
1701 revornode = templatefilters.short(hex(node)) |
1706 raise error.RevlogError(_("integrity check failed on %s:%s") |
1702 raise error.RevlogError(_("integrity check failed on %s:%s") |
1707 % (self.indexfile, pycompat.bytestr(revornode))) |
1703 % (self.indexfile, pycompat.bytestr(revornode))) |
1708 except error.RevlogError: |
1704 except error.RevlogError: |
1709 if self._censorable and _censoredtext(text): |
1705 if self._censorable and storageutil.iscensoredtext(text): |
1710 raise error.CensoredNodeError(self.indexfile, node, text) |
1706 raise error.CensoredNodeError(self.indexfile, node, text) |
1711 raise |
1707 raise |
1712 |
1708 |
1713 def _enforceinlinesize(self, tr, fp=None): |
1709 def _enforceinlinesize(self, tr, fp=None): |
1714 """Check if the revlog is too big for inline and convert if so. |
1710 """Check if the revlog is too big for inline and convert if so. |