Show More
@@ -101,9 +101,9 b' commitopts2 = [' | |||||
101 | ] |
|
101 | ] | |
102 |
|
102 | |||
103 | commitopts3 = [ |
|
103 | commitopts3 = [ | |
104 |
(b'D', b'current |
|
104 | (b'D', b'currentdate', None, | |
105 | _(b'record the current date as commit date')), |
|
105 | _(b'record the current date as commit date')), | |
106 |
(b'U', b'current |
|
106 | (b'U', b'currentuser', None, | |
107 | _(b'record the current user as committer')), |
|
107 | _(b'record the current user as committer')), | |
108 | ] |
|
108 | ] | |
109 |
|
109 | |||
@@ -186,9 +186,9 b' def resolvecommitoptions(ui, opts):' | |||||
186 | """modify commit options dict to handle related options |
|
186 | """modify commit options dict to handle related options | |
187 | """ |
|
187 | """ | |
188 | # N.B. this is extremely similar to setupheaderopts() in mq.py |
|
188 | # N.B. this is extremely similar to setupheaderopts() in mq.py | |
189 |
if not opts.get(b'date') and opts.get(b'current |
|
189 | if not opts.get(b'date') and opts.get(b'currentdate'): | |
190 | opts[b'date'] = b'%d %d' % dateutil.makedate() |
|
190 | opts[b'date'] = b'%d %d' % dateutil.makedate() | |
191 |
if not opts.get(b'user') and opts.get(b'current |
|
191 | if not opts.get(b'user') and opts.get(b'currentuser'): | |
192 | opts[b'user'] = ui.username() |
|
192 | opts[b'user'] = ui.username() | |
193 |
|
193 | |||
194 | def ishunk(x): |
|
194 | def ishunk(x): |
@@ -42,8 +42,8 b' Help for uncommit' | |||||
42 | -l --logfile FILE read commit message from file |
|
42 | -l --logfile FILE read commit message from file | |
43 | -d --date DATE record the specified date as commit date |
|
43 | -d --date DATE record the specified date as commit date | |
44 | -u --user USER record the specified user as committer |
|
44 | -u --user USER record the specified user as committer | |
45 |
-D --current |
|
45 | -D --currentdate record the current date as commit date | |
46 |
-U --current |
|
46 | -U --currentuser record the current user as committer | |
47 |
|
47 | |||
48 | (some details hidden, use --verbose to show complete help) |
|
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