mercurial/patch.py
changeset 43097 27c4f93d07a9
parent 43085 eef9a2d67051
child 43104 74802979dd9d
equal deleted inserted replaced
43096:813aa8cc55d4 43097:27c4f93d07a9
   253             + b'\n'
   253             + b'\n'
   254         )
   254         )
   255 
   255 
   256     # should try to parse msg['Date']
   256     # should try to parse msg['Date']
   257     parents = []
   257     parents = []
       
   258 
       
   259     nodeid = msg[r'X-Mercurial-Node']
       
   260     if nodeid:
       
   261         data[b'nodeid'] = nodeid = mail.headdecode(nodeid)
       
   262         ui.debug(b'Node ID: %s\n' % nodeid)
   258 
   263 
   259     if subject:
   264     if subject:
   260         if subject.startswith(b'[PATCH'):
   265         if subject.startswith(b'[PATCH'):
   261             pend = subject.find(b']')
   266             pend = subject.find(b']')
   262             if pend >= 0:
   267             if pend >= 0: