unshelve: changes how date is set on interactive mode
authorNavaneeth Suresh <navaneeths1998@gmail.com>
Wed, 24 Jul 2019 18:10:50 +0530
changeset 42689 aaad4fe55ad1
parent 42688 c9114885c14b
child 42690 d5cdce3d9164
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
mercurial/shelve.py
--- 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)