Patchwork D7749: shelve: drop an unused variable assignment

login
register
mail settings
Submitter phabricator
Date Dec. 27, 2019, 10:08 p.m.
Message ID <differential-rev-PHID-DREV-tm2iswibeg6f45swte72-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44093/
State Superseded
Headers show

Comments

phabricator - Dec. 27, 2019, 10:08 p.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Caught by PyCharm.  This stopped being used in a3b285882724 <https://phab.mercurial-scm.org/rHGa3b2858827243f7059bf72be7f17976ef5b9e2c5>.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7749

AFFECTED FILES
  mercurial/shelve.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/shelve.py b/mercurial/shelve.py
--- a/mercurial/shelve.py
+++ b/mercurial/shelve.py
@@ -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():