Show More
@@ -876,3 +876,397 b' Test usage of section marks in help docu' | |||||
876 |
|
876 | |||
877 | $ cd "$TESTDIR"/../doc |
|
877 | $ cd "$TESTDIR"/../doc | |
878 | $ python check-seclevel.py |
|
878 | $ python check-seclevel.py | |
|
879 | $ cd $TESTTMP | |||
|
880 | ||||
|
881 | #if serve | |||
|
882 | ||||
|
883 | Test the help pages in hgweb. | |||
|
884 | ||||
|
885 | Dish up an empty repo; serve it cold. | |||
|
886 | ||||
|
887 | $ hg init "$TESTTMP/test" | |||
|
888 | $ hg serve -R "$TESTTMP/test" -n test -p $HGPORT -d --pid-file=hg.pid | |||
|
889 | $ cat hg.pid >> $DAEMON_PIDS | |||
|
890 | ||||
|
891 | $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help" | |||
|
892 | 200 Script output follows | |||
|
893 | ||||
|
894 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |||
|
895 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |||
|
896 | <head> | |||
|
897 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |||
|
898 | <meta name="robots" content="index, nofollow" /> | |||
|
899 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |||
|
900 | <script type="text/javascript" src="/static/mercurial.js"></script> | |||
|
901 | ||||
|
902 | <title>Help: Index</title> | |||
|
903 | </head> | |||
|
904 | <body> | |||
|
905 | ||||
|
906 | <div class="container"> | |||
|
907 | <div class="menu"> | |||
|
908 | <div class="logo"> | |||
|
909 | <a href="http://mercurial.selenic.com/"> | |||
|
910 | <img src="/static/hglogo.png" alt="mercurial" /></a> | |||
|
911 | </div> | |||
|
912 | <ul> | |||
|
913 | <li><a href="/shortlog">log</a></li> | |||
|
914 | <li><a href="/graph">graph</a></li> | |||
|
915 | <li><a href="/tags">tags</a></li> | |||
|
916 | <li><a href="/bookmarks">bookmarks</a></li> | |||
|
917 | <li><a href="/branches">branches</a></li> | |||
|
918 | </ul> | |||
|
919 | <ul> | |||
|
920 | <li class="active">help</li> | |||
|
921 | </ul> | |||
|
922 | </div> | |||
|
923 | ||||
|
924 | <div class="main"> | |||
|
925 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> | |||
|
926 | <form class="search" action="/log"> | |||
|
927 | ||||
|
928 | <p><input name="rev" id="search1" type="text" size="30" /></p> | |||
|
929 | <div id="hint">find changesets by author, revision, | |||
|
930 | files, or words in the commit message</div> | |||
|
931 | </form> | |||
|
932 | <table class="bigtable"> | |||
|
933 | <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr> | |||
|
934 | <tr><td><a href="/help/config">config</a></td><td>Configuration Files</td></tr><tr><td><a href="/help/dates">dates</a></td><td>Date Formats</td></tr><tr><td><a href="/help/diffs">diffs</a></td><td>Diff Formats</td></tr><tr><td><a href="/help/environment">environment</a></td><td>Environment Variables</td></tr><tr><td><a href="/help/extensions">extensions</a></td><td>Using Additional Features</td></tr><tr><td><a href="/help/filesets">filesets</a></td><td>Specifying File Sets</td></tr><tr><td><a href="/help/glossary">glossary</a></td><td>Glossary</td></tr><tr><td><a href="/help/hgignore">hgignore</a></td><td>Syntax for Mercurial Ignore Files</td></tr><tr><td><a href="/help/hgweb">hgweb</a></td><td>Configuring hgweb</td></tr><tr><td><a href="/help/merge-tools">merge-tools</a></td><td>Merge Tools</td></tr><tr><td><a href="/help/multirevs">multirevs</a></td><td>Specifying Multiple Revisions</td></tr><tr><td><a href="/help/patterns">patterns</a></td><td>File Name Patterns</td></tr><tr><td><a href="/help/phases">phases</a></td><td>Working with Phases</td></tr><tr><td><a href="/help/revisions">revisions</a></td><td>Specifying Single Revisions</td></tr><tr><td><a href="/help/revsets">revsets</a></td><td>Specifying Revision Sets</td></tr><tr><td><a href="/help/subrepos">subrepos</a></td><td>Subrepositories</td></tr><tr><td><a href="/help/templating">templating</a></td><td>Template Usage</td></tr><tr><td><a href="/help/urls">urls</a></td><td>URL Paths</td></tr><tr><td><a href="/help/topic-containing-verbose">topic-containing-verbose</a></td><td>This is the topic to test omit indicating.</td></tr> | |||
|
935 | ||||
|
936 | <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr> | |||
|
937 | <tr><td><a href="/help/add">add</a></td><td>add the specified files on the next commit</td></tr><tr><td><a href="/help/annotate">annotate</a></td><td>show changeset information by line for each file</td></tr><tr><td><a href="/help/clone">clone</a></td><td>make a copy of an existing repository</td></tr><tr><td><a href="/help/commit">commit</a></td><td>commit the specified files or all outstanding changes</td></tr><tr><td><a href="/help/diff">diff</a></td><td>diff repository (or selected files)</td></tr><tr><td><a href="/help/export">export</a></td><td>dump the header and diffs for one or more changesets</td></tr><tr><td><a href="/help/forget">forget</a></td><td>forget the specified files on the next commit</td></tr><tr><td><a href="/help/init">init</a></td><td>create a new repository in the given directory</td></tr><tr><td><a href="/help/log">log</a></td><td>show revision history of entire repository or files</td></tr><tr><td><a href="/help/merge">merge</a></td><td>merge working directory with another revision</td></tr><tr><td><a href="/help/pull">pull</a></td><td>pull changes from the specified source</td></tr><tr><td><a href="/help/push">push</a></td><td>push changes to the specified destination</td></tr><tr><td><a href="/help/remove">remove</a></td><td>remove the specified files on the next commit</td></tr><tr><td><a href="/help/serve">serve</a></td><td>start stand-alone webserver</td></tr><tr><td><a href="/help/status">status</a></td><td>show changed files in the working directory</td></tr><tr><td><a href="/help/summary">summary</a></td><td>summarize working directory state</td></tr><tr><td><a href="/help/update">update</a></td><td>update working directory (or switch revisions)</td></tr> | |||
|
938 | ||||
|
939 | <tr><td colspan="2"><h2><a name="other" href="#other">Other Commands</a></h2></td></tr> | |||
|
940 | <tr><td><a href="/help/addremove">addremove</a></td><td>add all new files, delete all missing files</td></tr><tr><td><a href="/help/archive">archive</a></td><td>create an unversioned archive of a repository revision</td></tr><tr><td><a href="/help/backout">backout</a></td><td>reverse effect of earlier changeset</td></tr><tr><td><a href="/help/bisect">bisect</a></td><td>subdivision search of changesets</td></tr><tr><td><a href="/help/bookmarks">bookmarks</a></td><td>track a line of development with movable markers</td></tr><tr><td><a href="/help/branch">branch</a></td><td>set or show the current branch name</td></tr><tr><td><a href="/help/branches">branches</a></td><td>list repository named branches</td></tr><tr><td><a href="/help/bundle">bundle</a></td><td>create a changegroup file</td></tr><tr><td><a href="/help/cat">cat</a></td><td>output the current or given revision of files</td></tr><tr><td><a href="/help/copy">copy</a></td><td>mark files as copied for the next commit</td></tr><tr><td><a href="/help/graft">graft</a></td><td>copy changes from other branches onto the current branch</td></tr><tr><td><a href="/help/grep">grep</a></td><td>search for a pattern in specified files and revisions</td></tr><tr><td><a href="/help/heads">heads</a></td><td>show current repository heads or show branch heads</td></tr><tr><td><a href="/help/help">help</a></td><td>show help for a given topic or a help overview</td></tr><tr><td><a href="/help/identify">identify</a></td><td>identify the working copy or specified revision</td></tr><tr><td><a href="/help/import">import</a></td><td>import an ordered set of patches</td></tr><tr><td><a href="/help/incoming">incoming</a></td><td>show new changesets found in source</td></tr><tr><td><a href="/help/locate">locate</a></td><td>locate files matching specific patterns</td></tr><tr><td><a href="/help/manifest">manifest</a></td><td>output the current or given revision of the project manifest</td></tr><tr><td><a href="/help/nohelp">nohelp</a></td><td>(no help text available)</td></tr><tr><td><a href="/help/outgoing">outgoing</a></td><td>show changesets not found in the destination</td></tr><tr><td><a href="/help/parents">parents</a></td><td>show the parents of the working directory or revision</td></tr><tr><td><a href="/help/paths">paths</a></td><td>show aliases for remote repositories</td></tr><tr><td><a href="/help/phase">phase</a></td><td>set or show the current phase name</td></tr><tr><td><a href="/help/recover">recover</a></td><td>roll back an interrupted transaction</td></tr><tr><td><a href="/help/rename">rename</a></td><td>rename files; equivalent of copy + remove</td></tr><tr><td><a href="/help/resolve">resolve</a></td><td>redo merges or set/view the merge status of files</td></tr><tr><td><a href="/help/revert">revert</a></td><td>restore files to their checkout state</td></tr><tr><td><a href="/help/rollback">rollback</a></td><td>roll back the last transaction (dangerous)</td></tr><tr><td><a href="/help/root">root</a></td><td>print the root (top) of the current working directory</td></tr><tr><td><a href="/help/showconfig">showconfig</a></td><td>show combined config settings from all hgrc files</td></tr><tr><td><a href="/help/tag">tag</a></td><td>add one or more tags for the current or given revision</td></tr><tr><td><a href="/help/tags">tags</a></td><td>list repository tags</td></tr><tr><td><a href="/help/tip">tip</a></td><td>show the tip revision</td></tr><tr><td><a href="/help/unbundle">unbundle</a></td><td>apply one or more changegroup files</td></tr><tr><td><a href="/help/verify">verify</a></td><td>verify the integrity of the repository</td></tr><tr><td><a href="/help/version">version</a></td><td>output version and copyright information</td></tr> | |||
|
941 | </table> | |||
|
942 | </div> | |||
|
943 | </div> | |||
|
944 | ||||
|
945 | <script type="text/javascript">process_dates()</script> | |||
|
946 | ||||
|
947 | ||||
|
948 | </body> | |||
|
949 | </html> | |||
|
950 | ||||
|
951 | ||||
|
952 | $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/add" | |||
|
953 | 200 Script output follows | |||
|
954 | ||||
|
955 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |||
|
956 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |||
|
957 | <head> | |||
|
958 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |||
|
959 | <meta name="robots" content="index, nofollow" /> | |||
|
960 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |||
|
961 | <script type="text/javascript" src="/static/mercurial.js"></script> | |||
|
962 | ||||
|
963 | <title>Help: add</title> | |||
|
964 | </head> | |||
|
965 | <body> | |||
|
966 | ||||
|
967 | <div class="container"> | |||
|
968 | <div class="menu"> | |||
|
969 | <div class="logo"> | |||
|
970 | <a href="http://mercurial.selenic.com/"> | |||
|
971 | <img src="/static/hglogo.png" alt="mercurial" /></a> | |||
|
972 | </div> | |||
|
973 | <ul> | |||
|
974 | <li><a href="/shortlog">log</a></li> | |||
|
975 | <li><a href="/graph">graph</a></li> | |||
|
976 | <li><a href="/tags">tags</a></li> | |||
|
977 | <li><a href="/bookmarks">bookmarks</a></li> | |||
|
978 | <li><a href="/branches">branches</a></li> | |||
|
979 | </ul> | |||
|
980 | <ul> | |||
|
981 | <li class="active"><a href="/help">help</a></li> | |||
|
982 | </ul> | |||
|
983 | </div> | |||
|
984 | ||||
|
985 | <div class="main"> | |||
|
986 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> | |||
|
987 | <h3>Help: add</h3> | |||
|
988 | ||||
|
989 | <form class="search" action="/log"> | |||
|
990 | ||||
|
991 | <p><input name="rev" id="search1" type="text" size="30" /></p> | |||
|
992 | <div id="hint">find changesets by author, revision, | |||
|
993 | files, or words in the commit message</div> | |||
|
994 | </form> | |||
|
995 | <pre> | |||
|
996 | hg add [OPTION]... [FILE]... | |||
|
997 | ||||
|
998 | add the specified files on the next commit | |||
|
999 | ||||
|
1000 | Schedule files to be version controlled and added to the repository. | |||
|
1001 | ||||
|
1002 | The files will be added to the repository at the next commit. To undo an | |||
|
1003 | add before that, see "hg forget". | |||
|
1004 | ||||
|
1005 | If no names are given, add all files to the repository. | |||
|
1006 | ||||
|
1007 | An example showing how new (unknown) files are added automatically by "hg | |||
|
1008 | add": | |||
|
1009 | ||||
|
1010 | $ ls | |||
|
1011 | foo.c | |||
|
1012 | $ hg status | |||
|
1013 | ? foo.c | |||
|
1014 | $ hg add | |||
|
1015 | adding foo.c | |||
|
1016 | $ hg status | |||
|
1017 | A foo.c | |||
|
1018 | ||||
|
1019 | Returns 0 if all files are successfully added. | |||
|
1020 | ||||
|
1021 | options: | |||
|
1022 | ||||
|
1023 | -I --include PATTERN [+] include names matching the given patterns | |||
|
1024 | -X --exclude PATTERN [+] exclude names matching the given patterns | |||
|
1025 | -S --subrepos recurse into subrepositories | |||
|
1026 | -n --dry-run do not perform actions, just print output | |||
|
1027 | ||||
|
1028 | [+] marked option can be specified multiple times | |||
|
1029 | ||||
|
1030 | global options: | |||
|
1031 | ||||
|
1032 | -R --repository REPO repository root directory or name of overlay bundle | |||
|
1033 | file | |||
|
1034 | --cwd DIR change working directory | |||
|
1035 | -y --noninteractive do not prompt, automatically pick the first choice for | |||
|
1036 | all prompts | |||
|
1037 | -q --quiet suppress output | |||
|
1038 | -v --verbose enable additional output | |||
|
1039 | --config CONFIG [+] set/override config option (use 'section.name=value') | |||
|
1040 | --debug enable debugging output | |||
|
1041 | --debugger start debugger | |||
|
1042 | --encoding ENCODE set the charset encoding (default: ascii) | |||
|
1043 | --encodingmode MODE set the charset encoding mode (default: strict) | |||
|
1044 | --traceback always print a traceback on exception | |||
|
1045 | --time time how long the command takes | |||
|
1046 | --profile print command execution profile | |||
|
1047 | --version output version information and exit | |||
|
1048 | -h --help display help and exit | |||
|
1049 | --hidden consider hidden changesets | |||
|
1050 | ||||
|
1051 | [+] marked option can be specified multiple times | |||
|
1052 | ||||
|
1053 | </pre> | |||
|
1054 | </div> | |||
|
1055 | </div> | |||
|
1056 | ||||
|
1057 | <script type="text/javascript">process_dates()</script> | |||
|
1058 | ||||
|
1059 | ||||
|
1060 | </body> | |||
|
1061 | </html> | |||
|
1062 | ||||
|
1063 | ||||
|
1064 | $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/remove" | |||
|
1065 | 200 Script output follows | |||
|
1066 | ||||
|
1067 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |||
|
1068 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |||
|
1069 | <head> | |||
|
1070 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |||
|
1071 | <meta name="robots" content="index, nofollow" /> | |||
|
1072 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |||
|
1073 | <script type="text/javascript" src="/static/mercurial.js"></script> | |||
|
1074 | ||||
|
1075 | <title>Help: remove</title> | |||
|
1076 | </head> | |||
|
1077 | <body> | |||
|
1078 | ||||
|
1079 | <div class="container"> | |||
|
1080 | <div class="menu"> | |||
|
1081 | <div class="logo"> | |||
|
1082 | <a href="http://mercurial.selenic.com/"> | |||
|
1083 | <img src="/static/hglogo.png" alt="mercurial" /></a> | |||
|
1084 | </div> | |||
|
1085 | <ul> | |||
|
1086 | <li><a href="/shortlog">log</a></li> | |||
|
1087 | <li><a href="/graph">graph</a></li> | |||
|
1088 | <li><a href="/tags">tags</a></li> | |||
|
1089 | <li><a href="/bookmarks">bookmarks</a></li> | |||
|
1090 | <li><a href="/branches">branches</a></li> | |||
|
1091 | </ul> | |||
|
1092 | <ul> | |||
|
1093 | <li class="active"><a href="/help">help</a></li> | |||
|
1094 | </ul> | |||
|
1095 | </div> | |||
|
1096 | ||||
|
1097 | <div class="main"> | |||
|
1098 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> | |||
|
1099 | <h3>Help: remove</h3> | |||
|
1100 | ||||
|
1101 | <form class="search" action="/log"> | |||
|
1102 | ||||
|
1103 | <p><input name="rev" id="search1" type="text" size="30" /></p> | |||
|
1104 | <div id="hint">find changesets by author, revision, | |||
|
1105 | files, or words in the commit message</div> | |||
|
1106 | </form> | |||
|
1107 | <pre> | |||
|
1108 | hg remove [OPTION]... FILE... | |||
|
1109 | ||||
|
1110 | aliases: rm | |||
|
1111 | ||||
|
1112 | remove the specified files on the next commit | |||
|
1113 | ||||
|
1114 | Schedule the indicated files for removal from the current branch. | |||
|
1115 | ||||
|
1116 | This command schedules the files to be removed at the next commit. To undo | |||
|
1117 | a remove before that, see "hg revert". To undo added files, see "hg | |||
|
1118 | forget". | |||
|
1119 | ||||
|
1120 | -A/--after can be used to remove only files that have already been | |||
|
1121 | deleted, -f/--force can be used to force deletion, and -Af can be used to | |||
|
1122 | remove files from the next revision without deleting them from the working | |||
|
1123 | directory. | |||
|
1124 | ||||
|
1125 | The following table details the behavior of remove for different file | |||
|
1126 | states (columns) and option combinations (rows). The file states are Added | |||
|
1127 | [A], Clean [C], Modified [M] and Missing [!] (as reported by "hg status"). | |||
|
1128 | The actions are Warn, Remove (from branch) and Delete (from disk): | |||
|
1129 | ||||
|
1130 | A C M ! | |||
|
1131 | -------------- | |||
|
1132 | none W RD W R | |||
|
1133 | -f R RD RD R | |||
|
1134 | -A W W W R | |||
|
1135 | -Af R R R R | |||
|
1136 | ||||
|
1137 | Note that remove never deletes files in Added [A] state from the working | |||
|
1138 | directory, not even if option --force is specified. | |||
|
1139 | ||||
|
1140 | Returns 0 on success, 1 if any warnings encountered. | |||
|
1141 | ||||
|
1142 | options: | |||
|
1143 | ||||
|
1144 | -A --after record delete for missing files | |||
|
1145 | -f --force remove (and delete) file even if added or modified | |||
|
1146 | -I --include PATTERN [+] include names matching the given patterns | |||
|
1147 | -X --exclude PATTERN [+] exclude names matching the given patterns | |||
|
1148 | ||||
|
1149 | [+] marked option can be specified multiple times | |||
|
1150 | ||||
|
1151 | global options: | |||
|
1152 | ||||
|
1153 | -R --repository REPO repository root directory or name of overlay bundle | |||
|
1154 | file | |||
|
1155 | --cwd DIR change working directory | |||
|
1156 | -y --noninteractive do not prompt, automatically pick the first choice for | |||
|
1157 | all prompts | |||
|
1158 | -q --quiet suppress output | |||
|
1159 | -v --verbose enable additional output | |||
|
1160 | --config CONFIG [+] set/override config option (use 'section.name=value') | |||
|
1161 | --debug enable debugging output | |||
|
1162 | --debugger start debugger | |||
|
1163 | --encoding ENCODE set the charset encoding (default: ascii) | |||
|
1164 | --encodingmode MODE set the charset encoding mode (default: strict) | |||
|
1165 | --traceback always print a traceback on exception | |||
|
1166 | --time time how long the command takes | |||
|
1167 | --profile print command execution profile | |||
|
1168 | --version output version information and exit | |||
|
1169 | -h --help display help and exit | |||
|
1170 | --hidden consider hidden changesets | |||
|
1171 | ||||
|
1172 | [+] marked option can be specified multiple times | |||
|
1173 | ||||
|
1174 | </pre> | |||
|
1175 | </div> | |||
|
1176 | </div> | |||
|
1177 | ||||
|
1178 | <script type="text/javascript">process_dates()</script> | |||
|
1179 | ||||
|
1180 | ||||
|
1181 | </body> | |||
|
1182 | </html> | |||
|
1183 | ||||
|
1184 | ||||
|
1185 | $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/revisions" | |||
|
1186 | 200 Script output follows | |||
|
1187 | ||||
|
1188 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |||
|
1189 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> | |||
|
1190 | <head> | |||
|
1191 | <link rel="icon" href="/static/hgicon.png" type="image/png" /> | |||
|
1192 | <meta name="robots" content="index, nofollow" /> | |||
|
1193 | <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> | |||
|
1194 | <script type="text/javascript" src="/static/mercurial.js"></script> | |||
|
1195 | ||||
|
1196 | <title>Help: revisions</title> | |||
|
1197 | </head> | |||
|
1198 | <body> | |||
|
1199 | ||||
|
1200 | <div class="container"> | |||
|
1201 | <div class="menu"> | |||
|
1202 | <div class="logo"> | |||
|
1203 | <a href="http://mercurial.selenic.com/"> | |||
|
1204 | <img src="/static/hglogo.png" alt="mercurial" /></a> | |||
|
1205 | </div> | |||
|
1206 | <ul> | |||
|
1207 | <li><a href="/shortlog">log</a></li> | |||
|
1208 | <li><a href="/graph">graph</a></li> | |||
|
1209 | <li><a href="/tags">tags</a></li> | |||
|
1210 | <li><a href="/bookmarks">bookmarks</a></li> | |||
|
1211 | <li><a href="/branches">branches</a></li> | |||
|
1212 | </ul> | |||
|
1213 | <ul> | |||
|
1214 | <li class="active"><a href="/help">help</a></li> | |||
|
1215 | </ul> | |||
|
1216 | </div> | |||
|
1217 | ||||
|
1218 | <div class="main"> | |||
|
1219 | <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> | |||
|
1220 | <h3>Help: revisions</h3> | |||
|
1221 | ||||
|
1222 | <form class="search" action="/log"> | |||
|
1223 | ||||
|
1224 | <p><input name="rev" id="search1" type="text" size="30" /></p> | |||
|
1225 | <div id="hint">find changesets by author, revision, | |||
|
1226 | files, or words in the commit message</div> | |||
|
1227 | </form> | |||
|
1228 | <pre> | |||
|
1229 | Specifying Single Revisions | |||
|
1230 | ||||
|
1231 | Mercurial supports several ways to specify individual revisions. | |||
|
1232 | ||||
|
1233 | A plain integer is treated as a revision number. Negative integers are | |||
|
1234 | treated as sequential offsets from the tip, with -1 denoting the tip, -2 | |||
|
1235 | denoting the revision prior to the tip, and so forth. | |||
|
1236 | ||||
|
1237 | A 40-digit hexadecimal string is treated as a unique revision identifier. | |||
|
1238 | ||||
|
1239 | A hexadecimal string less than 40 characters long is treated as a unique | |||
|
1240 | revision identifier and is referred to as a short-form identifier. A | |||
|
1241 | short-form identifier is only valid if it is the prefix of exactly one | |||
|
1242 | full-length identifier. | |||
|
1243 | ||||
|
1244 | Any other string is treated as a bookmark, tag, or branch name. A bookmark | |||
|
1245 | is a movable pointer to a revision. A tag is a permanent name associated | |||
|
1246 | with a revision. A branch name denotes the tipmost revision of that | |||
|
1247 | branch. Bookmark, tag, and branch names must not contain the ":" | |||
|
1248 | character. | |||
|
1249 | ||||
|
1250 | The reserved name "tip" always identifies the most recent revision. | |||
|
1251 | ||||
|
1252 | The reserved name "null" indicates the null revision. This is the revision | |||
|
1253 | of an empty repository, and the parent of revision 0. | |||
|
1254 | ||||
|
1255 | The reserved name "." indicates the working directory parent. If no | |||
|
1256 | working directory is checked out, it is equivalent to null. If an | |||
|
1257 | uncommitted merge is in progress, "." is the revision of the first parent. | |||
|
1258 | ||||
|
1259 | </pre> | |||
|
1260 | </div> | |||
|
1261 | </div> | |||
|
1262 | ||||
|
1263 | <script type="text/javascript">process_dates()</script> | |||
|
1264 | ||||
|
1265 | ||||
|
1266 | </body> | |||
|
1267 | </html> | |||
|
1268 | ||||
|
1269 | ||||
|
1270 | $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS | |||
|
1271 | ||||
|
1272 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now