Mercurial > hg
diff mercurial/debugcommands.py @ 49218:5b1495c37b0c
debugdeltachain: distinct between snapshot and "other" diffs
Snapshot are expected to be healthy behavior, while "other" is a bit more
suspicious. So we distinct between the two to make it easier to inspect
repositories.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 18 May 2022 15:55:14 +0100 |
parents | 883be4c74d54 |
children | 0a86cb154e83 |
line wrap: on
line diff
--- a/mercurial/debugcommands.py Wed May 25 13:28:24 2022 +0200 +++ b/mercurial/debugcommands.py Wed May 18 15:55:14 2022 +0100 @@ -805,10 +805,12 @@ deltatype = b'p1' elif e[3] == e[6]: deltatype = b'p2' + elif e[3] == rev: + deltatype = b'base' + elif r.issnapshot(rev): + deltatype = b'snap' elif e[3] == rev - 1: deltatype = b'prev' - elif e[3] == rev: - deltatype = b'base' else: deltatype = b'other' else: