Show More
@@ -53,6 +53,10 b' def record(ui, repo, *pats, **opts):' | |||
|
53 | 53 | |
|
54 | 54 | This command is not available when committing a merge.''' |
|
55 | 55 | |
|
56 | if not ui.interactive(): | |
|
57 | raise util.Abort(_('running non-interactively, use %s instead') % | |
|
58 | 'commit') | |
|
59 | ||
|
56 | 60 | opts["interactive"] = True |
|
57 | 61 | backup = ui.backupconfig('experimental', 'crecord') |
|
58 | 62 | try: |
@@ -1480,7 +1480,7 b' def commit(ui, repo, *pats, **opts):' | |||
|
1480 | 1480 | """ |
|
1481 | 1481 | if opts.get('interactive'): |
|
1482 | 1482 | opts.pop('interactive') |
|
1483 |
cmdutil.dorecord(ui, repo, commit, |
|
|
1483 | cmdutil.dorecord(ui, repo, commit, None, False, | |
|
1484 | 1484 | cmdutil.recordfilter, *pats, **opts) |
|
1485 | 1485 | return |
|
1486 | 1486 |
@@ -15,6 +15,12 b' Select no files' | |||
|
15 | 15 | $ touch empty-rw |
|
16 | 16 | $ hg add empty-rw |
|
17 | 17 | |
|
18 | $ hg record --config ui.interactive=false | |
|
19 | abort: running non-interactively, use commit instead | |
|
20 | [255] | |
|
21 | $ hg commit -i --config ui.interactive=false | |
|
22 | abort: running non-interactively | |
|
23 | [255] | |
|
18 | 24 | $ hg commit -i empty-rw<<EOF |
|
19 | 25 | > n |
|
20 | 26 | > EOF |
General Comments 0
You need to be logged in to leave comments.
Login now