##// END OF EJS Templates
revlog: define ellipsis flag processors in core...
Gregory Szorc -
r39803:db088e13 default
parent child Browse files
Show More
@@ -11,17 +11,7 b' from mercurial import ('
11 11 revlog,
12 12 )
13 13
14 def readtransform(self, text):
15 return text, False
16
17 def writetransform(self, text):
18 return text, False
19
20 def rawtransform(self, text):
21 return False
22
23 revlog.addflagprocessor(revlog.REVIDX_ELLIPSIS,
24 (readtransform, writetransform, rawtransform))
14 revlog.addflagprocessor(revlog.REVIDX_ELLIPSIS, revlog.ellipsisprocessor)
25 15
26 16 def setup():
27 17 # We just wanted to add the flag processor, which is done at module
@@ -115,6 +115,22 b' ProgrammingError = error.ProgrammingErro'
115 115 REVIDX_ISCENSORED: None,
116 116 }
117 117
118 # Flag processors for REVIDX_ELLIPSIS.
119 def ellipsisreadprocessor(rl, text):
120 return text, False
121
122 def ellipsiswriteprocessor(rl, text):
123 return text, False
124
125 def ellipsisrawprocessor(rl, text):
126 return False
127
128 ellipsisprocessor = (
129 ellipsisreadprocessor,
130 ellipsiswriteprocessor,
131 ellipsisrawprocessor,
132 )
133
118 134 _mdre = re.compile('\1\n')
119 135 def parsemeta(text):
120 136 """return (metadatadict, metadatasize)"""
General Comments 0
You need to be logged in to leave comments. Login now