##// END OF EJS Templates
Remove deprecated commit -t option
Matt Mackall -
r1443:3a0b69ea default
parent child Browse files
Show More
@@ -743,10 +743,7 b' def commit(ui, repo, *pats, **opts):'
743 The HGEDITOR or EDITOR environment variables are used to start an
743 The HGEDITOR or EDITOR environment variables are used to start an
744 editor to add a commit comment.
744 editor to add a commit comment.
745 """
745 """
746 if opts['text']:
746 message = opts['message']
747 ui.warn(_("Warning: -t and --text is deprecated,"
748 " please use -m or --message instead.\n"))
749 message = opts['message'] or opts['text']
750 logfile = opts['logfile']
747 logfile = opts['logfile']
751
748
752 if message and logfile:
749 if message and logfile:
@@ -2188,7 +2185,6 b' table = {'
2188 ('I', 'include', [], _('include names matching the given patterns')),
2185 ('I', 'include', [], _('include names matching the given patterns')),
2189 ('X', 'exclude', [], _('exclude names matching the given patterns')),
2186 ('X', 'exclude', [], _('exclude names matching the given patterns')),
2190 ('m', 'message', "", _('use <text> as commit message')),
2187 ('m', 'message', "", _('use <text> as commit message')),
2191 ('t', 'text', "", _('commit message (deprecated: use -m)')),
2192 ('l', 'logfile', "", _('read the commit message from <file>')),
2188 ('l', 'logfile', "", _('read the commit message from <file>')),
2193 ('d', 'date', "", _('record datecode as commit date')),
2189 ('d', 'date', "", _('record datecode as commit date')),
2194 ('u', 'user', "", _('record user as commiter'))],
2190 ('u', 'user', "", _('record user as commiter'))],
@@ -7,7 +7,7 b' hg commit -m "Added a" -d "0 0"'
7
7
8 touch main
8 touch main
9 hg add main
9 hg add main
10 hg commit -t "Added main" -d "0 0"
10 hg commit -m "Added main" -d "0 0"
11 hg checkout 0
11 hg checkout 0
12
12
13 echo Main should be gone
13 echo Main should be gone
@@ -1,4 +1,3 b''
1 Warning: -t and --text is deprecated, please use -m or --message instead.
2 Main should be gone
1 Main should be gone
3 a
2 a
4 changeset: 3:91ebc10ed028
3 changeset: 3:91ebc10ed028
General Comments 0
You need to be logged in to leave comments. Login now