##// END OF EJS Templates
rhg: Add debug timing...
Antoine Cezar -
r46101:b1cea0dc default
parent child Browse files
Show More
@@ -1,813 +1,816
1 1 # This file is automatically @generated by Cargo.
2 2 # It is not intended for manual editing.
3 3 [[package]]
4 4 name = "adler"
5 5 version = "0.2.3"
6 6 source = "registry+https://github.com/rust-lang/crates.io-index"
7 7
8 8 [[package]]
9 9 name = "aho-corasick"
10 10 version = "0.7.13"
11 11 source = "registry+https://github.com/rust-lang/crates.io-index"
12 12 dependencies = [
13 13 "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
14 14 ]
15 15
16 16 [[package]]
17 17 name = "ansi_term"
18 18 version = "0.11.0"
19 19 source = "registry+https://github.com/rust-lang/crates.io-index"
20 20 dependencies = [
21 21 "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
22 22 ]
23 23
24 24 [[package]]
25 25 name = "atty"
26 26 version = "0.2.14"
27 27 source = "registry+https://github.com/rust-lang/crates.io-index"
28 28 dependencies = [
29 29 "hermit-abi 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)",
30 30 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
31 31 "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
32 32 ]
33 33
34 34 [[package]]
35 35 name = "autocfg"
36 36 version = "1.0.1"
37 37 source = "registry+https://github.com/rust-lang/crates.io-index"
38 38
39 39 [[package]]
40 40 name = "bitflags"
41 41 version = "1.2.1"
42 42 source = "registry+https://github.com/rust-lang/crates.io-index"
43 43
44 44 [[package]]
45 45 name = "byteorder"
46 46 version = "1.3.4"
47 47 source = "registry+https://github.com/rust-lang/crates.io-index"
48 48
49 49 [[package]]
50 50 name = "cc"
51 51 version = "1.0.60"
52 52 source = "registry+https://github.com/rust-lang/crates.io-index"
53 53 dependencies = [
54 54 "jobserver 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)",
55 55 ]
56 56
57 57 [[package]]
58 58 name = "cfg-if"
59 59 version = "0.1.10"
60 60 source = "registry+https://github.com/rust-lang/crates.io-index"
61 61
62 62 [[package]]
63 63 name = "clap"
64 64 version = "2.33.3"
65 65 source = "registry+https://github.com/rust-lang/crates.io-index"
66 66 dependencies = [
67 67 "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
68 68 "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
69 69 "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
70 70 "strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
71 71 "textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
72 72 "unicode-width 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
73 73 "vec_map 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
74 74 ]
75 75
76 76 [[package]]
77 77 name = "cpython"
78 78 version = "0.4.1"
79 79 source = "registry+https://github.com/rust-lang/crates.io-index"
80 80 dependencies = [
81 81 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
82 82 "num-traits 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)",
83 83 "python27-sys 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
84 84 "python3-sys 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
85 85 ]
86 86
87 87 [[package]]
88 88 name = "crc32fast"
89 89 version = "1.2.0"
90 90 source = "registry+https://github.com/rust-lang/crates.io-index"
91 91 dependencies = [
92 92 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
93 93 ]
94 94
95 95 [[package]]
96 96 name = "crossbeam"
97 97 version = "0.7.3"
98 98 source = "registry+https://github.com/rust-lang/crates.io-index"
99 99 dependencies = [
100 100 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
101 101 "crossbeam-channel 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
102 102 "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
103 103 "crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
104 104 "crossbeam-queue 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
105 105 "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
106 106 ]
107 107
108 108 [[package]]
109 109 name = "crossbeam-channel"
110 110 version = "0.4.4"
111 111 source = "registry+https://github.com/rust-lang/crates.io-index"
112 112 dependencies = [
113 113 "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
114 114 "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
115 115 ]
116 116
117 117 [[package]]
118 118 name = "crossbeam-deque"
119 119 version = "0.7.3"
120 120 source = "registry+https://github.com/rust-lang/crates.io-index"
121 121 dependencies = [
122 122 "crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
123 123 "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
124 124 "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
125 125 ]
126 126
127 127 [[package]]
128 128 name = "crossbeam-epoch"
129 129 version = "0.8.2"
130 130 source = "registry+https://github.com/rust-lang/crates.io-index"
131 131 dependencies = [
132 132 "autocfg 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
133 133 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
134 134 "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
135 135 "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
136 136 "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
137 137 "memoffset 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)",
138 138 "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
139 139 ]
140 140
141 141 [[package]]
142 142 name = "crossbeam-queue"
143 143 version = "0.2.3"
144 144 source = "registry+https://github.com/rust-lang/crates.io-index"
145 145 dependencies = [
146 146 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
147 147 "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
148 148 "maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
149 149 ]
150 150
151 151 [[package]]
152 152 name = "crossbeam-utils"
153 153 version = "0.7.2"
154 154 source = "registry+https://github.com/rust-lang/crates.io-index"
155 155 dependencies = [
156 156 "autocfg 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
157 157 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
158 158 "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
159 159 ]
160 160
161 161 [[package]]
162 162 name = "ctor"
163 163 version = "0.1.16"
164 164 source = "registry+https://github.com/rust-lang/crates.io-index"
165 165 dependencies = [
166 166 "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)",
167 167 "syn 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)",
168 168 ]
169 169
170 170 [[package]]
171 171 name = "difference"
172 172 version = "2.0.0"
173 173 source = "registry+https://github.com/rust-lang/crates.io-index"
174 174
175 175 [[package]]
176 176 name = "either"
177 177 version = "1.6.1"
178 178 source = "registry+https://github.com/rust-lang/crates.io-index"
179 179
180 180 [[package]]
181 181 name = "env_logger"
182 182 version = "0.7.1"
183 183 source = "registry+https://github.com/rust-lang/crates.io-index"
184 184 dependencies = [
185 185 "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)",
186 186 "humantime 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
187 187 "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
188 188 "regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
189 189 "termcolor 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
190 190 ]
191 191
192 192 [[package]]
193 193 name = "flate2"
194 194 version = "1.0.17"
195 195 source = "registry+https://github.com/rust-lang/crates.io-index"
196 196 dependencies = [
197 197 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
198 198 "crc32fast 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
199 199 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
200 200 "libz-sys 1.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
201 201 "miniz_oxide 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
202 202 ]
203 203
204 204 [[package]]
205 205 name = "getrandom"
206 206 version = "0.1.15"
207 207 source = "registry+https://github.com/rust-lang/crates.io-index"
208 208 dependencies = [
209 209 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
210 210 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
211 211 "wasi 0.9.0+wasi-snapshot-preview1 (registry+https://github.com/rust-lang/crates.io-index)",
212 212 ]
213 213
214 214 [[package]]
215 215 name = "glob"
216 216 version = "0.3.0"
217 217 source = "registry+https://github.com/rust-lang/crates.io-index"
218 218
219 219 [[package]]
220 220 name = "hermit-abi"
221 221 version = "0.1.16"
222 222 source = "registry+https://github.com/rust-lang/crates.io-index"
223 223 dependencies = [
224 224 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
225 225 ]
226 226
227 227 [[package]]
228 228 name = "hex"
229 229 version = "0.4.2"
230 230 source = "registry+https://github.com/rust-lang/crates.io-index"
231 231
232 232 [[package]]
233 233 name = "hg-core"
234 234 version = "0.1.0"
235 235 dependencies = [
236 236 "byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)",
237 237 "clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)",
238 238 "crossbeam 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
239 239 "flate2 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)",
240 240 "hex 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
241 241 "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
242 242 "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
243 243 "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
244 244 "memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
245 245 "micro-timer 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
246 246 "pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
247 247 "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
248 248 "rand_distr 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
249 249 "rand_pcg 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
250 250 "rayon 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
251 251 "regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
252 252 "same-file 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
253 253 "tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
254 254 "twox-hash 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
255 255 "zstd 0.5.3+zstd.1.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
256 256 ]
257 257
258 258 [[package]]
259 259 name = "hg-cpython"
260 260 version = "0.1.0"
261 261 dependencies = [
262 262 "cpython 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
263 263 "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
264 264 "hg-core 0.1.0",
265 265 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
266 266 "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
267 267 ]
268 268
269 269 [[package]]
270 270 name = "humantime"
271 271 version = "1.3.0"
272 272 source = "registry+https://github.com/rust-lang/crates.io-index"
273 273 dependencies = [
274 274 "quick-error 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
275 275 ]
276 276
277 277 [[package]]
278 278 name = "itertools"
279 279 version = "0.9.0"
280 280 source = "registry+https://github.com/rust-lang/crates.io-index"
281 281 dependencies = [
282 282 "either 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
283 283 ]
284 284
285 285 [[package]]
286 286 name = "jobserver"
287 287 version = "0.1.21"
288 288 source = "registry+https://github.com/rust-lang/crates.io-index"
289 289 dependencies = [
290 290 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
291 291 ]
292 292
293 293 [[package]]
294 294 name = "lazy_static"
295 295 version = "1.4.0"
296 296 source = "registry+https://github.com/rust-lang/crates.io-index"
297 297
298 298 [[package]]
299 299 name = "libc"
300 300 version = "0.2.77"
301 301 source = "registry+https://github.com/rust-lang/crates.io-index"
302 302
303 303 [[package]]
304 304 name = "libz-sys"
305 305 version = "1.1.2"
306 306 source = "registry+https://github.com/rust-lang/crates.io-index"
307 307 dependencies = [
308 308 "cc 1.0.60 (registry+https://github.com/rust-lang/crates.io-index)",
309 309 "pkg-config 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)",
310 310 "vcpkg 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
311 311 ]
312 312
313 313 [[package]]
314 314 name = "log"
315 315 version = "0.4.11"
316 316 source = "registry+https://github.com/rust-lang/crates.io-index"
317 317 dependencies = [
318 318 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
319 319 ]
320 320
321 321 [[package]]
322 322 name = "maybe-uninit"
323 323 version = "2.0.0"
324 324 source = "registry+https://github.com/rust-lang/crates.io-index"
325 325
326 326 [[package]]
327 327 name = "memchr"
328 328 version = "2.3.3"
329 329 source = "registry+https://github.com/rust-lang/crates.io-index"
330 330
331 331 [[package]]
332 332 name = "memmap"
333 333 version = "0.7.0"
334 334 source = "registry+https://github.com/rust-lang/crates.io-index"
335 335 dependencies = [
336 336 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
337 337 "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
338 338 ]
339 339
340 340 [[package]]
341 341 name = "memoffset"
342 342 version = "0.5.6"
343 343 source = "registry+https://github.com/rust-lang/crates.io-index"
344 344 dependencies = [
345 345 "autocfg 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
346 346 ]
347 347
348 348 [[package]]
349 349 name = "micro-timer"
350 350 version = "0.3.1"
351 351 source = "registry+https://github.com/rust-lang/crates.io-index"
352 352 dependencies = [
353 353 "micro-timer-macros 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
354 354 "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
355 355 ]
356 356
357 357 [[package]]
358 358 name = "micro-timer-macros"
359 359 version = "0.3.1"
360 360 source = "registry+https://github.com/rust-lang/crates.io-index"
361 361 dependencies = [
362 362 "proc-macro2 1.0.21 (registry+https://github.com/rust-lang/crates.io-index)",
363 363 "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)",
364 364 "scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
365 365 "syn 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)",
366 366 ]
367 367
368 368 [[package]]
369 369 name = "miniz_oxide"
370 370 version = "0.4.2"
371 371 source = "registry+https://github.com/rust-lang/crates.io-index"
372 372 dependencies = [
373 373 "adler 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
374 374 "autocfg 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
375 375 ]
376 376
377 377 [[package]]
378 378 name = "num-traits"
379 379 version = "0.2.12"
380 380 source = "registry+https://github.com/rust-lang/crates.io-index"
381 381 dependencies = [
382 382 "autocfg 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
383 383 ]
384 384
385 385 [[package]]
386 386 name = "num_cpus"
387 387 version = "1.13.0"
388 388 source = "registry+https://github.com/rust-lang/crates.io-index"
389 389 dependencies = [
390 390 "hermit-abi 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)",
391 391 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
392 392 ]
393 393
394 394 [[package]]
395 395 name = "output_vt100"
396 396 version = "0.1.2"
397 397 source = "registry+https://github.com/rust-lang/crates.io-index"
398 398 dependencies = [
399 399 "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
400 400 ]
401 401
402 402 [[package]]
403 403 name = "pkg-config"
404 404 version = "0.3.18"
405 405 source = "registry+https://github.com/rust-lang/crates.io-index"
406 406
407 407 [[package]]
408 408 name = "ppv-lite86"
409 409 version = "0.2.9"
410 410 source = "registry+https://github.com/rust-lang/crates.io-index"
411 411
412 412 [[package]]
413 413 name = "pretty_assertions"
414 414 version = "0.6.1"
415 415 source = "registry+https://github.com/rust-lang/crates.io-index"
416 416 dependencies = [
417 417 "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
418 418 "ctor 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)",
419 419 "difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
420 420 "output_vt100 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
421 421 ]
422 422
423 423 [[package]]
424 424 name = "proc-macro2"
425 425 version = "1.0.21"
426 426 source = "registry+https://github.com/rust-lang/crates.io-index"
427 427 dependencies = [
428 428 "unicode-xid 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
429 429 ]
430 430
431 431 [[package]]
432 432 name = "python27-sys"
433 433 version = "0.4.1"
434 434 source = "registry+https://github.com/rust-lang/crates.io-index"
435 435 dependencies = [
436 436 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
437 437 "regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
438 438 ]
439 439
440 440 [[package]]
441 441 name = "python3-sys"
442 442 version = "0.4.1"
443 443 source = "registry+https://github.com/rust-lang/crates.io-index"
444 444 dependencies = [
445 445 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
446 446 "regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
447 447 ]
448 448
449 449 [[package]]
450 450 name = "quick-error"
451 451 version = "1.2.3"
452 452 source = "registry+https://github.com/rust-lang/crates.io-index"
453 453
454 454 [[package]]
455 455 name = "quote"
456 456 version = "1.0.7"
457 457 source = "registry+https://github.com/rust-lang/crates.io-index"
458 458 dependencies = [
459 459 "proc-macro2 1.0.21 (registry+https://github.com/rust-lang/crates.io-index)",
460 460 ]
461 461
462 462 [[package]]
463 463 name = "rand"
464 464 version = "0.7.3"
465 465 source = "registry+https://github.com/rust-lang/crates.io-index"
466 466 dependencies = [
467 467 "getrandom 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)",
468 468 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
469 469 "rand_chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
470 470 "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
471 471 "rand_hc 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
472 472 ]
473 473
474 474 [[package]]
475 475 name = "rand_chacha"
476 476 version = "0.2.2"
477 477 source = "registry+https://github.com/rust-lang/crates.io-index"
478 478 dependencies = [
479 479 "ppv-lite86 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)",
480 480 "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
481 481 ]
482 482
483 483 [[package]]
484 484 name = "rand_core"
485 485 version = "0.5.1"
486 486 source = "registry+https://github.com/rust-lang/crates.io-index"
487 487 dependencies = [
488 488 "getrandom 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)",
489 489 ]
490 490
491 491 [[package]]
492 492 name = "rand_distr"
493 493 version = "0.2.2"
494 494 source = "registry+https://github.com/rust-lang/crates.io-index"
495 495 dependencies = [
496 496 "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
497 497 ]
498 498
499 499 [[package]]
500 500 name = "rand_hc"
501 501 version = "0.2.0"
502 502 source = "registry+https://github.com/rust-lang/crates.io-index"
503 503 dependencies = [
504 504 "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
505 505 ]
506 506
507 507 [[package]]
508 508 name = "rand_pcg"
509 509 version = "0.2.1"
510 510 source = "registry+https://github.com/rust-lang/crates.io-index"
511 511 dependencies = [
512 512 "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
513 513 ]
514 514
515 515 [[package]]
516 516 name = "rayon"
517 517 version = "1.4.0"
518 518 source = "registry+https://github.com/rust-lang/crates.io-index"
519 519 dependencies = [
520 520 "autocfg 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
521 521 "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
522 522 "either 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
523 523 "rayon-core 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)",
524 524 ]
525 525
526 526 [[package]]
527 527 name = "rayon-core"
528 528 version = "1.8.1"
529 529 source = "registry+https://github.com/rust-lang/crates.io-index"
530 530 dependencies = [
531 531 "crossbeam-channel 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
532 532 "crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
533 533 "crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)",
534 534 "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
535 535 "num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)",
536 536 ]
537 537
538 538 [[package]]
539 539 name = "redox_syscall"
540 540 version = "0.1.57"
541 541 source = "registry+https://github.com/rust-lang/crates.io-index"
542 542
543 543 [[package]]
544 544 name = "regex"
545 545 version = "1.3.9"
546 546 source = "registry+https://github.com/rust-lang/crates.io-index"
547 547 dependencies = [
548 548 "aho-corasick 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)",
549 549 "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
550 550 "regex-syntax 0.6.18 (registry+https://github.com/rust-lang/crates.io-index)",
551 551 "thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
552 552 ]
553 553
554 554 [[package]]
555 555 name = "regex-syntax"
556 556 version = "0.6.18"
557 557 source = "registry+https://github.com/rust-lang/crates.io-index"
558 558
559 559 [[package]]
560 560 name = "remove_dir_all"
561 561 version = "0.5.3"
562 562 source = "registry+https://github.com/rust-lang/crates.io-index"
563 563 dependencies = [
564 564 "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
565 565 ]
566 566
567 567 [[package]]
568 568 name = "rhg"
569 569 version = "0.1.0"
570 570 dependencies = [
571 571 "clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)",
572 "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
572 573 "hg-core 0.1.0",
574 "log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)",
575 "micro-timer 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
573 576 ]
574 577
575 578 [[package]]
576 579 name = "same-file"
577 580 version = "1.0.6"
578 581 source = "registry+https://github.com/rust-lang/crates.io-index"
579 582 dependencies = [
580 583 "winapi-util 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
581 584 ]
582 585
583 586 [[package]]
584 587 name = "scopeguard"
585 588 version = "1.1.0"
586 589 source = "registry+https://github.com/rust-lang/crates.io-index"
587 590
588 591 [[package]]
589 592 name = "strsim"
590 593 version = "0.8.0"
591 594 source = "registry+https://github.com/rust-lang/crates.io-index"
592 595
593 596 [[package]]
594 597 name = "syn"
595 598 version = "1.0.41"
596 599 source = "registry+https://github.com/rust-lang/crates.io-index"
597 600 dependencies = [
598 601 "proc-macro2 1.0.21 (registry+https://github.com/rust-lang/crates.io-index)",
599 602 "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)",
600 603 "unicode-xid 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
601 604 ]
602 605
603 606 [[package]]
604 607 name = "tempfile"
605 608 version = "3.1.0"
606 609 source = "registry+https://github.com/rust-lang/crates.io-index"
607 610 dependencies = [
608 611 "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
609 612 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
610 613 "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
611 614 "redox_syscall 0.1.57 (registry+https://github.com/rust-lang/crates.io-index)",
612 615 "remove_dir_all 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
613 616 "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
614 617 ]
615 618
616 619 [[package]]
617 620 name = "termcolor"
618 621 version = "1.1.0"
619 622 source = "registry+https://github.com/rust-lang/crates.io-index"
620 623 dependencies = [
621 624 "winapi-util 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
622 625 ]
623 626
624 627 [[package]]
625 628 name = "textwrap"
626 629 version = "0.11.0"
627 630 source = "registry+https://github.com/rust-lang/crates.io-index"
628 631 dependencies = [
629 632 "unicode-width 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)",
630 633 ]
631 634
632 635 [[package]]
633 636 name = "thread_local"
634 637 version = "1.0.1"
635 638 source = "registry+https://github.com/rust-lang/crates.io-index"
636 639 dependencies = [
637 640 "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
638 641 ]
639 642
640 643 [[package]]
641 644 name = "twox-hash"
642 645 version = "1.5.0"
643 646 source = "registry+https://github.com/rust-lang/crates.io-index"
644 647 dependencies = [
645 648 "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)",
646 649 ]
647 650
648 651 [[package]]
649 652 name = "unicode-width"
650 653 version = "0.1.8"
651 654 source = "registry+https://github.com/rust-lang/crates.io-index"
652 655
653 656 [[package]]
654 657 name = "unicode-xid"
655 658 version = "0.2.1"
656 659 source = "registry+https://github.com/rust-lang/crates.io-index"
657 660
658 661 [[package]]
659 662 name = "vcpkg"
660 663 version = "0.2.10"
661 664 source = "registry+https://github.com/rust-lang/crates.io-index"
662 665
663 666 [[package]]
664 667 name = "vec_map"
665 668 version = "0.8.2"
666 669 source = "registry+https://github.com/rust-lang/crates.io-index"
667 670
668 671 [[package]]
669 672 name = "wasi"
670 673 version = "0.9.0+wasi-snapshot-preview1"
671 674 source = "registry+https://github.com/rust-lang/crates.io-index"
672 675
673 676 [[package]]
674 677 name = "winapi"
675 678 version = "0.3.9"
676 679 source = "registry+https://github.com/rust-lang/crates.io-index"
677 680 dependencies = [
678 681 "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
679 682 "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
680 683 ]
681 684
682 685 [[package]]
683 686 name = "winapi-i686-pc-windows-gnu"
684 687 version = "0.4.0"
685 688 source = "registry+https://github.com/rust-lang/crates.io-index"
686 689
687 690 [[package]]
688 691 name = "winapi-util"
689 692 version = "0.1.5"
690 693 source = "registry+https://github.com/rust-lang/crates.io-index"
691 694 dependencies = [
692 695 "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
693 696 ]
694 697
695 698 [[package]]
696 699 name = "winapi-x86_64-pc-windows-gnu"
697 700 version = "0.4.0"
698 701 source = "registry+https://github.com/rust-lang/crates.io-index"
699 702
700 703 [[package]]
701 704 name = "zstd"
702 705 version = "0.5.3+zstd.1.4.5"
703 706 source = "registry+https://github.com/rust-lang/crates.io-index"
704 707 dependencies = [
705 708 "zstd-safe 2.0.5+zstd.1.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
706 709 ]
707 710
708 711 [[package]]
709 712 name = "zstd-safe"
710 713 version = "2.0.5+zstd.1.4.5"
711 714 source = "registry+https://github.com/rust-lang/crates.io-index"
712 715 dependencies = [
713 716 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
714 717 "zstd-sys 1.4.17+zstd.1.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
715 718 ]
716 719
717 720 [[package]]
718 721 name = "zstd-sys"
719 722 version = "1.4.17+zstd.1.4.5"
720 723 source = "registry+https://github.com/rust-lang/crates.io-index"
721 724 dependencies = [
722 725 "cc 1.0.60 (registry+https://github.com/rust-lang/crates.io-index)",
723 726 "glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
724 727 "itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
725 728 "libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)",
726 729 ]
727 730
728 731 [metadata]
729 732 "checksum adler 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e"
730 733 "checksum aho-corasick 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)" = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86"
731 734 "checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b"
732 735 "checksum atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
733 736 "checksum autocfg 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
734 737 "checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
735 738 "checksum byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
736 739 "checksum cc 1.0.60 (registry+https://github.com/rust-lang/crates.io-index)" = "ef611cc68ff783f18535d77ddd080185275713d852c4f5cbb6122c462a7a825c"
737 740 "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
738 741 "checksum clap 2.33.3 (registry+https://github.com/rust-lang/crates.io-index)" = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002"
739 742 "checksum cpython 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bfaf3847ab963e40c4f6dd8d6be279bdf74007ae2413786a0dcbb28c52139a95"
740 743 "checksum crc32fast 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ba125de2af0df55319f41944744ad91c71113bf74a4646efff39afe1f6842db1"
741 744 "checksum crossbeam 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "69323bff1fb41c635347b8ead484a5ca6c3f11914d784170b158d8449ab07f8e"
742 745 "checksum crossbeam-channel 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b153fe7cbef478c567df0f972e02e6d736db11affe43dfc9c56a9374d1adfb87"
743 746 "checksum crossbeam-deque 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "9f02af974daeee82218205558e51ec8768b48cf524bd01d550abe5573a608285"
744 747 "checksum crossbeam-epoch 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "058ed274caafc1f60c4997b5fc07bf7dc7cca454af7c6e81edffe5f33f70dace"
745 748 "checksum crossbeam-queue 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "774ba60a54c213d409d5353bda12d49cd68d14e45036a285234c8d6f91f92570"
746 749 "checksum crossbeam-utils 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
747 750 "checksum ctor 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "7fbaabec2c953050352311293be5c6aba8e141ba19d6811862b232d6fd020484"
748 751 "checksum difference 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
749 752 "checksum either 1.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
750 753 "checksum env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
751 754 "checksum flate2 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)" = "766d0e77a2c1502169d4a93ff3b8c15a71fd946cd0126309752104e5f3c46d94"
752 755 "checksum getrandom 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "fc587bc0ec293155d5bfa6b9891ec18a1e330c234f896ea47fbada4cadbe47e6"
753 756 "checksum glob 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
754 757 "checksum hermit-abi 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "4c30f6d0bc6b00693347368a67d41b58f2fb851215ff1da49e90fe2c5c667151"
755 758 "checksum hex 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35"
756 759 "checksum humantime 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f"
757 760 "checksum itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b"
758 761 "checksum jobserver 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2"
759 762 "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
760 763 "checksum libc 0.2.77 (registry+https://github.com/rust-lang/crates.io-index)" = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235"
761 764 "checksum libz-sys 1.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655"
762 765 "checksum log 0.4.11 (registry+https://github.com/rust-lang/crates.io-index)" = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
763 766 "checksum maybe-uninit 2.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
764 767 "checksum memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
765 768 "checksum memmap 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
766 769 "checksum memoffset 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa"
767 770 "checksum micro-timer 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2620153e1d903d26b72b89f0e9c48d8c4756cba941c185461dddc234980c298c"
768 771 "checksum micro-timer-macros 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e28a3473e6abd6e9aab36aaeef32ad22ae0bd34e79f376643594c2b152ec1c5d"
769 772 "checksum miniz_oxide 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c60c0dfe32c10b43a144bad8fc83538c52f58302c92300ea7ec7bf7b38d5a7b9"
770 773 "checksum num-traits 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611"
771 774 "checksum num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)" = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3"
772 775 "checksum output_vt100 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9"
773 776 "checksum pkg-config 0.3.18 (registry+https://github.com/rust-lang/crates.io-index)" = "d36492546b6af1463394d46f0c834346f31548646f6ba10849802c9c9a27ac33"
774 777 "checksum ppv-lite86 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "c36fa947111f5c62a733b652544dd0016a43ce89619538a8ef92724a6f501a20"
775 778 "checksum pretty_assertions 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427"
776 779 "checksum proc-macro2 1.0.21 (registry+https://github.com/rust-lang/crates.io-index)" = "36e28516df94f3dd551a587da5357459d9b36d945a7c37c3557928c1c2ff2a2c"
777 780 "checksum python27-sys 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "67cb041de8615111bf224dd75667af5f25c6e032118251426fed7f1b70ce4c8c"
778 781 "checksum python3-sys 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90af11779515a1e530af60782d273b59ac79d33b0e253c071a728563957c76d4"
779 782 "checksum quick-error 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
780 783 "checksum quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37"
781 784 "checksum rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
782 785 "checksum rand_chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
783 786 "checksum rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
784 787 "checksum rand_distr 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "96977acbdd3a6576fb1d27391900035bf3863d4a16422973a409b488cf29ffb2"
785 788 "checksum rand_hc 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
786 789 "checksum rand_pcg 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429"
787 790 "checksum rayon 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cfd016f0c045ad38b5251be2c9c0ab806917f82da4d36b2a327e5166adad9270"
788 791 "checksum rayon-core 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "e8c4fec834fb6e6d2dd5eece3c7b432a52f0ba887cf40e595190c4107edc08bf"
789 792 "checksum redox_syscall 0.1.57 (registry+https://github.com/rust-lang/crates.io-index)" = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
790 793 "checksum regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6"
791 794 "checksum regex-syntax 0.6.18 (registry+https://github.com/rust-lang/crates.io-index)" = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8"
792 795 "checksum remove_dir_all 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
793 796 "checksum same-file 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
794 797 "checksum scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
795 798 "checksum strsim 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
796 799 "checksum syn 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)" = "6690e3e9f692504b941dc6c3b188fd28df054f7fb8469ab40680df52fdcc842b"
797 800 "checksum tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9"
798 801 "checksum termcolor 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f"
799 802 "checksum textwrap 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
800 803 "checksum thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
801 804 "checksum twox-hash 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3bfd5b7557925ce778ff9b9ef90e3ade34c524b5ff10e239c69a42d546d2af56"
802 805 "checksum unicode-width 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3"
803 806 "checksum unicode-xid 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"
804 807 "checksum vcpkg 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c"
805 808 "checksum vec_map 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
806 809 "checksum wasi 0.9.0+wasi-snapshot-preview1 (registry+https://github.com/rust-lang/crates.io-index)" = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
807 810 "checksum winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
808 811 "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
809 812 "checksum winapi-util 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
810 813 "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
811 814 "checksum zstd 0.5.3+zstd.1.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "01b32eaf771efa709e8308605bbf9319bf485dc1503179ec0469b611937c0cd8"
812 815 "checksum zstd-safe 2.0.5+zstd.1.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "1cfb642e0d27f64729a639c52db457e0ae906e7bc6f5fe8f5c453230400f1055"
813 816 "checksum zstd-sys 1.4.17+zstd.1.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "b89249644df056b522696b1bb9e7c18c87e8ffa3e2f0dc3b0155875d6498f01b"
@@ -1,10 +1,12
1 1 [package]
2 2 name = "rhg"
3 3 version = "0.1.0"
4 4 authors = ["Antoine Cezar <antoine.cezar@octobus.net>"]
5 5 edition = "2018"
6 6
7 7 [dependencies]
8 8 hg-core = { path = "../hg-core"}
9 9 clap = "2.33.1"
10
10 log = "0.4.11"
11 micro-timer = "0.3.1"
12 env_logger = "0.7.1"
@@ -1,80 +1,82
1 1 use crate::commands::Command;
2 2 use crate::error::{CommandError, CommandErrorKind};
3 3 use crate::ui::utf8_to_local;
4 4 use crate::ui::Ui;
5 5 use hg::operations::{
6 6 DebugData, DebugDataError, DebugDataErrorKind, DebugDataKind,
7 7 };
8 use micro_timer::timed;
8 9
9 10 pub const HELP_TEXT: &str = "
10 11 Dump the contents of a data file revision
11 12 ";
12 13
13 14 pub struct DebugDataCommand<'a> {
14 15 rev: &'a str,
15 16 kind: DebugDataKind,
16 17 }
17 18
18 19 impl<'a> DebugDataCommand<'a> {
19 20 pub fn new(rev: &'a str, kind: DebugDataKind) -> Self {
20 21 DebugDataCommand { rev, kind }
21 22 }
22 23 }
23 24
24 25 impl<'a> Command for DebugDataCommand<'a> {
26 #[timed]
25 27 fn run(&self, ui: &Ui) -> Result<(), CommandError> {
26 28 let mut operation = DebugData::new(self.rev, self.kind);
27 29 let data =
28 30 operation.run().map_err(|e| to_command_error(self.rev, e))?;
29 31
30 32 let mut stdout = ui.stdout_buffer();
31 33 stdout.write_all(&data)?;
32 34 stdout.flush()?;
33 35
34 36 Ok(())
35 37 }
36 38 }
37 39
38 40 /// Convert operation errors to command errors
39 41 fn to_command_error(rev: &str, err: DebugDataError) -> CommandError {
40 42 match err.kind {
41 43 DebugDataErrorKind::FindRootError(err) => CommandError::from(err),
42 44 DebugDataErrorKind::IoError(err) => CommandError {
43 45 kind: CommandErrorKind::Abort(Some(
44 46 utf8_to_local(&format!("abort: {}\n", err)).into(),
45 47 )),
46 48 },
47 49 DebugDataErrorKind::InvalidRevision => CommandError {
48 50 kind: CommandErrorKind::Abort(Some(
49 51 utf8_to_local(&format!(
50 52 "abort: invalid revision identifier{}\n",
51 53 rev
52 54 ))
53 55 .into(),
54 56 )),
55 57 },
56 58 DebugDataErrorKind::UnsuportedRevlogVersion(version) => CommandError {
57 59 kind: CommandErrorKind::Abort(Some(
58 60 utf8_to_local(&format!(
59 61 "abort: unsupported revlog version {}\n",
60 62 version
61 63 ))
62 64 .into(),
63 65 )),
64 66 },
65 67 DebugDataErrorKind::CorruptedRevlog => CommandError {
66 68 kind: CommandErrorKind::Abort(Some(
67 69 "abort: corrupted revlog\n".into(),
68 70 )),
69 71 },
70 72 DebugDataErrorKind::UnknowRevlogDataFormat(format) => CommandError {
71 73 kind: CommandErrorKind::Abort(Some(
72 74 utf8_to_local(&format!(
73 75 "abort: unknow revlog dataformat {:?}\n",
74 76 format
75 77 ))
76 78 .into(),
77 79 )),
78 80 },
79 81 }
80 82 }
@@ -1,119 +1,121
1 extern crate log;
1 2 use clap::App;
2 3 use clap::AppSettings;
3 4 use clap::Arg;
4 5 use clap::ArgGroup;
5 6 use clap::ArgMatches;
6 7 use clap::SubCommand;
7 8 use hg::operations::DebugDataKind;
8 9 use std::convert::TryFrom;
9 10
10 11 mod commands;
11 12 mod error;
12 13 mod exitcode;
13 14 mod ui;
14 15 use commands::Command;
15 16 use error::CommandError;
16 17
17 18 fn main() {
19 env_logger::init();
18 20 let app = App::new("rhg")
19 21 .setting(AppSettings::AllowInvalidUtf8)
20 22 .setting(AppSettings::SubcommandRequired)
21 23 .setting(AppSettings::VersionlessSubcommands)
22 24 .version("0.0.1")
23 25 .subcommand(
24 26 SubCommand::with_name("root").about(commands::root::HELP_TEXT),
25 27 )
26 28 .subcommand(
27 29 SubCommand::with_name("files").about(commands::files::HELP_TEXT),
28 30 )
29 31 .subcommand(
30 32 SubCommand::with_name("debugdata")
31 33 .about(commands::debugdata::HELP_TEXT)
32 34 .arg(
33 35 Arg::with_name("changelog")
34 36 .help("open changelog")
35 37 .short("-c")
36 38 .long("--changelog"),
37 39 )
38 40 .arg(
39 41 Arg::with_name("manifest")
40 42 .help("open manifest")
41 43 .short("-m")
42 44 .long("--manifest"),
43 45 )
44 46 .group(
45 47 ArgGroup::with_name("")
46 48 .args(&["changelog", "manifest"])
47 49 .required(true),
48 50 )
49 51 .arg(
50 52 Arg::with_name("rev")
51 53 .help("revision")
52 54 .required(true)
53 55 .value_name("REV"),
54 56 ),
55 57 );
56 58
57 59 let matches = app.clone().get_matches_safe().unwrap_or_else(|err| {
58 60 let _ = ui::Ui::new().writeln_stderr_str(&err.message);
59 61 std::process::exit(exitcode::UNIMPLEMENTED_COMMAND)
60 62 });
61 63
62 64 let ui = ui::Ui::new();
63 65
64 66 let command_result = match_subcommand(matches, &ui);
65 67
66 68 match command_result {
67 69 Ok(_) => std::process::exit(exitcode::OK),
68 70 Err(e) => {
69 71 let message = e.get_error_message_bytes();
70 72 if let Some(msg) = message {
71 73 match ui.write_stderr(&msg) {
72 74 Ok(_) => (),
73 75 Err(_) => std::process::exit(exitcode::ABORT),
74 76 };
75 77 };
76 78 e.exit()
77 79 }
78 80 }
79 81 }
80 82
81 83 fn match_subcommand(
82 84 matches: ArgMatches,
83 85 ui: &ui::Ui,
84 86 ) -> Result<(), CommandError> {
85 87 match matches.subcommand() {
86 88 ("root", _) => commands::root::RootCommand::new().run(&ui),
87 89 ("files", _) => commands::files::FilesCommand::new().run(&ui),
88 90 ("debugdata", Some(matches)) => {
89 91 commands::debugdata::DebugDataCommand::try_from(matches)?.run(&ui)
90 92 }
91 93 _ => unreachable!(), // Because of AppSettings::SubcommandRequired,
92 94 }
93 95 }
94 96
95 97 impl<'a> TryFrom<&'a ArgMatches<'_>>
96 98 for commands::debugdata::DebugDataCommand<'a>
97 99 {
98 100 type Error = CommandError;
99 101
100 102 fn try_from(args: &'a ArgMatches) -> Result<Self, Self::Error> {
101 103 let rev = args
102 104 .value_of("rev")
103 105 .expect("rev should be a required argument");
104 106 let kind = match (
105 107 args.is_present("changelog"),
106 108 args.is_present("manifest"),
107 109 ) {
108 110 (true, false) => DebugDataKind::Changelog,
109 111 (false, true) => DebugDataKind::Manifest,
110 112 (true, true) => {
111 113 unreachable!("Should not happen since options are exclusive")
112 114 }
113 115 (false, false) => {
114 116 unreachable!("Should not happen since options are required")
115 117 }
116 118 };
117 119 Ok(commands::debugdata::DebugDataCommand::new(rev, kind))
118 120 }
119 121 }
General Comments 0
You need to be logged in to leave comments. Login now