Mercurial > hg-stable
diff mercurial/vfs.py @ 31804:726f24123f02
revlog: avoid applying delta chain on cache hit
Previously, revlog.revision(raw=False) may try to apply the delta chain
on _cache hit. That happens if flags are non-empty. This patch makes rawtext
reused so delta chain application is avoided.
"_cache" and "rev" are moved a bit to avoid unnecessary assignments.
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 02 Apr 2017 18:40:13 -0700 |
parents | f80d9ddc40f3 |
children | d74b0cff94a9 20bac46f7744 |