HomePhabricator

upgrade: sniff for filelog type

Authored by indygreg.

Description

upgrade: sniff for filelog type

The upgrade code should never encounter a vanilla revlog
instance: only changelog, manifestrevlog, and filelog should
be seen.

The previous code assumed !changelog & !manifestrevlog meant
file data. So this change feels pretty safe. If nothing else, it
will help tease out typing issues.

Differential Revision: https://phab.mercurial-scm.org/D3152

Details

Committed
indygregApr 5 2018, 8:40 PM
Differential Revision
D3152: upgrade: sniff for filelog type
Parents
rHG65250a66b55c: revlog: move censor logic into main revlog class
Branches
Unknown
Tags
Unknown