mercurial/patch.py
changeset 43097 27c4f93d07a9
parent 43085 eef9a2d67051
child 43104 74802979dd9d
--- a/mercurial/patch.py	Wed Oct 02 07:35:22 2019 +0900
+++ b/mercurial/patch.py	Sun Oct 06 13:06:19 2019 +0200
@@ -256,6 +256,11 @@
     # should try to parse msg['Date']
     parents = []
 
+    nodeid = msg[r'X-Mercurial-Node']
+    if nodeid:
+        data[b'nodeid'] = nodeid = mail.headdecode(nodeid)
+        ui.debug(b'Node ID: %s\n' % nodeid)
+
     if subject:
         if subject.startswith(b'[PATCH'):
             pend = subject.find(b']')