diff mercurial/debugcommands.py @ 34320:12c42bcd4133

phases: move the binary decoding function in the phases module We move the decoding function near the encoding one in a place where they can be reused in other place (current target, 'exchange.py').
author Boris Feld <boris.feld@octobus.net>
date Tue, 19 Sep 2017 22:23:41 +0200
parents 311f6ccf8f23
children 75979c8d4572
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Tue Sep 19 22:01:31 2017 +0200
+++ b/mercurial/debugcommands.py	Tue Sep 19 22:23:41 2017 +0200
@@ -310,7 +310,7 @@
 def _debugphaseheads(ui, data, indent=0):
     """display version and markers contained in 'data'"""
     indent_string = ' ' * indent
-    headsbyphase = bundle2._readphaseheads(data)
+    headsbyphase = phases.binarydecode(data)
     for phase in phases.allphases:
         for head in headsbyphase[phase]:
             ui.write(indent_string)