comparison tests/test-largefiles.t @ 15372:695ac6aca77f stable

check-code: fix issues with finding patterns in unified tests, fix tests - old-style patterns without ^ were getting improperly anchored - finditer was matching against beginning of line poorly - \s was matching newlines - [^x] was matching newlines so we: - remove earlier hacks for multiline matching - fix unified test anchoring by adding .* - replace \s with [ \t] - replace [^x] with [^\nx] - force all matches into multiline mode so ^ anchors work This uncovers a number of test issues that are then repaired.
author Matt Mackall <mpm@selenic.com>
date Thu, 27 Oct 2011 17:22:04 -0500
parents 8af6c6d91c92
children 6cb8b46ea90a
comparison
equal deleted inserted replaced
15371:f26ed4ea46d8 15372:695ac6aca77f
749 adding manifests 749 adding manifests
750 adding file changes 750 adding file changes
751 added 1 changesets with 1 changes to 1 files 751 added 1 changesets with 1 changes to 1 files
752 updating to branch default 752 updating to branch default
753 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 753 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
754 $ kill $(cat serve.pid) 754 $ kill `cat serve.pid`
755 755
756 largefiles clients still work with vanilla servers 756 largefiles clients still work with vanilla servers
757 $ hg --config extensions.largefiles=! serve -R r1 -d -p 8001 --pid-file serve.pid 757 $ hg --config extensions.largefiles=! serve -R r1 -d -p 8001 --pid-file serve.pid
758 $ hg clone http://localhost:8001 r3 758 $ hg clone http://localhost:8001 r3
759 requesting all changes 759 requesting all changes
761 adding manifests 761 adding manifests
762 adding file changes 762 adding file changes
763 added 1 changesets with 1 changes to 1 files 763 added 1 changesets with 1 changes to 1 files
764 updating to branch default 764 updating to branch default
765 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 765 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
766 $ kill $(cat serve.pid) 766 $ kill `cat serve.pid`
767 767
768 vanilla clients locked out from largefiles http repos 768 vanilla clients locked out from largefiles http repos
769 $ mkdir r4 769 $ mkdir r4
770 $ cd r4 770 $ cd r4
771 $ hg init 771 $ hg init
779 779
780 This repository uses the largefiles extension. 780 This repository uses the largefiles extension.
781 781
782 Please enable it in your Mercurial config file. 782 Please enable it in your Mercurial config file.
783 [255] 783 [255]
784 $ kill $(cat serve.pid) 784 $ kill `cat serve.pid`
785 785
786 vanilla clients locked out from largefiles ssh repos 786 vanilla clients locked out from largefiles ssh repos
787 $ hg --config extensions.largefiles=! clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/r4 r5 787 $ hg --config extensions.largefiles=! clone -e "python $TESTDIR/dummyssh" ssh://user@dummy/r4 r5
788 abort: remote error: 788 abort: remote error:
789 789
817 pushing to http://localhost:8001/ 817 pushing to http://localhost:8001/
818 searching for changes 818 searching for changes
819 abort: http://localhost:8001/ does not appear to be a largefile store 819 abort: http://localhost:8001/ does not appear to be a largefile store
820 [255] 820 [255]
821 $ cd .. 821 $ cd ..
822 $ kill $(cat serve.pid) 822 $ kill `cat serve.pid`
823 823
824 $ cd .. 824 $ cd ..
825 825
826 Clone a local repository owned by another user 826 Clone a local repository owned by another user
827 We have to simulate that here by setting $HOME and removing write permissions 827 We have to simulate that here by setting $HOME and removing write permissions
862 $ ln -s largefile largelink 862 $ ln -s largefile largelink
863 $ hg add largelink 863 $ hg add largelink
864 $ hg commit -m "commit a large symlink" 864 $ hg commit -m "commit a large symlink"
865 $ rm -f largelink 865 $ rm -f largelink
866 $ hg up >/dev/null 866 $ hg up >/dev/null
867 $ test -e largelink 867 $ test -f largelink
868 [1] 868 [1]
869 $ test -L largelink 869 $ test -L largelink
870 [1] 870 [1]
871 $ rm -f largelink # make next part of the test independent of the previous 871 $ rm -f largelink # make next part of the test independent of the previous
872 $ hg up -C >/dev/null 872 $ hg up -C >/dev/null
873 $ test -e largelink 873 $ test -f largelink
874 $ test -L largelink 874 $ test -L largelink
875 $ cd .. 875 $ cd ..
876 876
877 877