mercurial/revlog.py
changeset 39767 db088e133e91
parent 39333 5d343a24bff5
child 39768 7b2b42fc377a
equal deleted inserted replaced
39766:9358f5066811 39767:db088e133e91
   112 
   112 
   113 # Store flag processors (cf. 'addflagprocessor()' to register)
   113 # Store flag processors (cf. 'addflagprocessor()' to register)
   114 _flagprocessors = {
   114 _flagprocessors = {
   115     REVIDX_ISCENSORED: None,
   115     REVIDX_ISCENSORED: None,
   116 }
   116 }
       
   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 )
   117 
   133 
   118 _mdre = re.compile('\1\n')
   134 _mdre = re.compile('\1\n')
   119 def parsemeta(text):
   135 def parsemeta(text):
   120     """return (metadatadict, metadatasize)"""
   136     """return (metadatadict, metadatasize)"""
   121     # text can be buffer, so we can't use .startswith or .index
   137     # text can be buffer, so we can't use .startswith or .index