Mercurial > hg-stable
comparison hgeditor @ 30744:e12c0fa1f65b
revlog: pass revlog flags to addrevision
Adding the ability to passing flags to addrevision instead of simply passing
default flags to _addrevision will allow extensions relying on flag transforms
to wrap around addrevision() in order to update revlog flags.
The first use case of this patch will be the lfs extension marking nodes as
stored externally when the contents are larger than the defined threshold.
One of the reasons leading to setting flags in addrevision() wrappers in the
flag processor design is that it allows to detect files larger than the 2GB
limit before the check is performed, which allows lfs to transform the contents
into metadata.
author | Remi Chaintron <remi@fb.com> |
---|---|
date | Thu, 05 Jan 2017 17:16:07 +0000 |
parents | 1aee2ab0f902 |
children |
comparison
equal
deleted
inserted
replaced
30743:2df983125d37 | 30744:e12c0fa1f65b |
---|