mercurial/shelve.py
changeset 43981 414cb20e241e
parent 43720 132470ee53fe
child 44212 cb8b67016110
child 44332 69b091cdc506
equal deleted inserted replaced
43980:3e4294aa7944 43981:414cb20e241e
   555         # the entire repository pointlessly, and as an optimisation
   555         # the entire repository pointlessly, and as an optimisation
   556         # for movedirstate, if needed.
   556         # for movedirstate, if needed.
   557         match = scmutil.matchfiles(repo, repo[node].files())
   557         match = scmutil.matchfiles(repo, repo[node].files())
   558         _shelvecreatedcommit(repo, node, name, match)
   558         _shelvecreatedcommit(repo, node, name, match)
   559 
   559 
   560         if ui.formatted():
       
   561             desc = stringutil.ellipsis(desc, ui.termwidth())
       
   562         ui.status(_(b'shelved as %s\n') % name)
   560         ui.status(_(b'shelved as %s\n') % name)
   563         if opts[b'keep']:
   561         if opts[b'keep']:
   564             with repo.dirstate.parentchange():
   562             with repo.dirstate.parentchange():
   565                 scmutil.movedirstate(repo, parent, match)
   563                 scmutil.movedirstate(repo, parent, match)
   566         else:
   564         else: