mercurial/phases.py
changeset 34710 cdf833d7de98
parent 34563 1faa34347b24
child 34816 e2c42f751b06
--- a/mercurial/phases.py	Sun Oct 08 18:50:14 2017 +0200
+++ b/mercurial/phases.py	Sun Oct 08 17:50:46 2017 +0200
@@ -632,3 +632,12 @@
 def hassecret(repo):
     """utility function that check if a repo have any secret changeset."""
     return bool(repo._phasecache.phaseroots[2])
+
+def preparehookargs(node, old, new):
+    if old is None:
+        old = ''
+    else:
+        old = '%s' % old
+    return {'node': node,
+            'oldphase': old,
+            'phase': '%s' % new}