mercurial/debugcommands.py
changeset 49218 5b1495c37b0c
parent 49197 883be4c74d54
child 49219 0a86cb154e83
--- 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: