Show More
@@ -1638,9 +1638,11 b' def commit(ui, repo, *pats, **opts):' | |||
|
1638 | 1638 | def _docommit(ui, repo, *pats, **opts): |
|
1639 | 1639 | if opts.get('interactive'): |
|
1640 | 1640 | opts.pop('interactive') |
|
1641 | cmdutil.dorecord(ui, repo, commit, None, False, | |
|
1641 | ret = cmdutil.dorecord(ui, repo, commit, None, False, | |
|
1642 | 1642 | cmdutil.recordfilter, *pats, **opts) |
|
1643 | return | |
|
1643 | # ret can be 0 (no changes to record) or the value returned by | |
|
1644 | # commit(), 1 if nothing changed or None on success. | |
|
1645 | return 1 if ret == 0 else ret | |
|
1644 | 1646 | |
|
1645 | 1647 | if opts.get('subrepos'): |
|
1646 | 1648 | if opts.get('amend'): |
@@ -37,6 +37,7 b' Committing some changes but stopping on ' | |||
|
37 | 37 | > EOF |
|
38 | 38 | $ hg commit -i -m "a" -d "0 0" |
|
39 | 39 | no changes to record |
|
40 | [1] | |
|
40 | 41 | $ hg tip |
|
41 | 42 | changeset: -1:000000000000 |
|
42 | 43 | tag: tip |
@@ -60,6 +61,7 b' Committing some changes' | |||
|
60 | 61 | Check that commit -i works with no changes |
|
61 | 62 | $ hg commit -i |
|
62 | 63 | no changes to record |
|
64 | [1] | |
|
63 | 65 | |
|
64 | 66 | Committing only one file |
|
65 | 67 |
@@ -29,6 +29,7 b' Select no files' | |||
|
29 | 29 | examine changes to 'empty-rw'? [Ynesfdaq?] n |
|
30 | 30 | |
|
31 | 31 | no changes to record |
|
32 | [1] | |
|
32 | 33 | |
|
33 | 34 | $ hg tip -p |
|
34 | 35 | changeset: -1:000000000000 |
@@ -1376,6 +1377,7 b' Removing changes from patch' | |||
|
1376 | 1377 | record this change to 'editedfile'? [Ynesfdaq?] e |
|
1377 | 1378 | |
|
1378 | 1379 | no changes to record |
|
1380 | [1] | |
|
1379 | 1381 | $ cat editedfile |
|
1380 | 1382 | This change will not be committed |
|
1381 | 1383 | This is the second line |
@@ -1487,6 +1489,7 b' session' | |||
|
1487 | 1489 | record this change to 'editedfile'? [Ynesfdaq?] n |
|
1488 | 1490 | |
|
1489 | 1491 | no changes to record |
|
1492 | [1] | |
|
1490 | 1493 | |
|
1491 | 1494 | |
|
1492 | 1495 | random text in random positions is still an error |
General Comments 0
You need to be logged in to leave comments.
Login now