# HG changeset patch # User Matt Harbison # Date 2019-12-27 21:30:14 # Node ID 414cb20e241ebb6a45b03429c43d078b619b4e2e # Parent 3e4294aa794472f44b940aab69ffc3b8a0a23f51 shelve: drop an unused variable assignment Caught by PyCharm. This stopped being used in a3b285882724. Differential Revision: https://phab.mercurial-scm.org/D7749 diff --git a/mercurial/shelve.py b/mercurial/shelve.py --- a/mercurial/shelve.py +++ b/mercurial/shelve.py @@ -557,8 +557,6 @@ def _docreatecmd(ui, repo, pats, opts): match = scmutil.matchfiles(repo, repo[node].files()) _shelvecreatedcommit(repo, node, name, match) - if ui.formatted(): - desc = stringutil.ellipsis(desc, ui.termwidth()) ui.status(_(b'shelved as %s\n') % name) if opts[b'keep']: with repo.dirstate.parentchange():