comparison tests/test-clone.t @ 45839:ebee234d952a

errors: set detailed exit code to 100 for some remote errors This is per https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. Differential Revision: https://phab.mercurial-scm.org/D9309
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 22 Oct 2020 13:31:34 -0700
parents 8d72e29ad1e0
children d68618954ade
comparison
equal deleted inserted replaced
45838:ae00e170f2d1 45839:ebee234d952a
616 616
617 Invalid URL 617 Invalid URL
618 618
619 $ hg clone http://invalid:url/a b 619 $ hg clone http://invalid:url/a b
620 abort: error: nonnumeric port: 'url' 620 abort: error: nonnumeric port: 'url'
621 [255] 621 [100]
622 622
623 No remote source 623 No remote source
624 624
625 #if windows 625 #if windows
626 $ hg clone http://$LOCALIP:3121/a b 626 $ hg clone http://$LOCALIP:3121/a b
627 abort: error: * (glob) 627 abort: error: * (glob)
628 [255] 628 [255]
629 #else 629 #else
630 $ hg clone http://$LOCALIP:3121/a b 630 $ hg clone http://$LOCALIP:3121/a b
631 abort: error: *refused* (glob) 631 abort: error: *refused* (glob)
632 [255] 632 [100]
633 #endif 633 #endif
634 $ rm -rf b # work around bug with http clone 634 $ rm -rf b # work around bug with http clone
635 635
636 636
637 #if unix-permissions no-root 637 #if unix-permissions no-root