Show More
@@ -35,7 +35,6 b' from . import (' | |||
|
35 | 35 | obsolete, |
|
36 | 36 | patch, |
|
37 | 37 | pathutil, |
|
38 | phases, | |
|
39 | 38 | pycompat, |
|
40 | 39 | registrar, |
|
41 | 40 | revlog, |
@@ -3162,16 +3161,13 b' def amend(ui, repo, commitfunc, old, ext' | |||
|
3162 | 3161 | # This not what we expect from amend. |
|
3163 | 3162 | return old.node() |
|
3164 | 3163 | |
|
3165 | ph = repo.ui.config('phases', 'new-commit', phases.draft) | |
|
3166 | try: | |
|
3167 | 3164 |
|
|
3168 | 3165 |
|
|
3169 | 3166 |
|
|
3170 | 3167 |
|
|
3171 |
|
|
|
3168 | overrides = {('phases', 'new-commit'): commitphase} | |
|
3169 | with ui.configoverride(overrides, 'amend'): | |
|
3172 | 3170 | newid = repo.commitctx(new) |
|
3173 | finally: | |
|
3174 | repo.ui.setconfig('phases', 'new-commit', ph, 'amend') | |
|
3175 | 3171 | |
|
3176 | 3172 | # Reroute the working copy parent to the new changeset |
|
3177 | 3173 | repo.setparents(newid, nullid) |
General Comments 0
You need to be logged in to leave comments.
Login now