artemis.py
changeset 55 c379bed603c6
parent 54 bd974d9e58a2
child 56 0b2722bb35c9
--- a/artemis.py	Mon Nov 15 09:33:02 2010 -0700
+++ b/artemis.py	Mon Nov 15 10:39:40 2010 -0800
@@ -185,6 +185,9 @@
 
     mbox.close()
 
+    if opts['commit']:
+        commands.commit(ui, repo, issue_fn)
+
     # If adding issue, add the new mailbox to the repository
     if not id:
         ui.status('Added new issue %s\n' % issue_id)
@@ -416,7 +419,9 @@
                   ('n', 'no-property-comment', None,
                    'do not add a comment about changed properties'),
                   ('m', 'message', '',
-                   'use <text> as an issue subject')],
+                   'use <text> as an issue subject'),
+                  ('c', 'commit', False,
+                   'perform a commit after the addition')],
                  _('hg iadd [OPTIONS] [ID] [COMMENT]')),
     'ishow':      (ishow,
                  [('a', 'all', None, 'list all comments'),