comparison mercurial/commands.py @ 591:eb46971fc57f

options: kill -d for debug -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 options: kill -d for debug You must now use --debug. This is a preparatory step for changing the option parsing from: hg [global-opts] <command> [command-opts] to hg [global-opts] <command> [global or command opts] manifest hash: ec5ecc687340baa109a98b742f1cd8d1f4aadeed -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCx4urywK+sNU5EO8RAl90AJ0fwKU/GwHpJvlTFl5naeJbkceWewCgh4jK kaTSSodACgPzgbFiid5RL4Y= =siEe -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sat, 02 Jul 2005 22:54:35 -0800
parents 38d106db75bc
children 74175ce83378
comparison
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'),