# HG changeset patch
# User Navaneeth Suresh <navaneeths1998@gmail.com>
# Date 2019-07-24 12:40:50
# Node ID aaad4fe55ad128cf519ca00cbc4dd36b2aa6824c
# Parent  c9114885c14b1487e4a7678244a93f985b6957b7

unshelve: changes how date is set on interactive mode

On an interactive unshelve, the remaining changes are shelved again
for later. This patch modifies the date of remaining shelved change
to the time of interactive shelve.

Differential Revision: https://phab.mercurial-scm.org/D6685

diff --git a/mercurial/shelve.py b/mercurial/shelve.py
--- a/mercurial/shelve.py
+++ b/mercurial/shelve.py
@@ -835,8 +835,7 @@ def _createunshelvectx(ui, repo, shelvec
                                **pycompat.strkwargs(opts))
     snode = repo.commit(text=shelvectx.description(),
                         extra=shelvectx.extra(),
-                        user=shelvectx.user(),
-                        date=shelvectx.date())
+                        user=shelvectx.user())
     m = scmutil.matchfiles(repo, repo[snode].files())
     if snode:
         _shelvecreatedcommit(repo, snode, basename, m)