##// END OF EJS Templates
commit: set whole manifest entries at once (node with its associated flags)...
commit: set whole manifest entries at once (node with its associated flags) Add a new function manifest.set that sets whole manifest entries at once, so the caller doesn't have to do two separate operations: m[p] = n m.set_flags(f) becomes: m.set(p, n, f) This obviously saves an extra lookup by path, and it also lets the underlying manifest implementation to be more efficient as it doesn't have to deal with partially-specified entries. It makes the interaction conceptually simpler, as well, since we don't have to go through an intermediate state of incorrect partially-written entry. (the real motivation for this change is an alternative manifest implementation where we batch pending writes, and dealing with fully defined entries makes the batching logic muchsimpler while avoiding slowdown due to alternating writes and reads)
Arseniy Alekseyev -
r52651:421c9b3f default
Show More
Name Size Modified Last Commit Author
/ mercurial / thirdparty / zope / interface
common
LICENSE.txt Loading ...
__init__.py Loading ...
_compat.py Loading ...
_flatten.py Loading ...
_zope_interface_coptimizations.c Loading ...
adapter.py Loading ...
advice.py Loading ...
declarations.py Loading ...
document.py Loading ...
exceptions.py Loading ...
interface.py Loading ...
interfaces.py Loading ...
registry.py Loading ...
ro.py Loading ...
verify.py Loading ...