# HG changeset patch # User Dmitriy Morozov # Date 1289846380 28800 # Node ID c379bed603c6206d3d0353efa2c5c4bf2506b76c # Parent bd974d9e58a2ff06b4671184608a23ced7da31f6 Fixed f09 (option to commit after iadd) diff -r bd974d9e58a2 -r c379bed603c6 .issues/f09aeee4b1552679/new/1259361432.M651088P97096Q1.gto.home --- 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 Date: Sat, 28 Nov 2009 00:33:33 -State: new +State: resolved Subject: iadd should commit on finish Message-Id: +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 diff -r bd974d9e58a2 -r c379bed603c6 .issues/f09aeee4b1552679/new/1289846301.M956270P2257Q1.cole --- /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 +Date: Mon, 15 Nov 2010 10:37:43 -0800 +Subject: Added --commit option to iadd +Message-Id: +References: +In-Reply-To: + +The user can explicitly request iadd to commit the entire issue after iadd +finishes. diff -r bd974d9e58a2 -r c379bed603c6 README --- 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. diff -r bd974d9e58a2 -r c379bed603c6 artemis.py --- 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 as an issue subject')], + 'use 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'),