HomePhabricator

obsstore: refactor v1 logic to fix 32 byte hash support

Authored by joerg.sonnenberger.

Description

obsstore: refactor v1 logic to fix 32 byte hash support

Refactor the v1 logic to determine the node parsing based on the flag.
Move the predecessor out of the fixed part and handle it like the other
nodes, removing most of the duplicated code for parsing 20/32 bytes
hashes.

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