diff hgext/evolve.py @ 142:c2f7a8530e51

overwrite user not date
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 08 Mar 2012 12:21:01 +0100
parents 8dbae2bd4d06
children 928f217c1701
line wrap: on
line diff
--- a/hgext/evolve.py	Wed Feb 29 14:49:52 2012 +0100
+++ b/hgext/evolve.py	Thu Mar 08 12:21:01 2012 +0100
@@ -91,15 +91,16 @@
         else:
             message = old.description()
 
-
+        user = commitopts.get('user') or old.user()
+        date = commitopts.get('date') or None # old.date()
 
         new = context.memctx(repo,
                              parents=newbases,
                              text=message,
                              files=files,
                              filectxfn=filectxfn,
-                             user=commitopts.get('user') or None,
-                             date=commitopts.get('date') or None,
+                             user=user,
+                             date=date,
                              extra=commitopts.get('extra') or None)
 
         if commitopts.get('edit'):