##// END OF EJS Templates
tests: make test-alias.t pass with re2...
Valentin Gatien-Baron -
r40708:557d3509 default
parent child Browse files
Show More
@@ -1,718 +1,718 b''
1 1 $ HGFOO=BAR; export HGFOO
2 2 $ cat >> $HGRCPATH <<EOF
3 3 > [alias]
4 4 > # should clobber ci but not commit (issue2993)
5 5 > ci = version
6 6 > myinit = init
7 7 > myinit:doc = This is my documented alias for init.
8 8 > myinit:help = [OPTIONS] [BLA] [BLE]
9 9 > mycommit = commit
10 10 > mycommit:doc = This is my alias with only doc.
11 11 > optionalrepo = showconfig alias.myinit
12 12 > cleanstatus = status -c
13 13 > cleanstatus:help = [ONLYHELPHERE]
14 14 > unknown = bargle
15 15 > ambiguous = s
16 16 > recursive = recursive
17 17 > disabled = email
18 18 > nodefinition =
19 19 > noclosingquotation = '
20 20 > no--cwd = status --cwd elsewhere
21 21 > no-R = status -R elsewhere
22 22 > no--repo = status --repo elsewhere
23 23 > no--repository = status --repository elsewhere
24 24 > no--config = status --config a.config=1
25 25 > mylog = log
26 26 > lognull = log -r null
27 27 > lognull:doc = Logs the null rev
28 28 > lognull:help = foo bar baz
29 29 > shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
30 30 > positional = log --template '{\$2} {\$1} | {date|isodate}\n'
31 31 > dln = lognull --debug
32 32 > recursivedoc = dln
33 33 > recursivedoc:doc = Logs the null rev in debug mode
34 34 > nousage = rollback
35 35 > put = export -r 0 -o "\$FOO/%R.diff"
36 36 > blank = !printf '\n'
37 37 > self = !printf '\$0\n'
38 38 > echoall = !printf '\$@\n'
39 39 > echo1 = !printf '\$1\n'
40 40 > echo2 = !printf '\$2\n'
41 41 > echo13 = !printf '\$1 \$3\n'
42 42 > echotokens = !printf "%s\n" "\$@"
43 43 > count = !hg log -r "\$@" --template=. | wc -c | sed -e 's/ //g'
44 44 > mcount = !hg log \$@ --template=. | wc -c | sed -e 's/ //g'
45 45 > rt = root
46 46 > tglog = log -G --template "{rev}:{node|short}: '{desc}' {branches}\n"
47 47 > idalias = id
48 48 > idaliaslong = id
49 49 > idaliasshell = !echo test
50 50 > parentsshell1 = !echo one
51 51 > parentsshell2 = !echo two
52 52 > escaped1 = !printf 'test\$\$test\n'
53 53 > escaped2 = !sh -c 'echo "HGFOO is \$\$HGFOO"'
54 54 > escaped3 = !sh -c 'echo "\$1 is \$\$\$1"'
55 55 > escaped4 = !printf '\$\$0 \$\$@\n'
56 56 > exit1 = !sh -c 'exit 1'
57 57 >
58 58 > [defaults]
59 59 > mylog = -q
60 60 > lognull = -q
61 61 > log = -v
62 62 > EOF
63 63
64 64 basic
65 65
66 66 $ hg myinit alias
67 67
68 68 help
69 69
70 70 $ hg help -c | grep myinit
71 71 myinit This is my documented alias for init.
72 72 $ hg help -c | grep mycommit
73 73 mycommit This is my alias with only doc.
74 74 $ hg help -c | grep cleanstatus
75 75 [1]
76 76 $ hg help -c | grep lognull
77 77 lognull Logs the null rev
78 78 $ hg help -c | grep dln
79 79 [1]
80 80 $ hg help -c | grep recursivedoc
81 81 recursivedoc Logs the null rev in debug mode
82 82 $ hg help myinit
83 83 hg myinit [OPTIONS] [BLA] [BLE]
84 84
85 85 alias for: hg init
86 86
87 87 This is my documented alias for init.
88 88
89 89 defined by: * (glob)
90 90 */* (glob) (?)
91 91 */* (glob) (?)
92 92 */* (glob) (?)
93 93
94 94 options:
95 95
96 96 -e --ssh CMD specify ssh command to use
97 97 --remotecmd CMD specify hg command to run on the remote side
98 98 --insecure do not verify server certificate (ignoring web.cacerts
99 99 config)
100 100
101 101 (some details hidden, use --verbose to show complete help)
102 102
103 103 $ hg help mycommit
104 104 hg mycommit [OPTION]... [FILE]...
105 105
106 106 alias for: hg commit
107 107
108 108 This is my alias with only doc.
109 109
110 110 defined by: * (glob)
111 111 */* (glob) (?)
112 112 */* (glob) (?)
113 113 */* (glob) (?)
114 114
115 115 options ([+] can be repeated):
116 116
117 117 -A --addremove mark new/missing files as added/removed before
118 118 committing
119 119 --close-branch mark a branch head as closed
120 120 --amend amend the parent of the working directory
121 121 -s --secret use the secret phase for committing
122 122 -e --edit invoke editor on commit messages
123 123 -i --interactive use interactive mode
124 124 -I --include PATTERN [+] include names matching the given patterns
125 125 -X --exclude PATTERN [+] exclude names matching the given patterns
126 126 -m --message TEXT use text as commit message
127 127 -l --logfile FILE read commit message from file
128 128 -d --date DATE record the specified date as commit date
129 129 -u --user USER record the specified user as committer
130 130 -S --subrepos recurse into subrepositories
131 131
132 132 (some details hidden, use --verbose to show complete help)
133 133
134 134 $ hg help cleanstatus
135 135 hg cleanstatus [ONLYHELPHERE]
136 136
137 137 alias for: hg status -c
138 138
139 139 show changed files in the working directory
140 140
141 141 Show status of files in the repository. If names are given, only files
142 142 that match are shown. Files that are clean or ignored or the source of a
143 143 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
144 144 -C/--copies or -A/--all are given. Unless options described with "show
145 145 only ..." are given, the options -mardu are used.
146 146
147 147 Option -q/--quiet hides untracked (unknown and ignored) files unless
148 148 explicitly requested with -u/--unknown or -i/--ignored.
149 149
150 150 Note:
151 151 'hg status' may appear to disagree with diff if permissions have
152 152 changed or a merge has occurred. The standard diff format does not
153 153 report permission changes and diff only reports changes relative to one
154 154 merge parent.
155 155
156 156 If one revision is given, it is used as the base revision. If two
157 157 revisions are given, the differences between them are shown. The --change
158 158 option can also be used as a shortcut to list the changed files of a
159 159 revision from its first parent.
160 160
161 161 The codes used to show the status of files are:
162 162
163 163 M = modified
164 164 A = added
165 165 R = removed
166 166 C = clean
167 167 ! = missing (deleted by non-hg command, but still tracked)
168 168 ? = not tracked
169 169 I = ignored
170 170 = origin of the previous file (with --copies)
171 171
172 172 Returns 0 on success.
173 173
174 174 defined by: * (glob)
175 175 */* (glob) (?)
176 176 */* (glob) (?)
177 177 */* (glob) (?)
178 178
179 179 options ([+] can be repeated):
180 180
181 181 -A --all show status of all files
182 182 -m --modified show only modified files
183 183 -a --added show only added files
184 184 -r --removed show only removed files
185 185 -d --deleted show only deleted (but tracked) files
186 186 -c --clean show only files without changes
187 187 -u --unknown show only unknown (not tracked) files
188 188 -i --ignored show only ignored files
189 189 -n --no-status hide status prefix
190 190 -C --copies show source of copied files
191 191 -0 --print0 end filenames with NUL, for use with xargs
192 192 --rev REV [+] show difference from revision
193 193 --change REV list the changed files of a revision
194 194 -I --include PATTERN [+] include names matching the given patterns
195 195 -X --exclude PATTERN [+] exclude names matching the given patterns
196 196 -S --subrepos recurse into subrepositories
197 197 -T --template TEMPLATE display with template
198 198
199 199 (some details hidden, use --verbose to show complete help)
200 200
201 201 $ hg help recursivedoc | head -n 5
202 202 hg recursivedoc foo bar baz
203 203
204 204 alias for: hg dln
205 205
206 206 Logs the null rev in debug mode
207 207
208 208 unknown
209 209
210 210 $ hg unknown
211 211 abort: alias 'unknown' resolves to unknown command 'bargle'
212 212 [255]
213 213 $ hg help unknown
214 214 alias 'unknown' resolves to unknown command 'bargle'
215 215
216 216
217 217 ambiguous
218 218
219 219 $ hg ambiguous
220 220 abort: alias 'ambiguous' resolves to ambiguous command 's'
221 221 [255]
222 222 $ hg help ambiguous
223 223 alias 'ambiguous' resolves to ambiguous command 's'
224 224
225 225
226 226 recursive
227 227
228 228 $ hg recursive
229 229 abort: alias 'recursive' resolves to unknown command 'recursive'
230 230 [255]
231 231 $ hg help recursive
232 232 alias 'recursive' resolves to unknown command 'recursive'
233 233
234 234
235 235 disabled
236 236
237 237 $ hg disabled
238 238 abort: alias 'disabled' resolves to unknown command 'email'
239 239 ('email' is provided by 'patchbomb' extension)
240 240 [255]
241 241 $ hg help disabled
242 242 alias 'disabled' resolves to unknown command 'email'
243 243
244 244 'email' is provided by the following extension:
245 245
246 246 patchbomb command to send changesets as (a series of) patch emails
247 247
248 248 (use 'hg help extensions' for information on enabling extensions)
249 249
250 250
251 251 no definition
252 252
253 253 $ hg nodef
254 254 abort: no definition for alias 'nodefinition'
255 255 [255]
256 256 $ hg help nodef
257 257 no definition for alias 'nodefinition'
258 258
259 259
260 260 no closing quotation
261 261
262 262 $ hg noclosing
263 263 abort: error in definition for alias 'noclosingquotation': No closing quotation
264 264 [255]
265 265 $ hg help noclosing
266 266 error in definition for alias 'noclosingquotation': No closing quotation
267 267
268 268 "--" in alias definition should be preserved
269 269
270 270 $ hg --config alias.dash='cat --' -R alias dash -r0
271 271 abort: -r0 not under root '$TESTTMP/alias'
272 272 (consider using '--cwd alias')
273 273 [255]
274 274
275 275 invalid options
276 276
277 277 $ hg no--cwd
278 278 abort: error in definition for alias 'no--cwd': --cwd may only be given on the command line
279 279 [255]
280 280 $ hg help no--cwd
281 281 error in definition for alias 'no--cwd': --cwd may only be given on the
282 282 command line
283 283 $ hg no-R
284 284 abort: error in definition for alias 'no-R': -R may only be given on the command line
285 285 [255]
286 286 $ hg help no-R
287 287 error in definition for alias 'no-R': -R may only be given on the command line
288 288 $ hg no--repo
289 289 abort: error in definition for alias 'no--repo': --repo may only be given on the command line
290 290 [255]
291 291 $ hg help no--repo
292 292 error in definition for alias 'no--repo': --repo may only be given on the
293 293 command line
294 294 $ hg no--repository
295 295 abort: error in definition for alias 'no--repository': --repository may only be given on the command line
296 296 [255]
297 297 $ hg help no--repository
298 298 error in definition for alias 'no--repository': --repository may only be given
299 299 on the command line
300 300 $ hg no--config
301 301 abort: error in definition for alias 'no--config': --config may only be given on the command line
302 302 [255]
303 303 $ hg no --config alias.no='--repo elsewhere --cwd elsewhere status'
304 304 abort: error in definition for alias 'no': --repo/--cwd may only be given on the command line
305 305 [255]
306 306 $ hg no --config alias.no='--repo elsewhere'
307 307 abort: error in definition for alias 'no': --repo may only be given on the command line
308 308 [255]
309 309
310 310 optional repository
311 311
312 312 #if no-outer-repo
313 313 $ hg optionalrepo
314 314 init
315 315 #endif
316 316 $ cd alias
317 317 $ cat > .hg/hgrc <<EOF
318 318 > [alias]
319 319 > myinit = init -q
320 320 > EOF
321 321 $ hg optionalrepo
322 322 init -q
323 323
324 324 no usage
325 325
326 326 $ hg nousage
327 327 no rollback information available
328 328 [1]
329 329
330 330 $ echo foo > foo
331 331 $ hg commit -Amfoo
332 332 adding foo
333 333
334 334 infer repository
335 335
336 336 $ cd ..
337 337
338 338 #if no-outer-repo
339 339 $ hg shortlog alias/foo
340 340 0 e63c23eaa88a | 1970-01-01 00:00 +0000
341 341 #endif
342 342
343 343 $ cd alias
344 344
345 345 with opts
346 346
347 347 $ hg cleanst
348 348 C foo
349 349
350 350
351 351 with opts and whitespace
352 352
353 353 $ hg shortlog
354 354 0 e63c23eaa88a | 1970-01-01 00:00 +0000
355 355
356 356 positional arguments
357 357
358 358 $ hg positional
359 359 abort: too few arguments for command alias
360 360 [255]
361 361 $ hg positional a
362 362 abort: too few arguments for command alias
363 363 [255]
364 364 $ hg positional 'node|short' rev
365 365 0 e63c23eaa88a | 1970-01-01 00:00 +0000
366 366
367 367 interaction with defaults
368 368
369 369 $ hg mylog
370 370 0:e63c23eaa88a
371 371 $ hg lognull
372 372 -1:000000000000
373 373
374 374
375 375 properly recursive
376 376
377 377 $ hg dln
378 378 changeset: -1:0000000000000000000000000000000000000000
379 379 phase: public
380 380 parent: -1:0000000000000000000000000000000000000000
381 381 parent: -1:0000000000000000000000000000000000000000
382 382 manifest: -1:0000000000000000000000000000000000000000
383 383 user:
384 384 date: Thu Jan 01 00:00:00 1970 +0000
385 385 extra: branch=default
386 386
387 387
388 388
389 389 path expanding
390 390
391 391 $ FOO=`pwd` hg put
392 392 $ cat 0.diff
393 393 # HG changeset patch
394 394 # User test
395 395 # Date 0 0
396 396 # Thu Jan 01 00:00:00 1970 +0000
397 397 # Node ID e63c23eaa88ae77967edcf4ea194d31167c478b0
398 398 # Parent 0000000000000000000000000000000000000000
399 399 foo
400 400
401 401 diff -r 000000000000 -r e63c23eaa88a foo
402 402 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
403 403 +++ b/foo Thu Jan 01 00:00:00 1970 +0000
404 404 @@ -0,0 +1,1 @@
405 405 +foo
406 406
407 407
408 408 simple shell aliases
409 409
410 410 $ hg blank
411 411
412 412 $ hg blank foo
413 413
414 414 $ hg self
415 415 self
416 416 $ hg echoall
417 417
418 418 $ hg echoall foo
419 419 foo
420 420 $ hg echoall 'test $2' foo
421 421 test $2 foo
422 422 $ hg echoall 'test $@' foo '$@'
423 423 test $@ foo $@
424 424 $ hg echoall 'test "$@"' foo '"$@"'
425 425 test "$@" foo "$@"
426 426 $ hg echo1 foo bar baz
427 427 foo
428 428 $ hg echo2 foo bar baz
429 429 bar
430 430 $ hg echo13 foo bar baz test
431 431 foo baz
432 432 $ hg echo2 foo
433 433
434 434 $ hg echotokens
435 435
436 436 $ hg echotokens foo 'bar $1 baz'
437 437 foo
438 438 bar $1 baz
439 439 $ hg echotokens 'test $2' foo
440 440 test $2
441 441 foo
442 442 $ hg echotokens 'test $@' foo '$@'
443 443 test $@
444 444 foo
445 445 $@
446 446 $ hg echotokens 'test "$@"' foo '"$@"'
447 447 test "$@"
448 448 foo
449 449 "$@"
450 450 $ echo bar > bar
451 451 $ hg commit -qA -m bar
452 452 $ hg count .
453 453 1
454 454 $ hg count 'branch(default)'
455 455 2
456 456 $ hg mcount -r '"branch(default)"'
457 457 2
458 458
459 459 $ hg tglog
460 460 @ 1:042423737847: 'bar'
461 461 |
462 462 o 0:e63c23eaa88a: 'foo'
463 463
464 464
465 465
466 466 shadowing
467 467
468 468 $ hg i
469 469 hg: command 'i' is ambiguous:
470 470 idalias idaliaslong idaliasshell identify import incoming init
471 471 [255]
472 472 $ hg id
473 473 042423737847 tip
474 474 $ hg ida
475 475 hg: command 'ida' is ambiguous:
476 476 idalias idaliaslong idaliasshell
477 477 [255]
478 478 $ hg idalias
479 479 042423737847 tip
480 480 $ hg idaliasl
481 481 042423737847 tip
482 482 $ hg idaliass
483 483 test
484 484 $ hg parentsshell
485 485 hg: command 'parentsshell' is ambiguous:
486 486 parentsshell1 parentsshell2
487 487 [255]
488 488 $ hg parentsshell1
489 489 one
490 490 $ hg parentsshell2
491 491 two
492 492
493 493
494 494 shell aliases with global options
495 495
496 496 $ hg init sub
497 497 $ cd sub
498 498 $ hg count 'branch(default)'
499 499 abort: unknown revision 'default'!
500 500 0
501 501 $ hg -v count 'branch(default)'
502 502 abort: unknown revision 'default'!
503 503 0
504 504 $ hg -R .. count 'branch(default)'
505 505 abort: unknown revision 'default'!
506 506 0
507 507 $ hg --cwd .. count 'branch(default)'
508 508 2
509 509 $ hg echoall --cwd ..
510 510
511 511
512 512 "--" passed to shell alias should be preserved
513 513
514 514 $ hg --config alias.printf='!printf "$@"' printf '%s %s %s\n' -- --cwd ..
515 515 -- --cwd ..
516 516
517 517 repo specific shell aliases
518 518
519 519 $ cat >> .hg/hgrc <<EOF
520 520 > [alias]
521 521 > subalias = !echo sub
522 522 > EOF
523 523 $ cat >> ../.hg/hgrc <<EOF
524 524 > [alias]
525 525 > mainalias = !echo main
526 526 > EOF
527 527
528 528
529 529 shell alias defined in current repo
530 530
531 531 $ hg subalias
532 532 sub
533 533 $ hg --cwd .. subalias > /dev/null
534 534 hg: unknown command 'subalias'
535 535 (did you mean idalias?)
536 536 [255]
537 537 $ hg -R .. subalias > /dev/null
538 538 hg: unknown command 'subalias'
539 539 (did you mean idalias?)
540 540 [255]
541 541
542 542
543 543 shell alias defined in other repo
544 544
545 545 $ hg mainalias > /dev/null
546 546 hg: unknown command 'mainalias'
547 547 (did you mean idalias?)
548 548 [255]
549 549 $ hg -R .. mainalias
550 550 main
551 551 $ hg --cwd .. mainalias
552 552 main
553 553
554 554 typos get useful suggestions
555 555 $ hg --cwd .. manalias
556 556 hg: unknown command 'manalias'
557 557 (did you mean one of idalias, mainalias, manifest?)
558 558 [255]
559 559
560 560 shell aliases with escaped $ chars
561 561
562 562 $ hg escaped1
563 563 test$test
564 564 $ hg escaped2
565 565 HGFOO is BAR
566 566 $ hg escaped3 HGFOO
567 567 HGFOO is BAR
568 568 $ hg escaped4 test
569 569 $0 $@
570 570
571 571 abbreviated name, which matches against both shell alias and the
572 572 command provided extension, should be aborted.
573 573
574 574 $ cat >> .hg/hgrc <<EOF
575 575 > [extensions]
576 576 > hgext.rebase =
577 577 > EOF
578 578 #if windows
579 579 $ cat >> .hg/hgrc <<EOF
580 580 > [alias]
581 581 > rebate = !echo this is %HG_ARGS%
582 582 > EOF
583 583 #else
584 584 $ cat >> .hg/hgrc <<EOF
585 585 > [alias]
586 586 > rebate = !echo this is \$HG_ARGS
587 587 > EOF
588 588 #endif
589 589 $ cat >> .hg/hgrc <<EOF
590 590 > rebate:doc = This is my alias which just prints something.
591 591 > rebate:help = [MYARGS]
592 592 > EOF
593 593 $ hg reba
594 594 hg: command 'reba' is ambiguous:
595 595 rebase rebate
596 596 [255]
597 597 $ hg rebat
598 598 this is rebate
599 599 $ hg rebat --foo-bar
600 600 this is rebate --foo-bar
601 601
602 602 help for a shell alias
603 603
604 604 $ hg help -c | grep rebate
605 605 rebate This is my alias which just prints something.
606 606 $ hg help rebate
607 607 hg rebate [MYARGS]
608 608
609 609 shell alias for: echo this is %HG_ARGS% (windows !)
610 610 shell alias for: echo this is $HG_ARGS (no-windows !)
611 611
612 612 This is my alias which just prints something.
613 613
614 614 defined by:* (glob)
615 615 */* (glob) (?)
616 616 */* (glob) (?)
617 617 */* (glob) (?)
618 618
619 619 (some details hidden, use --verbose to show complete help)
620 620
621 621 invalid character in user-specified help
622 622
623 623 >>> with open('.hg/hgrc', 'ab') as f:
624 624 ... f.write(b'[alias]\n'
625 625 ... b'invaliddoc = log\n'
626 ... b'invaliddoc:doc = \xc0\n'
626 ... b'invaliddoc:doc = \xc3\xa9\n'
627 627 ... b'invalidhelp = log\n'
628 ... b'invalidhelp:help = \xc0\n') and None
628 ... b'invalidhelp:help = \xc3\xa9\n') and None
629 629 $ hg help invaliddoc
630 630 non-ASCII character in alias definition 'invaliddoc:doc'
631 631 $ hg help invalidhelp
632 632 non-ASCII character in alias definition 'invalidhelp:help'
633 633 $ hg invaliddoc
634 634 abort: non-ASCII character in alias definition 'invaliddoc:doc'
635 635 [255]
636 636 $ hg invalidhelp
637 637 abort: non-ASCII character in alias definition 'invalidhelp:help'
638 638 [255]
639 639
640 640 invalid arguments
641 641
642 642 $ hg rt foo
643 643 hg rt: invalid arguments
644 644 hg rt
645 645
646 646 alias for: hg root
647 647
648 648 (use 'hg rt -h' to show more help)
649 649 [255]
650 650
651 651 invalid global arguments for normal commands, aliases, and shell aliases
652 652
653 653 $ hg --invalid root
654 654 hg: option --invalid not recognized
655 655 (use 'hg help -v' for a list of global options)
656 656 [255]
657 657 $ hg --invalid mylog
658 658 hg: option --invalid not recognized
659 659 (use 'hg help -v' for a list of global options)
660 660 [255]
661 661 $ hg --invalid blank
662 662 hg: option --invalid not recognized
663 663 (use 'hg help -v' for a list of global options)
664 664 [255]
665 665
666 666 environment variable changes in alias commands
667 667
668 668 $ cat > $TESTTMP/expandalias.py <<EOF
669 669 > import os
670 670 > from mercurial import cmdutil, commands, registrar
671 671 > cmdtable = {}
672 672 > command = registrar.command(cmdtable)
673 673 > @command(b'expandalias')
674 674 > def expandalias(ui, repo, name):
675 675 > alias = cmdutil.findcmd(name, commands.table)[1][0]
676 676 > ui.write(b'%s args: %s\n' % (name, b' '.join(alias.args)))
677 677 > os.environ['COUNT'] = '2'
678 678 > ui.write(b'%s args: %s (with COUNT=2)\n' % (name, b' '.join(alias.args)))
679 679 > EOF
680 680
681 681 $ cat >> $HGRCPATH <<'EOF'
682 682 > [extensions]
683 683 > expandalias = $TESTTMP/expandalias.py
684 684 > [alias]
685 685 > showcount = log -T "$COUNT" -r .
686 686 > EOF
687 687
688 688 $ COUNT=1 hg expandalias showcount
689 689 showcount args: -T 1 -r .
690 690 showcount args: -T 2 -r . (with COUNT=2)
691 691
692 692 This should show id:
693 693
694 694 $ hg --config alias.log='id' log
695 695 000000000000 tip
696 696
697 697 This shouldn't:
698 698
699 699 $ hg --config alias.log='id' history
700 700
701 701 $ cd ../..
702 702
703 703 return code of command and shell aliases:
704 704
705 705 $ hg mycommit -R alias
706 706 nothing changed
707 707 [1]
708 708 $ hg exit1
709 709 [1]
710 710
711 711 #if no-outer-repo
712 712 $ hg root
713 713 abort: no repository found in '$TESTTMP' (.hg not found)!
714 714 [255]
715 715 $ hg --config alias.hgroot='!hg root' hgroot
716 716 abort: no repository found in '$TESTTMP' (.hg not found)!
717 717 [255]
718 718 #endif
General Comments 0
You need to be logged in to leave comments. Login now