mercurial/cmdutil.py
changeset 42920 a50661567f83
parent 42903 66048f6b5d0d
child 42921 4690902850df
--- a/mercurial/cmdutil.py	Mon Sep 09 13:25:00 2019 -0400
+++ b/mercurial/cmdutil.py	Tue Sep 10 22:04:22 2019 -0400
@@ -101,9 +101,9 @@
 ]
 
 commitopts3 = [
-    (b'D', b'current-date', None,
+    (b'D', b'currentdate', None,
      _(b'record the current date as commit date')),
-    (b'U', b'current-user', None,
+    (b'U', b'currentuser', None,
      _(b'record the current user as committer')),
 ]
 
@@ -186,9 +186,9 @@
     """modify commit options dict to handle related options
     """
     # N.B. this is extremely similar to setupheaderopts() in mq.py
-    if not opts.get(b'date') and opts.get(b'current_date'):
+    if not opts.get(b'date') and opts.get(b'currentdate'):
         opts[b'date'] = b'%d %d' % dateutil.makedate()
-    if not opts.get(b'user') and opts.get(b'current_user'):
+    if not opts.get(b'user') and opts.get(b'currentuser'):
         opts[b'user'] = ui.username()
 
 def ishunk(x):