mercurial/formatter.py
changeset 37104 7db3c28dfdfd
parent 37103 be3f33f5e232
child 37105 e7bc0667c521
--- a/mercurial/formatter.py	Thu Mar 15 21:52:47 2018 +0900
+++ b/mercurial/formatter.py	Sat Mar 17 17:41:07 2018 +0900
@@ -514,6 +514,8 @@
         mapping = {}
         if self._hasctx(newmapping):
             mapping['revcache'] = {}  # per-ctx cache
+        if 'node' in origmapping and 'node' in newmapping:
+            mapping['originalnode'] = origmapping['node']
         return mapping
 
     def _getsome(self, context, mapping, key):