Commits

Yujie Wu committed 23b7975

Added `--stamp' into the option list.

Comments (0)

Files changed (1)

 
 
 OPT_FILTER = {
-"init"    : ("force", "user",),
-"start"   : ("rev", "message", "date", "user", "dirty",),
-"finish"  : ("commit", "message", "date", "user", "erase", "onstream",),
+"init"    : ("force", "user", "stamp",),
+"start"   : ("rev", "message", "stamp", "date", "user", "dirty",),
+"finish"  : ("commit", "message", "stamp", "date", "user", "erase", "onstream",),
 "list"    : ("closed",),
 "log"     : ("file", "date", "user", "keyword", "patch", "git", "limit", "graph", "closed", "onstream",),
-"abort"   : ("erase", "message", "onstream",),
-"promote" : ("rev", "message", "tag", "date", "user", "onstream",),
-"rebase"  : ("dest", "onstream",),
+"abort"   : ("erase", "message", "stamp", "onstream",),
+"promote" : ("rev", "message", "stamp", "tag", "date", "user", "onstream",),
+"rebase"  : ("dest", "onstream", "stamp",),
 }
 
 OPT_CONFLICT = {
 "date"   : ("-d", '',   ),
 "closed" : ("-c", False,),
 "commit" : ("-c", False,),
+"stamp"  : ("-p", ''    ),
+"patch"  : ("-p", False ),
 }
 
 def _getopt( ui, key, opt ) :
       ("k", "keyword",   '',    _("Do case-insensitive search for a given text. [log]"),                 _('TEXT'),),
       ("l", "limit",     '',    _("Limit number of changesets displayed. [log]"),                                  ),
       ("m", "message",   '',    _("Record TEXT as commit message. [start, finish, promote, abort]"),     _('TEXT'),),
+      ("p", "stamp",     '',    _("Append TEXT to all commit messages. [init, start, finish, promote,"
+                                  " rebase, abort]"),                                                    _('TEXT'),),
       ("p", "patch",     False, _("Show patch. [log]"),                                                            ),
       ("r", "rev",       '',    _("Revision to start a new branch from. [start]"),                       _('REV'), ),
       ("r", "rev",       '',    _("Revision to promote to other branches. [promote]"),                   _('REV'), ),