hgext/evolve.py
changeset 142 c2f7a8530e51
parent 141 8dbae2bd4d06
child 145 928f217c1701
--- 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'):