changeset 42657:aaad4fe55ad1

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
author Navaneeth Suresh <navaneeths1998@gmail.com>
date Wed, 24 Jul 2019 18:10:50 +0530
parents c9114885c14b
children d5cdce3d9164
files mercurial/shelve.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/shelve.py	Wed Jul 24 09:06:25 2019 +0530
+++ b/mercurial/shelve.py	Wed Jul 24 18:10:50 2019 +0530
@@ -835,8 +835,7 @@
                                **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)