hgext/patchbomb.py
changeset 36446 3d58037c6ec0
parent 36435 f449138a52df
child 36448 39c9f339b692
equal deleted inserted replaced
36445:e8d37838f5df 36446:3d58037c6ec0
   666         start_time = util.parsedate(date)
   666         start_time = util.parsedate(date)
   667     else:
   667     else:
   668         start_time = util.makedate()
   668         start_time = util.makedate()
   669 
   669 
   670     def genmsgid(id):
   670     def genmsgid(id):
   671         return '<%s.%s@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
   671         return '<%s.%d@%s>' % (id[:20], int(start_time[0]), socket.getfqdn())
   672 
   672 
   673     # deprecated config: patchbomb.from
   673     # deprecated config: patchbomb.from
   674     sender = (opts.get('from') or ui.config('email', 'from') or
   674     sender = (opts.get('from') or ui.config('email', 'from') or
   675               ui.config('patchbomb', 'from') or
   675               ui.config('patchbomb', 'from') or
   676               prompt(ui, 'From', ui.username()))
   676               prompt(ui, 'From', ui.username()))