Show More
@@ -0,0 +1,263 b'' | |||
|
1 | #require false | |
|
2 | ||
|
3 | testing hellomessage: | |
|
4 | ||
|
5 | o, 'capabilities: getencoding runcommand\nencoding: ***' | |
|
6 | runcommand id | |
|
7 | 000000000000 tip | |
|
8 | ||
|
9 | testing unknowncommand: | |
|
10 | ||
|
11 | abort: unknown command unknowncommand | |
|
12 | ||
|
13 | testing checkruncommand: | |
|
14 | ||
|
15 | runcommand | |
|
16 | Mercurial Distributed SCM | |
|
17 | ||
|
18 | basic commands: | |
|
19 | ||
|
20 | add add the specified files on the next commit | |
|
21 | annotate show changeset information by line for each file | |
|
22 | clone make a copy of an existing repository | |
|
23 | commit commit the specified files or all outstanding changes | |
|
24 | diff diff repository (or selected files) | |
|
25 | export dump the header and diffs for one or more changesets | |
|
26 | forget forget the specified files on the next commit | |
|
27 | init create a new repository in the given directory | |
|
28 | log show revision history of entire repository or files | |
|
29 | merge merge working directory with another revision | |
|
30 | pull pull changes from the specified source | |
|
31 | push push changes to the specified destination | |
|
32 | remove remove the specified files on the next commit | |
|
33 | serve start stand-alone webserver | |
|
34 | status show changed files in the working directory | |
|
35 | summary summarize working directory state | |
|
36 | update update working directory (or switch revisions) | |
|
37 | ||
|
38 | (use "hg help" for the full list of commands or "hg -v" for details) | |
|
39 | runcommand id --quiet | |
|
40 | 000000000000 | |
|
41 | runcommand id | |
|
42 | 000000000000 tip | |
|
43 | runcommand id --config ui.quiet=True | |
|
44 | 000000000000 | |
|
45 | runcommand id | |
|
46 | 000000000000 tip | |
|
47 | runcommand id -runknown | |
|
48 | abort: unknown revision 'unknown'! | |
|
49 | [255] | |
|
50 | ||
|
51 | testing inputeof: | |
|
52 | ||
|
53 | server exit code = 1 | |
|
54 | ||
|
55 | testing serverinput: | |
|
56 | ||
|
57 | runcommand import - | |
|
58 | applying patch from stdin | |
|
59 | runcommand log | |
|
60 | changeset: 0:eff892de26ec | |
|
61 | tag: tip | |
|
62 | user: test | |
|
63 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
64 | summary: 1 | |
|
65 | ||
|
66 | ||
|
67 | testing cwd: | |
|
68 | ||
|
69 | runcommand --cwd foo st bar | |
|
70 | ? bar | |
|
71 | runcommand st foo/bar | |
|
72 | ? foo/bar | |
|
73 | ||
|
74 | testing localhgrc: | |
|
75 | ||
|
76 | runcommand showconfig | |
|
77 | bundle.mainreporoot=$TESTTMP/repo | |
|
78 | defaults.backout=-d "0 0" | |
|
79 | defaults.commit=-d "0 0" | |
|
80 | defaults.shelve=--date "0 0" | |
|
81 | defaults.tag=-d "0 0" | |
|
82 | ui.slash=True | |
|
83 | ui.interactive=False | |
|
84 | ui.mergemarkers=detailed | |
|
85 | ui.foo=bar | |
|
86 | ui.nontty=true | |
|
87 | runcommand init foo | |
|
88 | runcommand -R foo showconfig ui defaults | |
|
89 | defaults.backout=-d "0 0" | |
|
90 | defaults.commit=-d "0 0" | |
|
91 | defaults.shelve=--date "0 0" | |
|
92 | defaults.tag=-d "0 0" | |
|
93 | ui.slash=True | |
|
94 | ui.interactive=False | |
|
95 | ui.mergemarkers=detailed | |
|
96 | ui.nontty=true | |
|
97 | ||
|
98 | testing hookoutput: | |
|
99 | ||
|
100 | runcommand --config hooks.pre-identify=python:test-commandserver.hook id | |
|
101 | hook talking | |
|
102 | now try to read something: 'some input' | |
|
103 | eff892de26ec tip | |
|
104 | ||
|
105 | testing outsidechanges: | |
|
106 | ||
|
107 | runcommand status | |
|
108 | M a | |
|
109 | runcommand tip | |
|
110 | changeset: 1:d3a0a68be6de | |
|
111 | tag: tip | |
|
112 | user: test | |
|
113 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
114 | summary: 2 | |
|
115 | ||
|
116 | runcommand status | |
|
117 | ||
|
118 | testing bookmarks: | |
|
119 | ||
|
120 | runcommand bookmarks | |
|
121 | no bookmarks set | |
|
122 | runcommand bookmarks | |
|
123 | bm1 1:d3a0a68be6de | |
|
124 | bm2 1:d3a0a68be6de | |
|
125 | runcommand bookmarks | |
|
126 | * bm1 1:d3a0a68be6de | |
|
127 | bm2 1:d3a0a68be6de | |
|
128 | runcommand bookmarks bm3 | |
|
129 | runcommand commit -Amm | |
|
130 | runcommand bookmarks | |
|
131 | bm1 1:d3a0a68be6de | |
|
132 | bm2 1:d3a0a68be6de | |
|
133 | * bm3 2:aef17e88f5f0 | |
|
134 | ||
|
135 | testing tagscache: | |
|
136 | ||
|
137 | runcommand id -t -r 0 | |
|
138 | ||
|
139 | runcommand id -t -r 0 | |
|
140 | foo | |
|
141 | ||
|
142 | testing setphase: | |
|
143 | ||
|
144 | runcommand phase -r . | |
|
145 | 3: draft | |
|
146 | runcommand phase -r . | |
|
147 | 3: public | |
|
148 | ||
|
149 | testing rollback: | |
|
150 | ||
|
151 | runcommand phase -r . -p | |
|
152 | no phases changed | |
|
153 | [1] | |
|
154 | runcommand commit -Am. | |
|
155 | runcommand rollback | |
|
156 | repository tip rolled back to revision 3 (undo commit) | |
|
157 | working directory now based on revision 3 | |
|
158 | runcommand phase -r . | |
|
159 | 3: public | |
|
160 | ||
|
161 | testing branch: | |
|
162 | ||
|
163 | runcommand branch | |
|
164 | default | |
|
165 | marked working directory as branch foo | |
|
166 | (branches are permanent and global, did you want a bookmark?) | |
|
167 | runcommand branch | |
|
168 | foo | |
|
169 | marked working directory as branch default | |
|
170 | (branches are permanent and global, did you want a bookmark?) | |
|
171 | ||
|
172 | testing hgignore: | |
|
173 | ||
|
174 | runcommand commit -Am. | |
|
175 | adding .hgignore | |
|
176 | runcommand status -i -u | |
|
177 | I ignored-file | |
|
178 | ||
|
179 | testing phasecacheafterstrip: | |
|
180 | ||
|
181 | runcommand update -C 0 | |
|
182 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
183 | (leaving bookmark bm3) | |
|
184 | runcommand commit -Am. a | |
|
185 | created new head | |
|
186 | runcommand log -Gq | |
|
187 | @ 5:731265503d86 | |
|
188 | | | |
|
189 | | o 4:7966c8e3734d | |
|
190 | | | | |
|
191 | | o 3:b9b85890c400 | |
|
192 | | | | |
|
193 | | o 2:aef17e88f5f0 | |
|
194 | | | | |
|
195 | | o 1:d3a0a68be6de | |
|
196 | |/ | |
|
197 | o 0:eff892de26ec | |
|
198 | ||
|
199 | runcommand phase -p . | |
|
200 | runcommand phase . | |
|
201 | 5: public | |
|
202 | runcommand branches | |
|
203 | default 1:731265503d86 | |
|
204 | ||
|
205 | testing obsolete: | |
|
206 | ||
|
207 | runcommand up null | |
|
208 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
209 | runcommand phase -df tip | |
|
210 | runcommand log --hidden | |
|
211 | changeset: 1:731265503d86 | |
|
212 | tag: tip | |
|
213 | user: test | |
|
214 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
215 | summary: . | |
|
216 | ||
|
217 | changeset: 0:eff892de26ec | |
|
218 | bookmark: bm1 | |
|
219 | bookmark: bm2 | |
|
220 | bookmark: bm3 | |
|
221 | user: test | |
|
222 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
223 | summary: 1 | |
|
224 | ||
|
225 | runcommand log | |
|
226 | changeset: 0:eff892de26ec | |
|
227 | bookmark: bm1 | |
|
228 | bookmark: bm2 | |
|
229 | bookmark: bm3 | |
|
230 | tag: tip | |
|
231 | user: test | |
|
232 | date: Thu Jan 01 00:00:00 1970 +0000 | |
|
233 | summary: 1 | |
|
234 | ||
|
235 | ||
|
236 | testing mqoutsidechanges: | |
|
237 | ||
|
238 | runcommand qapplied | |
|
239 | runcommand qapplied | |
|
240 | 0.diff | |
|
241 | runcommand qpop --all | |
|
242 | popping 0.diff | |
|
243 | patch queue now empty | |
|
244 | runcommand qqueue --active | |
|
245 | foo | |
|
246 | ||
|
247 | testing getpass: | |
|
248 | ||
|
249 | runcommand debuggetpass --config ui.interactive=True | |
|
250 | password: 1234 | |
|
251 | ||
|
252 | testing hellomessage: | |
|
253 | ||
|
254 | o, 'capabilities: getencoding runcommand\nencoding: ***' | |
|
255 | runcommand id | |
|
256 | abort: there is no Mercurial repository here (.hg not found) | |
|
257 | [255] | |
|
258 | ||
|
259 | testing startwithoutrepo: | |
|
260 | ||
|
261 | runcommand init repo2 | |
|
262 | runcommand id -R repo2 | |
|
263 | 000000000000 tip |
General Comments 0
You need to be logged in to leave comments.
Login now