Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 34097:4059b10d7490
amend: delete dead assignment to "newid"
Differential Revision: https://phab.mercurial-scm.org/D638
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 06 Sep 2017 10:42:02 -0700 |
parents | da13616d1a92 |
children | 5dc6ac6555e6 |
comparison
equal
deleted
inserted
replaced
34096:1104718fb090 | 34097:4059b10d7490 |
---|---|
3161 # | 3161 # |
3162 # This not what we expect from amend. | 3162 # This not what we expect from amend. |
3163 return old.node() | 3163 return old.node() |
3164 | 3164 |
3165 ph = repo.ui.config('phases', 'new-commit', phases.draft) | 3165 ph = repo.ui.config('phases', 'new-commit', phases.draft) |
3166 newid = None | |
3167 try: | 3166 try: |
3168 if opts.get('secret'): | 3167 if opts.get('secret'): |
3169 commitphase = 'secret' | 3168 commitphase = 'secret' |
3170 else: | 3169 else: |
3171 commitphase = old.phase() | 3170 commitphase = old.phase() |