##// END OF EJS Templates
amend: moving first assignment of newid closer to its use...
Saurabh Singh -
r34059:da13616d default
parent child Browse files
Show More
@@ -3039,7 +3039,6 b' def amend(ui, repo, commitfunc, old, ext'
3039 3039 ui.note(_('amending changeset %s\n') % old)
3040 3040 base = old.p1()
3041 3041
3042 newid = None
3043 3042 with repo.wlock(), repo.lock(), repo.transaction('amend'):
3044 3043 # See if we got a message from -m or -l, if not, open the editor
3045 3044 # with the message of the changeset to amend
@@ -3164,6 +3163,7 b' def amend(ui, repo, commitfunc, old, ext'
3164 3163 return old.node()
3165 3164
3166 3165 ph = repo.ui.config('phases', 'new-commit', phases.draft)
3166 newid = None
3167 3167 try:
3168 3168 if opts.get('secret'):
3169 3169 commitphase = 'secret'
General Comments 0
You need to be logged in to leave comments. Login now