hgext/mq.py
changeset 22520 9d4ebb75de53
parent 22519 c87f2a5a6e49
child 22521 3f948469bac0
--- a/hgext/mq.py	Sat Sep 20 17:06:56 2014 +0200
+++ b/hgext/mq.py	Sat Sep 20 17:06:56 2014 +0200
@@ -1077,12 +1077,12 @@
                         p.write("Date: %d %d\n" % date)
                 else:
                     p.write("# HG changeset patch\n")
-                    p.write("# Parent "
-                            + hex(repo[None].p1().node()) + "\n")
                     if user:
                         p.write("# User " + user + "\n")
                     if date:
                         p.write("# Date %s %s\n" % date)
+                    p.write("# Parent "
+                            + hex(repo[None].p1().node()) + "\n")
 
                 defaultmsg = "[mq]: %s" % patchfn
                 editor = cmdutil.getcommiteditor(editform=editform)