Show More
@@ -224,6 +224,9 configitem('histedit', 'dropmissing', | |||||
224 | configitem('histedit', 'linelen', |
|
224 | configitem('histedit', 'linelen', | |
225 | default=80, |
|
225 | default=80, | |
226 | ) |
|
226 | ) | |
|
227 | configitem('histedit', 'singletransaction', | |||
|
228 | default=False, | |||
|
229 | ) | |||
227 |
|
230 | |||
228 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
|
231 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | |
229 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
232 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | |
@@ -1130,7 +1133,7 def _continuehistedit(ui, repo, state): | |||||
1130 | # Don't use singletransaction by default since it rolls the entire |
|
1133 | # Don't use singletransaction by default since it rolls the entire | |
1131 | # transaction back if an unexpected exception happens (like a |
|
1134 | # transaction back if an unexpected exception happens (like a | |
1132 | # pretxncommit hook throws, or the user aborts the commit msg editor). |
|
1135 | # pretxncommit hook throws, or the user aborts the commit msg editor). | |
1133 |
if ui.configbool("histedit", "singletransaction" |
|
1136 | if ui.configbool("histedit", "singletransaction"): | |
1134 | # Don't use a 'with' for the transaction, since actions may close |
|
1137 | # Don't use a 'with' for the transaction, since actions may close | |
1135 | # and reopen a transaction. For example, if the action executes an |
|
1138 | # and reopen a transaction. For example, if the action executes an | |
1136 | # external process it may choose to commit the transaction first. |
|
1139 | # external process it may choose to commit the transaction first. |
General Comments 0
You need to be logged in to leave comments.
Login now