mercurial/commands.py
changeset 591 eb46971fc57f
parent 590 38d106db75bc
child 592 74175ce83378
equal deleted inserted replaced
590:38d106db75bc 591:eb46971fc57f
   891               'hg clone [options] <source> [dest]'),
   891               'hg clone [options] <source> [dest]'),
   892     "commit|ci": (commit,
   892     "commit|ci": (commit,
   893                   [('t', 'text', "", 'commit text'),
   893                   [('t', 'text', "", 'commit text'),
   894                    ('A', 'addremove', None, 'run add/remove during commit'),
   894                    ('A', 'addremove', None, 'run add/remove during commit'),
   895                    ('l', 'logfile', "", 'commit text file'),
   895                    ('l', 'logfile', "", 'commit text file'),
   896                    ('d', 'date', "", 'data'),
   896                    ('d', 'date', "", 'date code'),
   897                    ('u', 'user', "", 'user')],
   897                    ('u', 'user', "", 'user')],
   898                   'hg commit [files]'),
   898                   'hg commit [files]'),
   899     "copy": (copy, [], 'hg copy <source> <dest>'),
   899     "copy": (copy, [], 'hg copy <source> <dest>'),
   900     "debugcheckdirstate": (debugcheckdirstate, [], 'debugcheckdirstate'),
   900     "debugcheckdirstate": (debugcheckdirstate, [], 'debugcheckdirstate'),
   901     "debugdumpdirstate": (debugdumpdirstate, [], 'debugdumpdirstate'),
   901     "debugdumpdirstate": (debugdumpdirstate, [], 'debugdumpdirstate'),
   923                   [('u', 'update', None, 'update working directory')],
   923                   [('u', 'update', None, 'update working directory')],
   924                   'hg pull [options] [source]'),
   924                   'hg pull [options] [source]'),
   925     "push": (push, [], 'hg push <destination>'),
   925     "push": (push, [], 'hg push <destination>'),
   926     "rawcommit": (rawcommit,
   926     "rawcommit": (rawcommit,
   927                   [('p', 'parent', [], 'parent'),
   927                   [('p', 'parent', [], 'parent'),
   928                    ('d', 'date', "", 'data'),
   928                    ('d', 'date', "", 'date code'),
   929                    ('u', 'user', "", 'user'),
   929                    ('u', 'user', "", 'user'),
   930                    ('F', 'files', "", 'file list'),
   930                    ('F', 'files', "", 'file list'),
   931                    ('t', 'text', "", 'commit text'),
   931                    ('t', 'text', "", 'commit text'),
   932                    ('l', 'logfile', "", 'commit text file')],
   932                    ('l', 'logfile', "", 'commit text file')],
   933                   'hg rawcommit [options] [files]'),
   933                   'hg rawcommit [options] [files]'),
   943                       ('n', 'name', os.getcwd(), 'repository name'),
   943                       ('n', 'name', os.getcwd(), 'repository name'),
   944                       ('t', 'templates', "", 'template map')],
   944                       ('t', 'templates', "", 'template map')],
   945               "hg serve [options]"),
   945               "hg serve [options]"),
   946     "status": (status, [], 'hg status'),
   946     "status": (status, [], 'hg status'),
   947     "tag": (tag,  [('t', 'text', "", 'commit text'),
   947     "tag": (tag,  [('t', 'text', "", 'commit text'),
   948                    ('d', 'date', "", 'date'),
   948                    ('d', 'date', "", 'date code'),
   949                    ('u', 'user', "", 'user')],
   949                    ('u', 'user', "", 'user')],
   950             'hg tag [options] <name> [rev]'),
   950             'hg tag [options] <name> [rev]'),
   951     "tags": (tags, [], 'hg tags'),
   951     "tags": (tags, [], 'hg tags'),
   952     "tip": (tip, [], 'hg tip'),
   952     "tip": (tip, [], 'hg tip'),
   953     "undo": (undo, [], 'hg undo'),
   953     "undo": (undo, [], 'hg undo'),
   978     sys.exit(dispatch(sys.argv[1:]))
   978     sys.exit(dispatch(sys.argv[1:]))
   979 
   979 
   980 def dispatch(args):
   980 def dispatch(args):
   981     options = {}
   981     options = {}
   982     opts = [('v', 'verbose', None, 'verbose'),
   982     opts = [('v', 'verbose', None, 'verbose'),
   983             ('d', 'debug', None, 'debug'),
   983             ('', 'debug', None, 'debug'),
   984             ('q', 'quiet', None, 'quiet'),
   984             ('q', 'quiet', None, 'quiet'),
   985             ('', 'profile', None, 'profile'),
   985             ('', 'profile', None, 'profile'),
   986             ('R', 'repository', "", 'repository root directory'),
   986             ('R', 'repository', "", 'repository root directory'),
   987             ('', 'traceback', None, 'print traceback on exception'),
   987             ('', 'traceback', None, 'print traceback on exception'),
   988             ('y', 'noninteractive', None, 'run non-interactively'),
   988             ('y', 'noninteractive', None, 'run non-interactively'),