Touched up ishow ("From" in the message thread + clarifed extract option)
authorDmitriy Morozov <dmitriy@mrzv.org>
Tue, 07 Apr 2009 12:44:49 -0700
changeset 29 0b3edabb7da2
parent 28 8b6b282d3ebd
child 30 b93ab358f2fc
Touched up ishow ("From" in the message thread + clarifed extract option)
artemis.py
--- a/artemis.py	Tue Apr 07 12:35:19 2009 -0700
+++ b/artemis.py	Tue Apr 07 12:44:49 2009 -0700
@@ -282,7 +282,7 @@
         id,offset = id_stack.pop()
         id_stack += (id in children and map(lambda x: (x, offset+1), reversed(children[id]))) or []
         index, msg = messages[id]
-        ui.write('  '*offset + ('%d: ' % index) + msg['Subject'] + '\n')
+        ui.write('  '*offset + '%d: [%s] %s\n' % (index, util.shortuser(msg['From']), msg['Subject']))
     ui.write('-'*70 + '\n')
 
 def _find_root_key(maildir):
@@ -378,7 +378,7 @@
                  _('hg iadd [OPTIONS] [ID] [COMMENT]')),
     'ishow':      (ishow,
                  [('a', 'all', None, 'list all comments'),
-                  ('x', 'extract', [], 'extract attachments')],
+                  ('x', 'extract', [], 'extract attachments (provide attachment number as argument)')],
                  _('hg ishow [OPTIONS] ID [COMMENT]')),
 }