equal
deleted
inserted
replaced
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: |