--- a/.issues/f09aeee4b1552679/new/1259361432.M651088P97096Q1.gto.home Mon Nov 15 09:33:02 2010 -0700
+++ b/.issues/f09aeee4b1552679/new/1259361432.M651088P97096Q1.gto.home Mon Nov 15 10:39:40 2010 -0800
@@ -1,8 +1,9 @@
From: Alexander Solovyov <piranha@piranha.org.ua>
Date: Sat, 28 Nov 2009 00:33:33
-State: new
+State: resolved
Subject: iadd should commit on finish
Message-Id: <f09aeee4b1552679-0-artemis@gto.home>
+resolution: fixed
Actually there is two possibilities - one is to leave behavior as is and just
add '--commit' option, and another is to commit after finishing and add
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.issues/f09aeee4b1552679/new/1289846301.M956270P2257Q1.cole Mon Nov 15 10:39:40 2010 -0800
@@ -0,0 +1,9 @@
+From: Dmitriy Morozov <dmitriy@mrzv.org>
+Date: Mon, 15 Nov 2010 10:37:43 -0800
+Subject: Added --commit option to iadd
+Message-Id: <f09aeee4b1552679-bd15fe2a81404d2e-artemis@cole>
+References: <f09aeee4b1552679-0-artemis@gto.home>
+In-Reply-To: <f09aeee4b1552679-0-artemis@gto.home>
+
+The user can explicitly request iadd to commit the entire issue after iadd
+finishes.
--- a/README Mon Nov 15 09:33:02 2010 -0700
+++ b/README Mon Nov 15 10:39:40 2010 -0800
@@ -122,7 +122,7 @@
recorded as a reply to the particular message. `iadd` is the only command
that changes the state of the repository (by adding the new issue files to
the list of tracked files or updating some of them), however, it does not
- perform an actual commit.
+ perform an actual commit unless explicitly asked to do so.
`-p`, `--property`
update a property of the issue ``ID``, e.g. ``-p state=resolved -p resolution=fixed``
@@ -137,6 +137,10 @@
`-m`, `--message`
use ``text`` as an issue subject
+ `-c`, `--commit`
+ commit the issue after the addition (all changes to the issue will be
+ committed)
+
`ilist`
List issues.
--- 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'),