Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 42996:3674797ae8b9
flagprocessors: move _flagserrorclass attribute on revlog & co
This is a small duplication, and the last bit we need to get rid of the mixin.
Honestly, I am not fan of that class attribute and it mostly exist to accomodate
The simple-storage whose usage of flag processors is dumbious and that is
currently dead code anyway. However I don't want to be pulled into futher
unrelated cleaning so it is a small price to pay.
Differential Revision: https://phab.mercurial-scm.org/D6822
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 07 Sep 2019 00:26:15 +0200 |
parents | 01304095256c |
children | 73288e7abe9b |
comparison
equal
deleted
inserted
replaced
42995:01304095256c | 42996:3674797ae8b9 |
---|---|
296 If censorable is True, the revlog can have censored revisions. | 296 If censorable is True, the revlog can have censored revisions. |
297 | 297 |
298 If `upperboundcomp` is not None, this is the expected maximal gain from | 298 If `upperboundcomp` is not None, this is the expected maximal gain from |
299 compression for the data content. | 299 compression for the data content. |
300 """ | 300 """ |
301 | |
302 _flagserrorclass = error.RevlogError | |
303 | |
301 def __init__(self, opener, indexfile, datafile=None, checkambig=False, | 304 def __init__(self, opener, indexfile, datafile=None, checkambig=False, |
302 mmaplargeindex=False, censorable=False, | 305 mmaplargeindex=False, censorable=False, |
303 upperboundcomp=None): | 306 upperboundcomp=None): |
304 """ | 307 """ |
305 create a revlog object | 308 create a revlog object |