shelve: drop an unused variable assignment
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 16:30:14 -0500
changeset 43986 414cb20e241e
parent 43985 3e4294aa7944
child 43987 bd3fa45c0662
shelve: drop an unused variable assignment Caught by PyCharm. This stopped being used in a3b285882724. Differential Revision: https://phab.mercurial-scm.org/D7749
mercurial/shelve.py
--- a/mercurial/shelve.py	Fri Dec 27 14:58:02 2019 -0500
+++ b/mercurial/shelve.py	Fri Dec 27 16:30:14 2019 -0500
@@ -557,8 +557,6 @@
         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():