artemis.py
changeset 29 0b3edabb7da2
parent 28 8b6b282d3ebd
child 30 b93ab358f2fc
equal deleted inserted replaced
28:8b6b282d3ebd 29:0b3edabb7da2
   280     ui.write('Comments:\n')
   280     ui.write('Comments:\n')
   281     while id_stack:
   281     while id_stack:
   282         id,offset = id_stack.pop()
   282         id,offset = id_stack.pop()
   283         id_stack += (id in children and map(lambda x: (x, offset+1), reversed(children[id]))) or []
   283         id_stack += (id in children and map(lambda x: (x, offset+1), reversed(children[id]))) or []
   284         index, msg = messages[id]
   284         index, msg = messages[id]
   285         ui.write('  '*offset + ('%d: ' % index) + msg['Subject'] + '\n')
   285         ui.write('  '*offset + '%d: [%s] %s\n' % (index, util.shortuser(msg['From']), msg['Subject']))
   286     ui.write('-'*70 + '\n')
   286     ui.write('-'*70 + '\n')
   287 
   287 
   288 def _find_root_key(maildir):
   288 def _find_root_key(maildir):
   289     for k,m in maildir.iteritems():
   289     for k,m in maildir.iteritems():
   290         if 'in-reply-to' not in m:
   290         if 'in-reply-to' not in m:
   376                   ('n', 'no-property-comment', None,
   376                   ('n', 'no-property-comment', None,
   377                    'do not add a comment about changed properties')], 
   377                    'do not add a comment about changed properties')], 
   378                  _('hg iadd [OPTIONS] [ID] [COMMENT]')),
   378                  _('hg iadd [OPTIONS] [ID] [COMMENT]')),
   379     'ishow':      (ishow,
   379     'ishow':      (ishow,
   380                  [('a', 'all', None, 'list all comments'),
   380                  [('a', 'all', None, 'list all comments'),
   381                   ('x', 'extract', [], 'extract attachments')],
   381                   ('x', 'extract', [], 'extract attachments (provide attachment number as argument)')],
   382                  _('hg ishow [OPTIONS] ID [COMMENT]')),
   382                  _('hg ishow [OPTIONS] ID [COMMENT]')),
   383 }
   383 }
   384 
   384 
   385 # vim: expandtab
   385 # vim: expandtab