Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 49239: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 |
comparison
equal
deleted
inserted
replaced
49238:13dfad0f9f7a | 49239:5b1495c37b0c |
---|---|
803 if generaldelta: | 803 if generaldelta: |
804 if e[3] == e[5]: | 804 if e[3] == e[5]: |
805 deltatype = b'p1' | 805 deltatype = b'p1' |
806 elif e[3] == e[6]: | 806 elif e[3] == e[6]: |
807 deltatype = b'p2' | 807 deltatype = b'p2' |
808 elif e[3] == rev: | |
809 deltatype = b'base' | |
810 elif r.issnapshot(rev): | |
811 deltatype = b'snap' | |
808 elif e[3] == rev - 1: | 812 elif e[3] == rev - 1: |
809 deltatype = b'prev' | 813 deltatype = b'prev' |
810 elif e[3] == rev: | |
811 deltatype = b'base' | |
812 else: | 814 else: |
813 deltatype = b'other' | 815 deltatype = b'other' |
814 else: | 816 else: |
815 if e[3] == rev: | 817 if e[3] == rev: |
816 deltatype = b'base' | 818 deltatype = b'base' |