HomePhabricator

commitctx: extract copy information encoding into extra into commit.py

Authored by marmoute.

Description

commitctx: extract copy information encoding into extra into commit.py

The encoding of copy information into extra has multiple subcases and become
quite complicated (eg: empty list can be explicitly or implicitly stored for
example). In addition, it is niche experimental feature since as it affect the
hash, it is only suitable for user who don't mercurial for storage server side
(ie: Google).

Having this complexity part of the changelog will get in the way of further
cleanup. We could have to either move more of that logic into the changelog or
to move or extract more of the logic at the higher level. We take the second
approach and start gather logic in dedicated function in commit.py.

Details

Committed
marmouteJul 25 2020, 9:13 AM
Parents
rHG4cde23ba076e: commitctx: create the new extra dict on its own line
Branches
Unknown
Tags
Unknown