##// END OF EJS Templates
uncommit: drop the hyphen from --current-user and --current-date...
Matt Harbison -
r43190:a5066156 default
parent child Browse files
Show More
@@ -101,9 +101,9 b' commitopts2 = ['
101 101 ]
102 102
103 103 commitopts3 = [
104 (b'D', b'current-date', None,
104 (b'D', b'currentdate', None,
105 105 _(b'record the current date as commit date')),
106 (b'U', b'current-user', None,
106 (b'U', b'currentuser', None,
107 107 _(b'record the current user as committer')),
108 108 ]
109 109
@@ -186,9 +186,9 b' def resolvecommitoptions(ui, opts):'
186 186 """modify commit options dict to handle related options
187 187 """
188 188 # N.B. this is extremely similar to setupheaderopts() in mq.py
189 if not opts.get(b'date') and opts.get(b'current_date'):
189 if not opts.get(b'date') and opts.get(b'currentdate'):
190 190 opts[b'date'] = b'%d %d' % dateutil.makedate()
191 if not opts.get(b'user') and opts.get(b'current_user'):
191 if not opts.get(b'user') and opts.get(b'currentuser'):
192 192 opts[b'user'] = ui.username()
193 193
194 194 def ishunk(x):
@@ -42,8 +42,8 b' Help for uncommit'
42 42 -l --logfile FILE read commit message from file
43 43 -d --date DATE record the specified date as commit date
44 44 -u --user USER record the specified user as committer
45 -D --current-date record the current date as commit date
46 -U --current-user record the current user as committer
45 -D --currentdate record the current date as commit date
46 -U --currentuser record the current user as committer
47 47
48 48 (some details hidden, use --verbose to show complete help)
49 49
General Comments 0
You need to be logged in to leave comments. Login now