662 # Command options and aliases are listed here, alphabetically |
653 # Command options and aliases are listed here, alphabetically |
663 |
654 |
664 table = { |
655 table = { |
665 "add": (add, [], "hg add [files]"), |
656 "add": (add, [], "hg add [files]"), |
666 "addremove": (addremove, [], "hg addremove [files]"), |
657 "addremove": (addremove, [], "hg addremove [files]"), |
667 "ann|annotate": (annotate, |
658 "annotate": (annotate, |
668 [('r', 'revision', '', 'revision'), |
659 [('r', 'revision', '', 'revision'), |
669 ('u', 'user', None, 'show user'), |
660 ('u', 'user', None, 'show user'), |
670 ('n', 'number', None, 'show revision number'), |
661 ('n', 'number', None, 'show revision number'), |
671 ('c', 'changeset', None, 'show changeset')], |
662 ('c', 'changeset', None, 'show changeset')], |
672 'hg annotate [-u] [-c] [-n] [-r id] [files]'), |
663 'hg annotate [-u] [-c] [-n] [-r id] [files]'), |
673 "cat|dump": (cat, [], 'hg cat <file> [rev]'), |
664 "cat": (cat, [], 'hg cat <file> [rev]'), |
674 "commit|ci": (commit, |
665 "commit|ci": (commit, |
675 [('t', 'text', "", 'commit text'), |
666 [('t', 'text', "", 'commit text'), |
676 ('A', 'addremove', None, 'run add/remove during commit'), |
667 ('A', 'addremove', None, 'run add/remove during commit'), |
677 ('l', 'logfile', "", 'commit text file'), |
668 ('l', 'logfile', "", 'commit text file'), |
678 ('d', 'date', "", 'data'), |
669 ('d', 'date', "", 'data'), |
679 ('u', 'user', "", 'user')], |
670 ('u', 'user', "", 'user')], |
680 'hg commit [files]'), |
671 'hg commit [files]'), |
681 "copy": (copy, [], 'hg copy <source> <dest>'), |
672 "copy": (copy, [], 'hg copy <source> <dest>'), |
682 "debugaddchangegroup": (debugaddchangegroup, [], 'debugaddchangegroup'), |
|
683 "debugchangegroup": (debugchangegroup, [], 'debugchangegroup [roots]'), |
|
684 "debugindex": (debugindex, [], 'debugindex <file>'), |
673 "debugindex": (debugindex, [], 'debugindex <file>'), |
685 "debugindexdot": (debugindexdot, [], 'debugindexdot <file>'), |
674 "debugindexdot": (debugindexdot, [], 'debugindexdot <file>'), |
686 "diff": (diff, [('r', 'rev', [], 'revision')], |
675 "diff": (diff, [('r', 'rev', [], 'revision')], |
687 'hg diff [-r A] [-r B] [files]'), |
676 'hg diff [-r A] [-r B] [files]'), |
688 "export": (export, [], "hg export <changeset>"), |
677 "export": (export, [], "hg export <changeset>"), |
689 "forget": (forget, [], "hg forget [files]"), |
678 "forget": (forget, [], "hg forget [files]"), |
690 "heads": (heads, [], 'hg heads'), |
679 "heads": (heads, [], 'hg heads'), |
691 "history": (history, [], 'hg history'), |
680 "history": (history, [], 'hg history'), |
692 "help": (help, [], 'hg help [command]'), |
681 "help": (help, [], 'hg help [command]'), |
693 "identify|id": (identify, [], 'hg identify'), |
682 "identify|id": (identify, [], 'hg identify'), |
|
683 "import|patch": (import_, |
|
684 [('p', 'strip', 1, 'path strip'), |
|
685 ('b', 'base', "", 'base path')], |
|
686 "hg import [options] <patches>"), |
694 "init": (init, [('u', 'update', None, 'update after init')], |
687 "init": (init, [('u', 'update', None, 'update after init')], |
695 'hg init [options] [url]'), |
688 'hg init [options] [url]'), |
696 "log": (log, [], 'hg log <file>'), |
689 "log": (log, [], 'hg log <file>'), |
697 "manifest|dumpmanifest": (manifest, [], 'hg manifest [rev]'), |
690 "manifest": (manifest, [], 'hg manifest [rev]'), |
698 "parents": (parents, [], 'hg parents [node]'), |
691 "parents": (parents, [], 'hg parents [node]'), |
699 "patch|import": (patch, |
692 "pull": (pull, |
700 [('p', 'strip', 1, 'path strip'), |
|
701 ('b', 'base', "", 'base path'), |
|
702 ('q', 'quiet', "", 'silence diff')], |
|
703 "hg import [options] patches"), |
|
704 "pull|merge": (pull, |
|
705 [('u', 'update', None, 'update working directory')], |
693 [('u', 'update', None, 'update working directory')], |
706 'hg pull [options] [source]'), |
694 'hg pull [options] [source]'), |
707 "push": (push, [], 'hg push <destination>'), |
695 "push": (push, [], 'hg push <destination>'), |
708 "rawcommit": (rawcommit, |
696 "rawcommit": (rawcommit, |
709 [('p', 'parent', [], 'parent'), |
697 [('p', 'parent', [], 'parent'), |
712 ('F', 'files', "", 'file list'), |
700 ('F', 'files', "", 'file list'), |
713 ('t', 'text', "", 'commit text'), |
701 ('t', 'text', "", 'commit text'), |
714 ('l', 'logfile', "", 'commit text file')], |
702 ('l', 'logfile', "", 'commit text file')], |
715 'hg rawcommit [options] [files]'), |
703 'hg rawcommit [options] [files]'), |
716 "recover": (recover, [], "hg recover"), |
704 "recover": (recover, [], "hg recover"), |
717 "remove": (remove, [], "hg remove [files]"), |
705 "remove|rm": (remove, [], "hg remove [files]"), |
718 "serve": (serve, [('p', 'port', 8000, 'listen port'), |
706 "serve": (serve, [('p', 'port', 8000, 'listen port'), |
719 ('a', 'address', '', 'interface address'), |
707 ('a', 'address', '', 'interface address'), |
720 ('n', 'name', os.getcwd(), 'repository name'), |
708 ('n', 'name', os.getcwd(), 'repository name'), |
721 ('t', 'templates', "", 'template map')], |
709 ('t', 'templates', "", 'template map')], |
722 "hg serve [options]"), |
710 "hg serve [options]"), |
726 ('u', 'user', "", 'user')], |
714 ('u', 'user', "", 'user')], |
727 'hg tag [options] <name> [rev]'), |
715 'hg tag [options] <name> [rev]'), |
728 "tags": (tags, [], 'hg tags'), |
716 "tags": (tags, [], 'hg tags'), |
729 "tip": (tip, [], 'hg tip'), |
717 "tip": (tip, [], 'hg tip'), |
730 "undo": (undo, [], 'hg undo'), |
718 "undo": (undo, [], 'hg undo'), |
731 "update|up|checkout|co|resolve": (update, |
719 "update|up|checkout|co": |
732 [('m', 'merge', None, |
720 (update, |
733 'allow merging of conflicts'), |
721 [('m', 'merge', None, 'allow merging of conflicts'), |
734 ('C', 'clean', None, |
722 ('C', 'clean', None, 'overwrite locally modified files')], |
735 'overwrite locally modified files')], |
723 'hg update [options] [node]'), |
736 'hg update [options] [node]'), |
|
737 "verify": (verify, [], 'hg verify'), |
724 "verify": (verify, [], 'hg verify'), |
738 } |
725 } |
739 |
726 |
740 norepo = "init version help debugindex debugindexdot" |
727 norepo = "init version help debugindex debugindexdot" |
741 |
728 |