tests/test-lfs-test-server.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 21 Dec 2020 12:34:59 +0100
changeset 46585 60b2b7ecf9cb
parent 46343 47b11629a0f2
child 46919 9799ba0abb12
permissions -rw-r--r--
copies-rust: use imrs::OrdSet instead of imrs::HashSet This yield small speedup all over the board, and a large one for our slower cases: Repo Case Source-Rev Dest-Rev # of revisions old time new time Difference Factor time per rev --------------------------------------------------------------------------------------------------------------------------------------------------------------- mozilla-try x0000_revs_xx000_added_x000_copies 89294cd501d9 7ccb2fc7ccb5 : 97052 revs, 2.034596 s, 1.465264 s, -0.569332 s, × 0.7202, 15 µs/rev mozilla-try x0000_revs_x0000_added_x0000_copies e928c65095ed e951f4ad123a : 52031 revs, 0.694030 s, 0.690376 s, -0.003654 s, × 0.9947, 13 µs/rev mozilla-try x00000_revs_x_added_0_copies 6a320851d377 1ebb79acd503 : 363753 revs, 4.407723 s, 4.011322 s, -0.396401 s, × 0.9101, 11 µs/rev mozilla-try x00000_revs_x00000_added_0_copies dc8a3ca7010e d16fde900c9c : 34414 revs, 0.574355 s, 0.573541 s, -0.000814 s, × 0.9986, 16 µs/rev mozilla-try x00000_revs_x_added_x_copies 5173c4b6f97c 95d83ee7242d : 362229 revs, 4.457827 s, 3.981133 s, -0.476694 s, × 0.8931, 10 µs/rev mozilla-try x00000_revs_x000_added_x_copies 9126823d0e9c ca82787bb23c : 359344 revs, 4.351696 s, 3.996647 s, -0.355049 s, × 0.9184, 11 µs/rev mozilla-try x00000_revs_x00000_added_x0000_copies 1b661134e2ca 1ae03d022d6d : 228985 revs, 80.828689 s, 50.244975 s, -30.583714 s, × 0.6216, 219 µs/rev mozilla-try x00000_revs_x00000_added_x000_copies 9b2a99adc05e 8e29777b48e6 : 382065 revs, 34.094064 s, 20.030023 s, -14.064041 s, × 0.5875, 52 µs/rev private : 459513 revs, 27.435529 s, 24.490825 s, -2.944704 s, × 0.8927, 53 µs/rev We also got significantly faster than the implementation using is_ancestors except for one of our reference case: Repo Case Source-Rev Dest-Rev # of revisions old time new time Difference Factor time per rev --------------------------------------------------------------------------------------------------------------------------------------------------------------- mozilla-try x00000_revs_x_added_0_copies 6a320851d377 1ebb79acd503 : 363753 revs, 5.138169 s, 4.011322 s, -1.126847 s, × 0.7807, 11 µs/rev mozilla-try x00000_revs_x_added_x_copies 5173c4b6f97c 95d83ee7242d : 362229 revs, 5.127809 s, 3.981133 s, -1.146676 s, × 0.7764, 10 µs/rev mozilla-try x00000_revs_x000_added_x_copies 9126823d0e9c ca82787bb23c : 359344 revs, 4.971136 s, 3.996647 s, -0.974489 s, × 0.8040, 11 µs/rev mozilla-try x00000_revs_x0000_added_x0000_copies 8d3fafa80d4b eb884023b810 : 192665 revs, 1.741678 s, 1.520607 s, -0.221071 s, × 0.8731, 7 µs/rev private : 459513 revs, 37.179470 s, 24.490825 s, -12.688645 s, × 0.6587, 53 µs/rev mozilla-try x00000_revs_x00000_added_x0000_copies 1b661134e2ca 1ae03d022d6d : 228985 revs, 40.314822 s, 50.244975 s, +9.930153 s, × 1.2463, 219 µs/rev Below are three different benchmark comparing this changeset to: * the previous one, * the implementation based on `is_anscestors`, * the filelog copy tracing. ### Compared to the previous ones Repo Case Source-Rev Dest-Rev # of revisions old time new time Difference Factor time per rev --------------------------------------------------------------------------------------------------------------------------------------------------------------- mercurial x_revs_x_added_0_copies ad6b123de1c7 39cfcef4f463 : 1 revs, 0.000043 s, 0.000041 s, -0.000002 s, × 0.9535, 41 µs/rev mercurial x_revs_x_added_x_copies 2b1c78674230 0c1d10351869 : 6 revs, 0.000114 s, 0.000116 s, +0.000002 s, × 1.0175, 19 µs/rev mercurial x000_revs_x000_added_x_copies 81f8ff2a9bf2 dd3267698d84 : 1032 revs, 0.004899 s, 0.004933 s, +0.000034 s, × 1.0069, 4 µs/rev pypy x_revs_x_added_0_copies aed021ee8ae8 099ed31b181b : 9 revs, 0.000196 s, 0.000193 s, -0.000003 s, × 0.9847, 21 µs/rev pypy x_revs_x000_added_0_copies 4aa4e1f8e19a 359343b9ac0e : 1 revs, 0.000049 s, 0.000048 s, -0.000001 s, × 0.9796, 48 µs/rev pypy x_revs_x_added_x_copies ac52eb7bbbb0 72e022663155 : 7 revs, 0.000117 s, 0.000114 s, -0.000003 s, × 0.9744, 16 µs/rev pypy x_revs_x00_added_x_copies c3b14617fbd7 ace7255d9a26 : 1 revs, 0.6f1f4a s, 0.000319 s, -0.000003 s, × 0.9907, 319 µs/rev pypy x_revs_x000_added_x000_copies df6f7a526b60 a83dc6a2d56f : 6 revs, 0.011856 s, 0.012025 s, +0.000169 s, × 1.0143, 2004 µs/rev pypy x000_revs_xx00_added_0_copies 89a76aede314 2f22446ff07e : 4785 revs, 0.050992 s, 0.050525 s, -0.000467 s, × 0.9908, 10 µs/rev pypy x000_revs_x000_added_x_copies 8a3b5bfd266e 2c68e87c3efe : 6780 revs, 0.087444 s, 0.085713 s, -0.001731 s, × 0.9802, 12 µs/rev pypy x000_revs_x000_added_x000_copies 89a76aede314 7b3dda341c84 : 5441 revs, 0.062487 s, 0.061825 s, -0.000662 s, × 0.9894, 11 µs/rev pypy x0000_revs_x_added_0_copies d1defd0dc478 c9cb1334cc78 : 43645 revs, 0.634909 s, 0.543998 s, -0.090911 s, × 0.8568, 12 µs/rev pypy x0000_revs_xx000_added_0_copies bf2c629d0071 4ffed77c095c : 2 revs, 0.013360 s, 0.013455 s, +0.000095 s, × 1.0071, 6727 µs/rev pypy x0000_revs_xx000_added_x000_copies 08ea3258278e d9fa043f30c0 : 11316 revs, 0.120775 s, 0.117479 s, -0.003296 s, × 0.9727, 10 µs/rev netbeans x_revs_x_added_0_copies fb0955ffcbcd a01e9239f9e7 : 2 revs, 0.000085 s, 0.000084 s, -0.000001 s, × 0.9882, 42 µs/rev netbeans x_revs_x000_added_0_copies 6f360122949f 20eb231cc7d0 : 2 revs, 0.000108 s, 0.000111 s, +0.000003 s, × 1.0278, 55 µs/rev netbeans x_revs_x_added_x_copies 1ada3faf6fb6 5a39d12eecf4 : 3 revs, 0.000176 s, 0.000175 s, -0.000001 s, × 0.9943, 58 µs/rev netbeans x_revs_x00_added_x_copies 35be93ba1e2c 9eec5e90c05f : 9 revs, 0.000747 s, 0.000732 s, -0.000015 s, × 0.9799, 81 µs/rev netbeans x000_revs_xx00_added_0_copies eac3045b4fdd 51d4ae7f1290 : 1421 revs, 0.010128 s, 0.010062 s, -0.000066 s, × 0.9935, 7 µs/rev netbeans x000_revs_x000_added_x_copies e2063d266acd 6081d72689dc : 1533 revs, 0.015899 s, 0.015659 s, -0.000240 s, × 0.9849, 10 µs/rev netbeans x000_revs_x000_added_x000_copies ff453e9fee32 411350406ec2 : 5750 revs, 0.062215 s, 0.062744 s, +0.000529 s, × 1.0085, 10 µs/rev netbeans x0000_revs_xx000_added_x000_copies 588c2d1ced70 1aad62e59ddd : 66949 revs, 0.521004 s, 0.499449 s, -0.021555 s, × 0.9586, 7 µs/rev mozilla-central x_revs_x_added_0_copies 3697f962bb7b 7015fcdd43a2 : 2 revs, 0.000090 s, 0.000088 s, -0.000002 s, × 0.9778, 44 µs/rev mozilla-central x_revs_x000_added_0_copies dd390860c6c9 40d0c5bed75d : 8 revs, 0.000264 s, 0.000266 s, +0.000002 s, × 1.0076, 33 µs/rev mozilla-central x_revs_x_added_x_copies 8d198483ae3b 14207ffc2b2f : 9 revs, 0.000186 s, 0.000182 s, -0.000004 s, × 0.9785, 20 µs/rev mozilla-central x_revs_x00_added_x_copies 98cbc58cc6bc 446a150332c3 : 7 revs, 0.000660 s, 0.000656 s, -0.000004 s, × 0.9939, 93 µs/rev mozilla-central x_revs_x000_added_x000_copies 3c684b4b8f68 0a5e72d1b479 : 3 revs, 0.003542 s, 0.003389 s, -0.000153 s, × 0.9568, 1129 µs/rev mozilla-central x_revs_x0000_added_x0000_copies effb563bb7e5 c07a39dc4e80 : 6 revs, 0.071574 s, 0.075882 s, +0.004308 s, × 1.0602, 12647 µs/rev mozilla-central x000_revs_xx00_added_0_copies 6100d773079a 04a55431795e : 1593 revs, 0.006498 s, 0.006479 s, -0.000019 s, × 0.9971, 4 µs/rev mozilla-central x000_revs_x000_added_x_copies 9f17a6fc04f9 2d37b966abed : 41 revs, 0.005206 s, 0.004889 s, -0.000317 s, × 0.9391, 119 µs/rev mozilla-central x000_revs_x000_added_x000_copies 7c97034feb78 4407bd0c6330 : 7839 revs, 0.065535 s, 0.064394 s, -0.001141 s, × 0.9826, 8 µs/rev mozilla-central x0000_revs_xx000_added_0_copies 9eec5917337d 67118cc6dcad : 615 revs, 0.027139 s, 0.026815 s, -0.000324 s, × 0.9881, 43 µs/rev mozilla-central x0000_revs_xx000_added_x000_copies f78c615a656c 96a38b690156 : 30263 revs, 0.201924 s, 0.cc85eb s, +0.000940 s, × 1.0047, 6 µs/rev mozilla-central x00000_revs_x0000_added_x0000_copies 6832ae71433c 4c222a1d9a00 : 153721 revs, 1.257201 s, 1.219445 s, -0.037756 s, × 0.9700, 7 µs/rev mozilla-central x00000_revs_x00000_added_x000_copies 76caed42cf7c 1daa622bbe42 : 204976 revs, 1.663045 s, 1.613857 s, -0.049188 s, × 0.9704, 7 µs/rev mozilla-try x_revs_x_added_0_copies aaf6dde0deb8 9790f499805a : 2 revs, 0.000866 s, 0.000873 s, +0.000007 s, × 1.0081, 436 µs/rev mozilla-try x_revs_x000_added_0_copies d8d0222927b4 5bb8ce8c7450 : 2 revs, 0.000883 s, 0.000885 s, +0.000002 s, × 1.0023, 442 µs/rev mozilla-try x_revs_x_added_x_copies 092fcca11bdb 936255a0384a : 4 revs, 0.000163 s, 0.000161 s, -0.000002 s, × 0.9877, 40 µs/rev mozilla-try x_revs_x00_added_x_copies b53d2fadbdb5 017afae788ec : 2 revs, 0.001139 s, 0.001138 s, -0.000001 s, × 0.9991, 569 µs/rev mozilla-try x_revs_x000_added_x000_copies 20408ad61ce5 6f0ee96e21ad : 1 revs, 0.032753 s, 0.033399 s, +0.000646 s, × 1.0197, 33399 µs/rev mozilla-try x_revs_x0000_added_x0000_copies effb563bb7e5 c07a39dc4e80 : 6 revs, 0.073266 s, 0.075445 s, +0.002179 s, × 1.0297, 12574 µs/rev mozilla-try x000_revs_xx00_added_0_copies 6100d773079a 04a55431795e : 1593 revs, 0.006567 s, 0.006456 s, -0.000111 s, × 0.9831, 4 µs/rev mozilla-try x000_revs_x000_added_x_copies 9f17a6fc04f9 2d37b966abed : 41 revs, 0.005427 s, 0.005462 s, +0.000035 s, × 1.0064, 133 µs/rev mozilla-try x000_revs_x000_added_x000_copies 1346fd0130e4 4c65cbdabc1f : 6657 revs, 0.064058 s, 0.064117 s, +0.000059 s, × 1.0009, 9 µs/rev mozilla-try x0000_revs_x_added_0_copies 63519bfd42ee a36a2a865d92 : 40314 revs, 0.303320 s, 0.297563 s, -0.005757 s, × 0.9810, 7 µs/rev mozilla-try x0000_revs_x_added_x_copies 9fe69ff0762d bcabf2a78927 : 38690 revs, 0.288456 s, 0.282463 s, -0.005993 s, × 0.9792, 7 µs/rev mozilla-try x0000_revs_xx000_added_x_copies 156f6e2674f2 4d0f2c178e66 : 8598 revs, 0.085925 s, 0.084038 s, -0.001887 s, × 0.9780, 9 µs/rev mozilla-try x0000_revs_xx000_added_0_copies 9eec5917337d 67118cc6dcad : 615 revs, 0.027302 s, 0.027306 s, +0.000004 s, × 1.0001, 44 µs/rev mozilla-try x0000_revs_xx000_added_x000_copies 89294cd501d9 7ccb2fc7ccb5 : 97052 revs, 2.034596 s, 1.465264 s, -0.569332 s, × 0.7202, 15 µs/rev mozilla-try x0000_revs_x0000_added_x0000_copies e928c65095ed e951f4ad123a : 52031 revs, 0.694030 s, 0.690376 s, -0.003654 s, × 0.9947, 13 µs/rev mozilla-try x00000_revs_x_added_0_copies 6a320851d377 1ebb79acd503 : 363753 revs, 4.407723 s, 4.011322 s, -0.396401 s, × 0.9101, 11 µs/rev mozilla-try x00000_revs_x00000_added_0_copies dc8a3ca7010e d16fde900c9c : 34414 revs, 0.574355 s, 0.573541 s, -0.000814 s, × 0.9986, 16 µs/rev mozilla-try x00000_revs_x_added_x_copies 5173c4b6f97c 95d83ee7242d : 362229 revs, 4.457827 s, 3.981133 s, -0.476694 s, × 0.8931, 10 µs/rev mozilla-try x00000_revs_x000_added_x_copies 9126823d0e9c ca82787bb23c : 359344 revs, 4.351696 s, 3.996647 s, -0.355049 s, × 0.9184, 11 µs/rev mozilla-try x00000_revs_x0000_added_x0000_copies 8d3fafa80d4b eb884023b810 : 192665 revs, 1.570065 s, 1.520607 s, -0.049458 s, × 0.9685, 7 µs/rev mozilla-try x00000_revs_x00000_added_x0000_copies 1b661134e2ca 1ae03d022d6d : 228985 revs, 80.828689 s, 50.244975 s, -30.583714 s, × 0.6216, 219 µs/rev mozilla-try x00000_revs_x00000_added_x000_copies 9b2a99adc05e 8e29777b48e6 : 382065 revs, 34.094064 s, 20.030023 s, -14.064041 s, × 0.5875, 52 µs/rev private : 459513 revs, 27.435529 s, 24.490825 s, -2.944704 s, × 0.8927, 53 µs/rev ### Compared to the implementation using `is_anscestor` Repo Case Source-Rev Dest-Rev # of revisions old time new time Difference Factor time per rev --------------------------------------------------------------------------------------------------------------------------------------------------------------- mercurial x_revs_x_added_0_copies ad6b123de1c7 39cfcef4f463 : 1 revs, 0.000042 s, 0.000041 s, -0.000001 s, × 0.9762, 41 µs/rev mercurial x_revs_x_added_x_copies 2b1c78674230 0c1d10351869 : 6 revs, 0.000110 s, 0.000116 s, +0.000006 s, × 1.0545, 19 µs/rev mercurial x000_revs_x000_added_x_copies 81f8ff2a9bf2 dd3267698d84 : 1032 revs, 0.004945 s, 0.004933 s, -0.000012 s, × 0.9976, 4 µs/rev pypy x_revs_x_added_0_copies aed021ee8ae8 099ed31b181b : 9 revs, 0.000192 s, 0.000193 s, +0.000001 s, × 1.0052, 21 µs/rev pypy x_revs_x000_added_0_copies 4aa4e1f8e19a 359343b9ac0e : 1 revs, 0.000049 s, 0.000048 s, -0.000001 s, × 0.9796, 48 µs/rev pypy x_revs_x_added_x_copies ac52eb7bbbb0 72e022663155 : 7 revs, 0.000112 s, 0.000114 s, +0.000002 s, × 1.0179, 16 µs/rev pypy x_revs_x00_added_x_copies c3b14617fbd7 ace7255d9a26 : 1 revs, 0.000323 s, 0.000319 s, -0.000004 s, × 0.9876, 319 µs/rev pypy x_revs_x000_added_x000_copies df6f7a526b60 a83dc6a2d56f : 6 revs, 0.010042 s, 0.012025 s, +0.001983 s, × 1.1975, 2004 µs/rev pypy x000_revs_xx00_added_0_copies 89a76aede314 2f22446ff07e : 4785 revs, 0.049813 s, 0.050525 s, +0.000712 s, × 1.0143, 10 µs/rev pypy x000_revs_x000_added_x_copies 8a3b5bfd266e 2c68e87c3efe : 6780 revs, 0.079937 s, 0.085713 s, +0.005776 s, × 1.0723, 12 µs/rev pypy x000_revs_x000_added_x000_copies 89a76aede314 7b3dda341c84 : 5441 revs, 0.059412 s, 0.061825 s, +0.002413 s, × 1.0406, 11 µs/rev pypy x0000_revs_x_added_0_copies d1defd0dc478 c9cb1334cc78 : 43645 revs, 0.533769 s, 0.543998 s, +0.010229 s, × 1.0192, 12 µs/rev pypy x0000_revs_xx000_added_0_copies bf2c629d0071 4ffed77c095c : 2 revs, 0.013147 s, 0.013455 s, +0.000308 s, × 1.0234, 6727 µs/rev pypy x0000_revs_xx000_added_x000_copies 08ea3258278e d9fa043f30c0 : 11316 revs, 0.110680 s, 0.117479 s, +0.006799 s, × 1.0614, 10 µs/rev netbeans x_revs_x_added_0_copies fb0955ffcbcd a01e9239f9e7 : 2 revs, 0.000085 s, 0.000084 s, -0.000001 s, × 0.9882, 42 µs/rev netbeans x_revs_x000_added_0_copies 6f360122949f 20eb231cc7d0 : 2 revs, 0.000107 s, 0.000111 s, +0.000004 s, × 1.0374, 55 µs/rev netbeans x_revs_x_added_x_copies 1ada3faf6fb6 5a39d12eecf4 : 3 revs, 0.000175 s, 0.000175 s, +0.000000 s, × 1.0000, 58 µs/rev netbeans x_revs_x00_added_x_copies 35be93ba1e2c 9eec5e90c05f : 9 revs, 0.000720 s, 0.000732 s, +0.000012 s, × 1.0167, 81 µs/rev netbeans x000_revs_xx00_added_0_copies eac3045b4fdd 51d4ae7f1290 : 1421 revs, 0.010019 s, 0.010062 s, +0.000043 s, × 1.0043, 7 µs/rev netbeans x000_revs_x000_added_x_copies e2063d266acd 6081d72689dc : 1533 revs, 0.015602 s, 0.015659 s, +0.000057 s, × 1.0037, 10 µs/rev netbeans x000_revs_x000_added_x000_copies ff453e9fee32 411350406ec2 : 5750 revs, 0.058759 s, 0.062744 s, +0.003985 s, × 1.0678, 10 µs/rev netbeans x0000_revs_xx000_added_x000_copies 588c2d1ced70 1aad62e59ddd : 66949 revs, 0.491550 s, 0.499449 s, +0.007899 s, × 1.0161, 7 µs/rev mozilla-central x_revs_x_added_0_copies 3697f962bb7b 7015fcdd43a2 : 2 revs, 0.000087 s, 0.000088 s, +0.000001 s, × 1.0115, 44 µs/rev mozilla-central x_revs_x000_added_0_copies dd390860c6c9 40d0c5bed75d : 8 revs, 0.000268 s, 0.000266 s, -0.000002 s, × 0.9925, 33 µs/rev mozilla-central x_revs_x_added_x_copies 8d198483ae3b 14207ffc2b2f : 9 revs, 0.000181 s, 0.000182 s, +0.000001 s, × 1.0055, 20 µs/rev mozilla-central x_revs_x00_added_x_copies 98cbc58cc6bc 446a150332c3 : 7 revs, 0.000661 s, 0.000656 s, -0.000005 s, × 0.9924, 93 µs/rev mozilla-central x_revs_x000_added_x000_copies 3c684b4b8f68 0a5e72d1b479 : 3 revs, 0.003256 s, 0.003389 s, +0.000133 s, × 1.0408, 1129 µs/rev mozilla-central x_revs_x0000_added_x0000_copies effb563bb7e5 c07a39dc4e80 : 6 revs, 0.066749 s, 0.075882 s, +0.009133 s, × 1.1368, 12647 µs/rev mozilla-central x000_revs_xx00_added_0_copies 6100d773079a 04a55431795e : 1593 revs, 0.006462 s, 0.006479 s, +0.000017 s, × 1.0026, 4 µs/rev mozilla-central x000_revs_x000_added_x_copies 9f17a6fc04f9 2d37b966abed : 41 revs, 0.004919 s, 0.004889 s, -0.000030 s, × 0.9939, 119 µs/rev mozilla-central x000_revs_x000_added_x000_copies 7c97034feb78 4407bd0c6330 : 7839 revs, 0.062421 s, 0.064394 s, +0.001973 s, × 1.0316, 8 µs/rev mozilla-central x0000_revs_xx000_added_0_copies 9eec5917337d 67118cc6dcad : 615 revs, 0.026633 s, 0.026815 s, +0.000182 s, × 1.0068, 43 µs/rev mozilla-central x0000_revs_xx000_added_x000_copies f78c615a656c 96a38b690156 : 30263 revs, 0.197792 s, 0.cc85eb s, +0.005072 s, × 1.0256, 6 µs/rev mozilla-central x00000_revs_x0000_added_x0000_copies 6832ae71433c 4c222a1d9a00 : 153721 revs, 1.259970 s, 1.219445 s, -0.040525 s, × 0.9678, 7 µs/rev mozilla-central x00000_revs_x00000_added_x000_copies 76caed42cf7c 1daa622bbe42 : 204976 revs, 1.689184 s, 1.613857 s, -0.075327 s, × 0.9554, 7 µs/rev mozilla-try x_revs_x_added_0_copies aaf6dde0deb8 9790f499805a : 2 revs, 0.000865 s, 0.000873 s, +0.000008 s, × 1.0092, 436 µs/rev mozilla-try x_revs_x000_added_0_copies d8d0222927b4 5bb8ce8c7450 : 2 revs, 0.000893 s, 0.000885 s, -0.000008 s, × 0.9910, 442 µs/rev mozilla-try x_revs_x_added_x_copies 092fcca11bdb 936255a0384a : 4 revs, 0.000172 s, 0.000161 s, -0.000011 s, × 0.9360, 40 µs/rev mozilla-try x_revs_x00_added_x_copies b53d2fadbdb5 017afae788ec : 2 revs, 0.001159 s, 0.001138 s, -0.000021 s, × 0.9819, 569 µs/rev mozilla-try x_revs_x000_added_x000_copies 20408ad61ce5 6f0ee96e21ad : 1 revs, 0.031621 s, 0.033399 s, +0.001778 s, × 1.0562, 33399 µs/rev mozilla-try x_revs_x0000_added_x0000_copies effb563bb7e5 c07a39dc4e80 : 6 revs, 0.068571 s, 0.075445 s, +0.006874 s, × 1.1002, 12574 µs/rev mozilla-try x000_revs_xx00_added_0_copies 6100d773079a 04a55431795e : 1593 revs, 0.006452 s, 0.006456 s, +0.000004 s, × 1.0006, 4 µs/rev mozilla-try x000_revs_x000_added_x_copies 9f17a6fc04f9 2d37b966abed : 41 revs, 0.005443 s, 0.005462 s, +0.000019 s, × 1.0035, 133 µs/rev mozilla-try x000_revs_x000_added_x000_copies 1346fd0130e4 4c65cbdabc1f : 6657 revs, 0.063180 s, 0.064117 s, +0.000937 s, × 1.0148, 9 µs/rev mozilla-try x0000_revs_x_added_0_copies 63519bfd42ee a36a2a865d92 : 40314 revs, 0.293564 s, 0.297563 s, +0.003999 s, × 1.0136, 7 µs/rev mozilla-try x0000_revs_x_added_x_copies 9fe69ff0762d bcabf2a78927 : 38690 revs, 0.286595 s, 0.282463 s, -0.004132 s, × 0.9856, 7 µs/rev mozilla-try x0000_revs_xx000_added_x_copies 156f6e2674f2 4d0f2c178e66 : 8598 revs, 0.083256 s, 0.084038 s, +0.000782 s, × 1.0094, 9 µs/rev mozilla-try x0000_revs_xx000_added_0_copies 9eec5917337d 67118cc6dcad : 615 revs, 0.027282 s, 0.027306 s, +0.000024 s, × 1.0009, 44 µs/rev mozilla-try x0000_revs_xx000_added_x000_copies 89294cd501d9 7ccb2fc7ccb5 : 97052 revs, 1.343373 s, 1.465264 s, +0.121891 s, × 1.0907, 15 µs/rev mozilla-try x0000_revs_x0000_added_x0000_copies e928c65095ed e951f4ad123a : 52031 revs, 0.665737 s, 0.690376 s, +0.024639 s, × 1.0370, 13 µs/rev mozilla-try x00000_revs_x_added_0_copies 6a320851d377 1ebb79acd503 : 363753 revs, 5.138169 s, 4.011322 s, -1.126847 s, × 0.7807, 11 µs/rev mozilla-try x00000_revs_x00000_added_0_copies dc8a3ca7010e d16fde900c9c : 34414 revs, 0.573276 s, 0.573541 s, +0.000265 s, × 1.0005, 16 µs/rev mozilla-try x00000_revs_x_added_x_copies 5173c4b6f97c 95d83ee7242d : 362229 revs, 5.127809 s, 3.981133 s, -1.146676 s, × 0.7764, 10 µs/rev mozilla-try x00000_revs_x000_added_x_copies 9126823d0e9c ca82787bb23c : 359344 revs, 4.971136 s, 3.996647 s, -0.974489 s, × 0.8040, 11 µs/rev mozilla-try x00000_revs_x0000_added_x0000_copies 8d3fafa80d4b eb884023b810 : 192665 revs, 1.741678 s, 1.520607 s, -0.221071 s, × 0.8731, 7 µs/rev mozilla-try x00000_revs_x00000_added_x0000_copies 1b661134e2ca 1ae03d022d6d : 228985 revs, 40.314822 s, 50.244975 s, +9.930153 s, × 1.2463, 219 µs/rev mozilla-try x00000_revs_x00000_added_x000_copies 9b2a99adc05e 8e29777b48e6 : 382065 revs, 20.048029 s, 20.030023 s, -0.018006 s, × 0.9991, 52 µs/rev private : 459513 revs, 37.179470 s, 24.490825 s, -12.688645 s, × 0.6587, 53 µs/rev ### Compared to the filelog based copy tracing Repo Case Source-Rev Dest-Rev # of revisions old time new time Difference Factor time per rev --------------------------------------------------------------------------------------------------------------------------------------------------------------- mercurial x_revs_x_added_0_copies ad6b123de1c7 39cfcef4f463 : 1 revs, 0.000918 s, 0.000041 s, -0.000877 s, × 0.044662, 40 µs/rev mercurial x_revs_x_added_x_copies 2b1c78674230 0c1d10351869 : 6 revs, 0.001853 s, 0.000116 s, -0.001737 s, × 0.062601, 19 µs/rev mercurial x000_revs_x000_added_x_copies 81f8ff2a9bf2 dd3267698d84 : 1032 revs, 0.018994 s, 0.004933 s, -0.014061 s, × 0.259714, 4 µs/rev pypy x_revs_x_added_0_copies aed021ee8ae8 099ed31b181b : 9 revs, 0.001532 s, 0.000193 s, -0.001339 s, × 0.125979, 21 µs/rev pypy x_revs_x000_added_0_copies 4aa4e1f8e19a 359343b9ac0e : 1 revs, 0.210633 s, 0.000048 s, -0.210585 s, × 0.000228, 47 µs/rev pypy x_revs_x_added_x_copies ac52eb7bbbb0 72e022663155 : 7 revs, 0.017041 s, 0.000114 s, -0.016927 s, × 0.006690, 16 µs/rev pypy x_revs_x00_added_x_copies c3b14617fbd7 ace7255d9a26 : 1 revs, 0.019474 s, 0.000319 s, -0.019155 s, × 0.016381, 318 µs/rev pypy x_revs_x000_added_x000_copies df6f7a526b60 a83dc6a2d56f : 6 revs, 0.763136 s, 0.012025 s, -0.751111 s, × 0.015757, 2003 µs/rev pypy x000_revs_xx00_added_0_copies 89a76aede314 2f22446ff07e : 4785 revs, 1.226569 s, 0.050525 s, -1.176044 s, × 0.041192, 10 µs/rev pypy x000_revs_x000_added_x_copies 8a3b5bfd266e 2c68e87c3efe : 6780 revs, 1.314572 s, 0.085713 s, -1.228859 s, × 0.065202, 12 µs/rev pypy x000_revs_x000_added_x000_copies 89a76aede314 7b3dda341c84 : 5441 revs, 1.686022 s, 0.061825 s, -1.624197 s, × 0.036669, 11 µs/rev pypy x0000_revs_x_added_0_copies d1defd0dc478 c9cb1334cc78 : 43645 revs, 0.001110 s, 0.543998 s, +0.542888 s, × 490.0882, 12 µs/rev pypy x0000_revs_xx000_added_0_copies bf2c629d0071 4ffed77c095c : 2 revs, 1.106265 s, 0.013455 s, -1.092810 s, × 0.012163, 6724 µs/rev pypy x0000_revs_xx000_added_x000_copies 08ea3258278e d9fa043f30c0 : 11316 revs, 1.377398 s, 0.117479 s, -1.259919 s, × 0.085291, 10 µs/rev netbeans x_revs_x_added_0_copies fb0955ffcbcd a01e9239f9e7 : 2 revs, 0.028579 s, 0.000084 s, -0.028495 s, × 0.002939, 41 µs/rev netbeans x_revs_x000_added_0_copies 6f360122949f 20eb231cc7d0 : 2 revs, 0.133644 s, 0.000111 s, -0.133533 s, × 0.000831, 55 µs/rev netbeans x_revs_x_added_x_copies 1ada3faf6fb6 5a39d12eecf4 : 3 revs, 0.025988 s, 0.000175 s, -0.025813 s, × 0.006734, 58 µs/rev netbeans x_revs_x00_added_x_copies 35be93ba1e2c 9eec5e90c05f : 9 revs, 0.053011 s, 0.000732 s, -0.052279 s, × 0.013808, 81 µs/rev netbeans x000_revs_xx00_added_0_copies eac3045b4fdd 51d4ae7f1290 : 1421 revs, 0.037858 s, 0.010062 s, -0.027796 s, × 0.265783, 7 µs/rev netbeans x000_revs_x000_added_x_copies e2063d266acd 6081d72689dc : 1533 revs, 0.200517 s, 0.015659 s, -0.184858 s, × 0.078093, 10 µs/rev netbeans x000_revs_x000_added_x000_copies ff453e9fee32 411350406ec2 : 5750 revs, 0.964542 s, 0.062744 s, -0.901798 s, × 0.065051, 10 µs/rev netbeans x0000_revs_xx000_added_x000_copies 588c2d1ced70 1aad62e59ddd : 66949 revs, 3.976210 s, 0.499449 s, -3.476761 s, × 0.125609, 7 µs/rev mozilla-central x_revs_x_added_0_copies 3697f962bb7b 7015fcdd43a2 : 2 revs, 0.025172 s, 0.000088 s, -0.025084 s, × 0.003496, 43 µs/rev mozilla-central x_revs_x000_added_0_copies dd390860c6c9 40d0c5bed75d : 8 revs, 0.145144 s, 0.000266 s, -0.144878 s, × 0.001833, 33 µs/rev mozilla-central x_revs_x_added_x_copies 8d198483ae3b 14207ffc2b2f : 9 revs, 0.026139 s, 0.000182 s, -0.025957 s, × 0.006963, 20 µs/rev mozilla-central x_revs_x00_added_x_copies 98cbc58cc6bc 446a150332c3 : 7 revs, 0.086184 s, 0.000656 s, -0.085528 s, × 0.007612, 93 µs/rev mozilla-central x_revs_x000_added_x000_copies 3c684b4b8f68 0a5e72d1b479 : 3 revs, 0.203187 s, 0.003389 s, -0.199798 s, × 0.016679, 1129 µs/rev mozilla-central x_revs_x0000_added_x0000_copies effb563bb7e5 c07a39dc4e80 : 6 revs, 2.255675 s, 0.075882 s, -2.179793 s, × 0.033640, 12644 µs/rev mozilla-central x000_revs_xx00_added_0_copies 6100d773079a 04a55431795e : 1593 revs, 0.091147 s, 0.006479 s, -0.084668 s, × 0.071083, 4 µs/rev mozilla-central x000_revs_x000_added_x_copies 9f17a6fc04f9 2d37b966abed : 41 revs, 0.767530 s, 0.004889 s, -0.762641 s, × 0.006370, 119 µs/rev mozilla-central x000_revs_x000_added_x000_copies 7c97034feb78 4407bd0c6330 : 7839 revs, 1.185330 s, 0.064394 s, -1.120936 s, × 0.054326, 8 µs/rev mozilla-central x0000_revs_xx000_added_0_copies 9eec5917337d 67118cc6dcad : 615 revs, 6.831179 s, 0.026815 s, -6.804364 s, × 0.003925, 43 µs/rev mozilla-central x0000_revs_xx000_added_x000_copies f78c615a656c 96a38b690156 : 30263 revs, 3.373551 s, 0.cc85eb s, -3.170687 s, × 0.060134, 6 µs/rev mozilla-central x00000_revs_x0000_added_x0000_copies 6832ae71433c 4c222a1d9a00 : 153721 revs, 16.540604 s, 1.219445 s, -15.321159 s, × 0.073724, 7 µs/rev mozilla-central x00000_revs_x00000_added_x000_copies 76caed42cf7c 1daa622bbe42 : 204976 revs, 21.527155 s, 1.613857 s, -19.913298 s, × 0.074968, 7 µs/rev mozilla-try x_revs_x_added_0_copies aaf6dde0deb8 9790f499805a : 2 revs, 0.084540 s, 0.000873 s, -0.083667 s, × 0.010326, 436 µs/rev mozilla-try x_revs_x000_added_0_copies d8d0222927b4 5bb8ce8c7450 : 2 revs, 0.507151 s, 0.000885 s, -0.506266 s, × 0.001745, 442 µs/rev mozilla-try x_revs_x_added_x_copies 092fcca11bdb 936255a0384a : 4 revs, 0.021748 s, 0.000161 s, -0.021587 s, × 0.007403, 40 µs/rev mozilla-try x_revs_x00_added_x_copies b53d2fadbdb5 017afae788ec : 2 revs, 0.236786 s, 0.001138 s, -0.235648 s, × 0.004806, 568 µs/rev mozilla-try x_revs_x000_added_x000_copies 20408ad61ce5 6f0ee96e21ad : 1 revs, 1.111735 s, 0.033399 s, -1.078336 s, × 0.030042, 33365 µs/rev mozilla-try x_revs_x0000_added_x0000_copies effb563bb7e5 c07a39dc4e80 : 6 revs, 2.228030 s, 0.075445 s, -2.152585 s, × 0.033862, 12572 µs/rev mozilla-try x000_revs_xx00_added_0_copies 6100d773079a 04a55431795e : 1593 revs, 0.091289 s, 0.006456 s, -0.084833 s, × 0.070720, 4 µs/rev mozilla-try x000_revs_x000_added_x_copies 9f17a6fc04f9 2d37b966abed : 41 revs, 0.771361 s, 0.005462 s, -0.765899 s, × 0.007081, 133 µs/rev mozilla-try x000_revs_x000_added_x000_copies 1346fd0130e4 4c65cbdabc1f : 6657 revs, 1.189483 s, 0.064117 s, -1.125366 s, × 0.053903, 9 µs/rev mozilla-try x0000_revs_x_added_0_copies 63519bfd42ee a36a2a865d92 : 40314 revs, 0.089756 s, 0.297563 s, +0.207807 s, × 3.315244, 7 µs/rev mozilla-try x0000_revs_x_added_x_copies 9fe69ff0762d bcabf2a78927 : 38690 revs, 0.084888 s, 0.282463 s, +0.197575 s, × 3.327479, 7 µs/rev mozilla-try x0000_revs_xx000_added_x_copies 156f6e2674f2 4d0f2c178e66 : 8598 revs, 7.682665 s, 0.084038 s, -7.598627 s, × 0.010939, 9 µs/rev mozilla-try x0000_revs_xx000_added_0_copies 9eec5917337d 67118cc6dcad : 615 revs, 6.894680 s, 0.027306 s, -6.867374 s, × 0.003960, 44 µs/rev mozilla-try x0000_revs_xx000_added_x000_copies 89294cd501d9 7ccb2fc7ccb5 : 97052 revs, 7.650907 s, 1.465264 s, -6.185643 s, × 0.191515, 15 µs/rev mozilla-try x0000_revs_x0000_added_x0000_copies e928c65095ed e951f4ad123a : 52031 revs, 9.898788 s, 0.690376 s, -9.208412 s, × 0.069743, 13 µs/rev mozilla-try x00000_revs_x_added_0_copies 6a320851d377 1ebb79acd503 : 363753 revs, 0.092208 s, 4.011322 s, +3.919114 s, × 43.50297, 11 µs/rev mozilla-try x00000_revs_x00000_added_0_copies dc8a3ca7010e d16fde900c9c : 34414 revs, 28.130003 s, 0.573541 s, -27.556462 s, × 0.020389, 16 µs/rev mozilla-try x00000_revs_x_added_x_copies 5173c4b6f97c 95d83ee7242d : 362229 revs, 0.093366 s, 3.981133 s, +3.887767 s, × 42.64007, 10 µs/rev mozilla-try x00000_revs_x000_added_x_copies 9126823d0e9c ca82787bb23c : 359344 revs, 0.229368 s, 3.996647 s, +3.767279 s, × 17.42460, 11 µs/rev mozilla-try x00000_revs_x0000_added_x0000_copies 8d3fafa80d4b eb884023b810 : 192665 revs, 19.624851 s, 1.520607 s, -18.104244 s, × 0.077484, 7 µs/rev mozilla-try x00000_revs_x00000_added_x0000_copies 1b661134e2ca 1ae03d022d6d : 228985 revs, 22.070126 s, 50.244975 s, +28.174849 s, × 2.276606, 219 µs/rev mozilla-try x00000_revs_x00000_added_x000_copies 9b2a99adc05e 8e29777b48e6 : 382065 revs, 26.006524 s, 20.030023 s, -5.976501 s, × 0.770192, 52 µs/rev private : 459513 revs, 18.704612 s, 24.490825 s, +5.786213 s, × 1.309347, 53 µs/rev Differential Revision: https://phab.mercurial-scm.org/D9656
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
38021
538e850ae737 tests: mark tests that fail when using chg as #require no-chg
Kyle Lippincott <spectral@google.com>
parents: 37846
diff changeset
     1
#require no-reposimplestore no-chg
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
     2
#testcases git-server hg-server
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
     3
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
     4
#if git-server
35139
a2e927ded455 hghave: add a check for lfs-test-server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35098
diff changeset
     5
#require lfs-test-server
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
     6
#else
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
     7
#require serve
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
     8
#endif
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
     9
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    10
#if git-server
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    11
  $ LFS_LISTEN="tcp://:$HGPORT"
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    12
  $ LFS_HOST="localhost:$HGPORT"
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    13
  $ LFS_PUBLIC=1
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    14
  $ export LFS_LISTEN LFS_HOST LFS_PUBLIC
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    15
#else
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    16
  $ LFS_HOST="localhost:$HGPORT/.git/info/lfs"
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    17
#endif
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    18
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    19
#if no-windows git-server
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    20
  $ lfs-test-server &> lfs-server.log &
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    21
  $ echo $! >> $DAEMON_PIDS
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    22
#endif
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    23
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    24
#if windows git-server
35141
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    25
  $ cat >> $TESTTMP/spawn.py <<EOF
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    26
  > import os
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    27
  > import subprocess
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    28
  > import sys
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    29
  > 
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    30
  > for path in os.environ["PATH"].split(os.pathsep):
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    31
  >     exe = os.path.join(path, 'lfs-test-server.exe')
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    32
  >     if os.path.exists(exe):
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    33
  >         with open('lfs-server.log', 'wb') as out:
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    34
  >             p = subprocess.Popen(exe, stdout=out, stderr=out)
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    35
  >             sys.stdout.write('%s\n' % p.pid)
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    36
  >             sys.exit(0)
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    37
  > sys.exit(1)
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    38
  > EOF
39707
5abc47d4ca6b tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents: 39405
diff changeset
    39
  $ "$PYTHON" $TESTTMP/spawn.py >> $DAEMON_PIDS
35141
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
    40
#endif
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    41
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    42
  $ cat >> $HGRCPATH <<EOF
44274
87167caa2989 lfs: enable workers by default
Matt Harbison <matt_harbison@yahoo.com>
parents: 42931
diff changeset
    43
  > [experimental]
87167caa2989 lfs: enable workers by default
Matt Harbison <matt_harbison@yahoo.com>
parents: 42931
diff changeset
    44
  > lfs.worker-enable = False
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    45
  > [extensions]
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    46
  > lfs=
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    47
  > [lfs]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    48
  > url=http://foo:bar@$LFS_HOST
35618
c780e0649e41 lfs: migrate most file filtering from threshold to custom filter
Matt Harbison <matt_harbison@yahoo.com>
parents: 35568
diff changeset
    49
  > track=all()
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    50
  > [web]
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    51
  > push_ssl = False
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    52
  > allow-push = *
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    53
  > EOF
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    54
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    55
Use a separate usercache, otherwise the server sees what the client commits, and
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    56
never requests a transfer.
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    57
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    58
#if hg-server
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    59
  $ hg init server
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    60
  $ hg --config "lfs.usercache=$TESTTMP/servercache" -R server serve -d \
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    61
  >    -p $HGPORT --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    62
  $ cat hg.pid >> $DAEMON_PIDS
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    63
#endif
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    64
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    65
  $ hg init repo1
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    66
  $ cd repo1
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    67
  $ echo THIS-IS-LFS > a
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    68
  $ hg commit -m a -A a
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    69
35526
e8f80529abeb lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35504
diff changeset
    70
A push can be serviced directly from the usercache if it isn't in the local
e8f80529abeb lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35504
diff changeset
    71
store.
e8f80529abeb lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35504
diff changeset
    72
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    73
  $ hg init ../repo2
35526
e8f80529abeb lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35504
diff changeset
    74
  $ mv .hg/store/lfs .hg/store/lfs_
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    75
  $ hg push ../repo2 --debug
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    76
  http auth: user foo, password ***
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    77
  pushing to ../repo2
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    78
  http auth: user foo, password ***
37564
31a4ea773369 lfs: infer the blob store URL from an explicit push dest or default-push
Matt Harbison <matt_harbison@yahoo.com>
parents: 37518
diff changeset
    79
  http auth: user foo, password ***
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    80
  query 1; heads
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
    81
  searching for changes
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    82
  1 total queries in *s (glob)
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    83
  listing keys for "phases"
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    84
  checking for updated bookmarks
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    85
  listing keys for "bookmarks"
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
    86
  lfs: computing set of blobs to upload
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    87
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    88
  Content-Length: 309 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    89
  Content-Length: 350 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    90
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    91
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
    92
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    93
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    94
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    95
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    96
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    97
          "upload": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
    98
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
    99
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   100
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   101
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   102
            "href": "http://localhost:$HGPORT/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   103
            "href": "http://localhost:$HGPORT/.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   104
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   105
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   106
        "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   107
        "size": 12
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   108
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   109
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   110
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   111
  }
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   112
  lfs: uploading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes)
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   113
  Status: 200 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   114
  Status: 201 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   115
  Content-Length: 0
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   116
  Content-Type: text/plain; charset=utf-8
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   117
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   118
  Server: testing stub value (hg-server !)
35433
f98fac24b757 lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents: 35280
diff changeset
   119
  lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b
35881
fa993c3c8462 lfs: emit a status message to indicate how many blobs were uploaded
Matt Harbison <matt_harbison@yahoo.com>
parents: 35666
diff changeset
   120
  lfs: uploaded 1 files (12 bytes)
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   121
  1 changesets found
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   122
  list of changesets:
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   123
  99a7098854a3984a5c9eab0fc7a2906697b7cb5c
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   124
  bundle2-output-bundle: "HG20", 4 parts total
36990
b6a4881cec19 test-lfs: glob over some output changes
Matt Harbison <matt_harbison@yahoo.com>
parents: 36926
diff changeset
   125
  bundle2-output-part: "replycaps" * bytes payload (glob)
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   126
  bundle2-output-part: "check:heads" streamed payload
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   127
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   128
  bundle2-output-part: "phase-heads" 24 bytes payload
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   129
  bundle2-input-bundle: with-transaction
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   130
  bundle2-input-part: "replycaps" supported
36990
b6a4881cec19 test-lfs: glob over some output changes
Matt Harbison <matt_harbison@yahoo.com>
parents: 36926
diff changeset
   131
  bundle2-input-part: total payload size * (glob)
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   132
  bundle2-input-part: "check:heads" supported
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   133
  bundle2-input-part: total payload size 20
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   134
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   135
  adding changesets
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   136
  add changeset 99a7098854a3
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   137
  adding manifests
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   138
  adding file changes
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   139
  adding a revisions
35504
6bb940de4c4c lfs: add the 'lfs' requirement in the changegroup transaction introducing lfs
Matt Harbison <matt_harbison@yahoo.com>
parents: 35476
diff changeset
   140
  calling hook pretxnchangegroup.lfs: hgext.lfs.checkrequireslfs
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   141
  bundle2-input-part: total payload size 617
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   142
  bundle2-input-part: "phase-heads" supported
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   143
  bundle2-input-part: total payload size 24
42931
181ee2118a96 bundle2: fix an off-by-one in debug message of number of parts
Martin von Zweigbergk <martinvonz@google.com>
parents: 42897
diff changeset
   144
  bundle2-input-bundle: 4 parts total
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   145
  updating the branch cache
42897
d7304434390f changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 39707
diff changeset
   146
  added 1 changesets with 1 changes to 1 files
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   147
  bundle2-output-bundle: "HG20", 1 parts total
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   148
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   149
  bundle2-input-bundle: no-transaction
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   150
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
42931
181ee2118a96 bundle2: fix an off-by-one in debug message of number of parts
Martin von Zweigbergk <martinvonz@google.com>
parents: 42897
diff changeset
   151
  bundle2-input-bundle: 1 parts total
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   152
  listing keys for "phases"
35526
e8f80529abeb lfs: use the local store method for opening a blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35504
diff changeset
   153
  $ mv .hg/store/lfs_ .hg/store/lfs
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   154
35280
8e72f9152c4d lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents: 35141
diff changeset
   155
Clear the cache to force a download
8e72f9152c4d lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents: 35141
diff changeset
   156
  $ rm -rf `hg config lfs.usercache`
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   157
  $ cd ../repo2
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   158
  $ hg update tip --debug
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   159
  http auth: user foo, password ***
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   160
  resolving manifests
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   161
   branchmerge: False, force: False, partial: False
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   162
   ancestor: 000000000000, local: 000000000000+, remote: 99a7098854a3
37518
092eff6833a7 lfs: infer the blob store URL from paths.default
Matt Harbison <matt_harbison@yahoo.com>
parents: 37348
diff changeset
   163
  http auth: user foo, password ***
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   164
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   165
  Content-Length: 311 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   166
  Content-Length: 352 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   167
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   168
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   169
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   170
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   171
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   172
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   173
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   174
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   175
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   176
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   177
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   178
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   179
            "href": "http://localhost:$HGPORT/*/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   180
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   181
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   182
        "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   183
        "size": 12
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   184
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   185
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   186
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   187
  }
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   188
  lfs: downloading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   189
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   190
  Content-Length: 12
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   191
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   192
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   193
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   194
  Server: testing stub value (hg-server !)
35473
02f54a1ec9eb lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35433
diff changeset
   195
  lfs: adding 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b to the usercache
35433
f98fac24b757 lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents: 35280
diff changeset
   196
  lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b
37765
ab04972a33ef lfs: enable the final download count status message
Matt Harbison <matt_harbison@yahoo.com>
parents: 37762
diff changeset
   197
  lfs: downloaded 1 files (12 bytes)
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   198
   a: remote created -> g
35922
0b79f99fd7b0 lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents: 35881
diff changeset
   199
  getting a
35473
02f54a1ec9eb lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35433
diff changeset
   200
  lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   201
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   202
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   203
When the server has some blobs already.  `hg serve` doesn't offer to upload
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   204
blobs that it already knows about.  Note that lfs-test-server is simply
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   205
toggling the action to 'download'.  The Batch API spec says it should omit the
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   206
actions property completely.
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   207
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   208
  $ hg mv a b
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   209
  $ echo ANOTHER-LARGE-FILE > c
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   210
  $ echo ANOTHER-LARGE-FILE2 > d
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   211
  $ hg commit -m b-and-c -A b c d
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   212
  $ hg push ../repo1 --debug
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   213
  http auth: user foo, password ***
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   214
  pushing to ../repo1
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   215
  http auth: user foo, password ***
37564
31a4ea773369 lfs: infer the blob store URL from an explicit push dest or default-push
Matt Harbison <matt_harbison@yahoo.com>
parents: 37518
diff changeset
   216
  http auth: user foo, password ***
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   217
  query 1; heads
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   218
  searching for changes
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   219
  all remote heads known locally
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   220
  listing keys for "phases"
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   221
  checking for updated bookmarks
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   222
  listing keys for "bookmarks"
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   223
  listing keys for "bookmarks"
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   224
  lfs: computing set of blobs to upload
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   225
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   226
  Content-Length: 901 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   227
  Content-Length: 755 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   228
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   229
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   230
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   231
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   232
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   233
      {
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   234
        "actions": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   235
          "download": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   236
            "expires_at": "$ISO_8601_DATE_TIME$" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   237
            "header": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   238
              "Accept": "application/vnd.git-lfs" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   239
            } (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   240
            "href": "http://localhost:$HGPORT/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   241
          } (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   242
        } (git-server !)
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   243
        "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   244
        "size": 12
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   245
      }
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   246
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   247
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   248
          "upload": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   249
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   250
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   251
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   252
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   253
            "href": "http://localhost:$HGPORT/*/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   254
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   255
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   256
        "oid": "37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   257
        "size": 20
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   258
      }
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   259
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   260
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   261
          "upload": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   262
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   263
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   264
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   265
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   266
            "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   267
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   268
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   269
        "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   270
        "size": 19
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   271
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   272
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   273
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   274
  }
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   275
  lfs: need to transfer 2 objects (39 bytes)
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   276
  lfs: uploading 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 (20 bytes)
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   277
  Status: 200 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   278
  Status: 201 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   279
  Content-Length: 0
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   280
  Content-Type: text/plain; charset=utf-8
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   281
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   282
  Server: testing stub value (hg-server !)
35433
f98fac24b757 lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents: 35280
diff changeset
   283
  lfs: processed: 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   284
  lfs: uploading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes)
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   285
  Status: 200 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   286
  Status: 201 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   287
  Content-Length: 0
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   288
  Content-Type: text/plain; charset=utf-8
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   289
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   290
  Server: testing stub value (hg-server !)
35433
f98fac24b757 lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents: 35280
diff changeset
   291
  lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
35881
fa993c3c8462 lfs: emit a status message to indicate how many blobs were uploaded
Matt Harbison <matt_harbison@yahoo.com>
parents: 35666
diff changeset
   292
  lfs: uploaded 2 files (39 bytes)
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   293
  1 changesets found
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   294
  list of changesets:
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   295
  dfca2c9e2ef24996aa61ba2abd99277d884b3d63
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   296
  bundle2-output-bundle: "HG20", 5 parts total
36990
b6a4881cec19 test-lfs: glob over some output changes
Matt Harbison <matt_harbison@yahoo.com>
parents: 36926
diff changeset
   297
  bundle2-output-part: "replycaps" * bytes payload (glob)
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   298
  bundle2-output-part: "check:phases" 24 bytes payload
44412
edc8504bc26b exchange: turn on option that makes concurrent pushes work better
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents: 44274
diff changeset
   299
  bundle2-output-part: "check:updated-heads" streamed payload
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   300
  bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   301
  bundle2-output-part: "phase-heads" 24 bytes payload
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   302
  bundle2-input-bundle: with-transaction
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   303
  bundle2-input-part: "replycaps" supported
36990
b6a4881cec19 test-lfs: glob over some output changes
Matt Harbison <matt_harbison@yahoo.com>
parents: 36926
diff changeset
   304
  bundle2-input-part: total payload size * (glob)
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   305
  bundle2-input-part: "check:phases" supported
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   306
  bundle2-input-part: total payload size 24
44412
edc8504bc26b exchange: turn on option that makes concurrent pushes work better
Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
parents: 44274
diff changeset
   307
  bundle2-input-part: "check:updated-heads" supported
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   308
  bundle2-input-part: total payload size 20
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   309
  bundle2-input-part: "changegroup" (params: 1 mandatory) supported
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   310
  adding changesets
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   311
  add changeset dfca2c9e2ef2
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   312
  adding manifests
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   313
  adding file changes
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   314
  adding b revisions
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   315
  adding c revisions
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   316
  adding d revisions
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   317
  bundle2-input-part: total payload size 1315
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   318
  bundle2-input-part: "phase-heads" supported
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   319
  bundle2-input-part: total payload size 24
42931
181ee2118a96 bundle2: fix an off-by-one in debug message of number of parts
Martin von Zweigbergk <martinvonz@google.com>
parents: 42897
diff changeset
   320
  bundle2-input-bundle: 5 parts total
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   321
  updating the branch cache
42897
d7304434390f changegroup: move message about added changes to transaction summary
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 39707
diff changeset
   322
  added 1 changesets with 3 changes to 3 files
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   323
  bundle2-output-bundle: "HG20", 1 parts total
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   324
  bundle2-output-part: "reply:changegroup" (advisory) (params: 0 advisory) empty payload
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   325
  bundle2-input-bundle: no-transaction
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   326
  bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported
42931
181ee2118a96 bundle2: fix an off-by-one in debug message of number of parts
Martin von Zweigbergk <martinvonz@google.com>
parents: 42897
diff changeset
   327
  bundle2-input-bundle: 1 parts total
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   328
  listing keys for "phases"
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   329
35280
8e72f9152c4d lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents: 35141
diff changeset
   330
Clear the cache to force a download
8e72f9152c4d lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents: 35141
diff changeset
   331
  $ rm -rf `hg config lfs.usercache`
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   332
  $ hg --repo ../repo1 update tip --debug
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   333
  http auth: user foo, password ***
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   334
  resolving manifests
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   335
   branchmerge: False, force: False, partial: False
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   336
   ancestor: 99a7098854a3, local: 99a7098854a3+, remote: dfca2c9e2ef2
37518
092eff6833a7 lfs: infer the blob store URL from paths.default
Matt Harbison <matt_harbison@yahoo.com>
parents: 37348
diff changeset
   337
  http auth: user foo, password ***
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   338
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   339
  Content-Length: 608 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   340
  Content-Length: 670 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   341
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   342
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   343
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   344
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   345
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   346
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   347
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   348
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   349
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   350
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   351
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   352
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   353
            "href": "http://localhost:$HGPORT/*/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   354
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   355
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   356
        "oid": "37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   357
        "size": 20
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   358
      }
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   359
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   360
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   361
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   362
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   363
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   364
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   365
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   366
            "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   367
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   368
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   369
        "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   370
        "size": 19
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   371
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   372
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   373
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   374
  }
35922
0b79f99fd7b0 lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents: 35881
diff changeset
   375
  lfs: need to transfer 2 objects (39 bytes)
0b79f99fd7b0 lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents: 35881
diff changeset
   376
  lfs: downloading 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 (20 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   377
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   378
  Content-Length: 20
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   379
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   380
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   381
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   382
  Server: testing stub value (hg-server !)
35922
0b79f99fd7b0 lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents: 35881
diff changeset
   383
  lfs: adding 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 to the usercache
0b79f99fd7b0 lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents: 35881
diff changeset
   384
  lfs: processed: 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   385
  lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   386
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   387
  Content-Length: 19
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   388
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   389
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   390
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   391
  Server: testing stub value (hg-server !)
35473
02f54a1ec9eb lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35433
diff changeset
   392
  lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache
35433
f98fac24b757 lfs: using workers in lfs prefetch
Wojciech Lis <wlis@fb.com>
parents: 35280
diff changeset
   393
  lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
37765
ab04972a33ef lfs: enable the final download count status message
Matt Harbison <matt_harbison@yahoo.com>
parents: 37762
diff changeset
   394
  lfs: downloaded 2 files (39 bytes)
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   395
   b: remote created -> g
35922
0b79f99fd7b0 lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents: 35881
diff changeset
   396
  getting b
0b79f99fd7b0 lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents: 35881
diff changeset
   397
  lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   398
   c: remote created -> g
35922
0b79f99fd7b0 lfs: prefetch lfs blobs when applying merge updates
Matt Harbison <matt_harbison@yahoo.com>
parents: 35881
diff changeset
   399
  getting c
35473
02f54a1ec9eb lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35433
diff changeset
   400
  lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   401
   d: remote created -> g
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   402
  getting d
35473
02f54a1ec9eb lfs: add note messages indicating what store holds the lfs blob
Matt Harbison <matt_harbison@yahoo.com>
parents: 35433
diff changeset
   403
  lfs: found 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 in the local lfs store
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   404
  3 files updated, 0 files merged, 0 files removed, 0 files unresolved
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   405
35476
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   406
Test a corrupt file download, but clear the cache first to force a download.
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   407
`hg serve` indicates a corrupt file without transferring it, unlike
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   408
lfs-test-server.
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   409
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   410
  $ rm -rf `hg config lfs.usercache`
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   411
#if git-server
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   412
  $ cp $TESTTMP/lfs-content/d1/1e/1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 blob
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   413
  $ echo 'damage' > $TESTTMP/lfs-content/d1/1e/1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   414
#else
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   415
  $ cp $TESTTMP/server/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 blob
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   416
  $ echo 'damage' > $TESTTMP/server/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   417
#endif
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   418
  $ rm ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   419
  $ rm ../repo1/*
35476
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   420
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   421
TODO: give the proper error indication from `hg serve`
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   422
46343
47b11629a0f2 tests: skip a detailed exit status in test-lfs-test-server
Matt Harbison <matt_harbison@yahoo.com>
parents: 46116
diff changeset
   423
TODO: reconsider the except base class so that the git and hg errors yield the
47b11629a0f2 tests: skip a detailed exit status in test-lfs-test-server
Matt Harbison <matt_harbison@yahoo.com>
parents: 46116
diff changeset
   424
same exit status.
47b11629a0f2 tests: skip a detailed exit status in test-lfs-test-server
Matt Harbison <matt_harbison@yahoo.com>
parents: 46116
diff changeset
   425
47b11629a0f2 tests: skip a detailed exit status in test-lfs-test-server
Matt Harbison <matt_harbison@yahoo.com>
parents: 46116
diff changeset
   426
  $ hg --repo ../repo1 update -C tip --debug --config ui.detailed-exit-code=False
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   427
  http auth: user foo, password ***
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   428
  resolving manifests
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   429
   branchmerge: False, force: True, partial: False
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   430
   ancestor: dfca2c9e2ef2+, local: dfca2c9e2ef2+, remote: dfca2c9e2ef2
37518
092eff6833a7 lfs: infer the blob store URL from paths.default
Matt Harbison <matt_harbison@yahoo.com>
parents: 37348
diff changeset
   431
  http auth: user foo, password ***
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   432
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   433
  Content-Length: 311 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   434
  Content-Length: 183 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   435
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   436
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   437
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   438
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   439
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   440
      {
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   441
        "actions": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   442
          "download": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   443
            "expires_at": "$ISO_8601_DATE_TIME$" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   444
            "header": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   445
              "Accept": "application/vnd.git-lfs" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   446
            } (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   447
            "href": "http://localhost:$HGPORT/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   448
          } (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   449
        "error": { (hg-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   450
          "code": 422 (hg-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   451
          "message": "The object is corrupt" (hg-server !)
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   452
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   453
        "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   454
        "size": 19
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   455
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   456
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   457
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   458
  }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   459
  lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes) (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   460
  Status: 200 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   461
  Content-Length: 7 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   462
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   463
  Date: $HTTP_DATE$ (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   464
  abort: corrupt remote lfs object: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (git-server !)
45906
95c4cca641f6 errors: remove trailing "!" from some error messages for consistency
Martin von Zweigbergk <martinvonz@google.com>
parents: 44412
diff changeset
   465
  abort: LFS server error for "c": Validation error (hg-server !)
46343
47b11629a0f2 tests: skip a detailed exit status in test-lfs-test-server
Matt Harbison <matt_harbison@yahoo.com>
parents: 46116
diff changeset
   466
  [255]
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   467
35476
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   468
The corrupted blob is not added to the usercache or local store
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   469
35476
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   470
  $ test -f ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   471
  [1]
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   472
  $ test -f `hg config lfs.usercache`/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   473
  [1]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   474
#if git-server
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   475
  $ cp blob $TESTTMP/lfs-content/d1/1e/1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   476
#else
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   477
  $ cp blob $TESTTMP/server/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   478
#endif
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   479
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   480
Test a corrupted file upload
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   481
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   482
  $ echo 'another lfs blob' > b
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   483
  $ hg ci -m 'another blob'
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   484
  $ echo 'damage' > .hg/store/lfs/objects/e6/59058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   485
  $ hg push --debug ../repo1
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   486
  http auth: user foo, password ***
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   487
  pushing to ../repo1
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   488
  http auth: user foo, password ***
37564
31a4ea773369 lfs: infer the blob store URL from an explicit push dest or default-push
Matt Harbison <matt_harbison@yahoo.com>
parents: 37518
diff changeset
   489
  http auth: user foo, password ***
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   490
  query 1; heads
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   491
  searching for changes
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   492
  all remote heads known locally
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   493
  listing keys for "phases"
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   494
  checking for updated bookmarks
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   495
  listing keys for "bookmarks"
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   496
  listing keys for "bookmarks"
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   497
  lfs: computing set of blobs to upload
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   498
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   499
  Content-Length: 309 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   500
  Content-Length: 350 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   501
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   502
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   503
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   504
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   505
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   506
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   507
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   508
          "upload": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   509
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   510
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   511
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   512
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   513
            "href": "http://localhost:$HGPORT/*/e659058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   514
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   515
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   516
        "oid": "e659058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   517
        "size": 17
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   518
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   519
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   520
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   521
  }
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   522
  lfs: uploading e659058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0 (17 bytes)
35476
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   523
  abort: detected corrupt lfs object: e659058e26b07b39d2a9c7145b3f99b41f797b6621c8076600e9cb7ee88291f0
417e8e040102 lfs: verify lfs object content when transferring to and from the remote store
Matt Harbison <matt_harbison@yahoo.com>
parents: 35475
diff changeset
   524
  (run hg verify)
35474
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   525
  [255]
16660fd4428d test-lfs: add tests around corrupted lfs objects
Matt Harbison <matt_harbison@yahoo.com>
parents: 35473
diff changeset
   526
35925
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   527
Archive will prefetch blobs in a group
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   528
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   529
  $ rm -rf .hg/store/lfs `hg config lfs.usercache`
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   530
  $ hg archive --debug -r 1 ../archive
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   531
  http auth: user foo, password ***
37518
092eff6833a7 lfs: infer the blob store URL from paths.default
Matt Harbison <matt_harbison@yahoo.com>
parents: 37348
diff changeset
   532
  http auth: user foo, password ***
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   533
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   534
  Content-Length: 905 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   535
  Content-Length: 988 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   536
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   537
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   538
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   539
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   540
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   541
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   542
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   543
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   544
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   545
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   546
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   547
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   548
            "href": "http://localhost:$HGPORT/*/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   549
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   550
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   551
        "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   552
        "size": 12
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   553
      }
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   554
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   555
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   556
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   557
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   558
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   559
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   560
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   561
            "href": "http://localhost:$HGPORT/*/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   562
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   563
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   564
        "oid": "37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   565
        "size": 20
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   566
      }
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   567
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   568
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   569
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   570
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   571
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   572
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   573
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   574
            "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   575
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   576
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   577
        "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   578
        "size": 19
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   579
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   580
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   581
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   582
  }
35927
9b413478f261 lfs: deduplicate oids in the transfer
Matt Harbison <matt_harbison@yahoo.com>
parents: 35926
diff changeset
   583
  lfs: need to transfer 3 objects (51 bytes)
35925
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   584
  lfs: downloading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   585
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   586
  Content-Length: 12
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   587
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   588
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   589
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   590
  Server: testing stub value (hg-server !)
35925
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   591
  lfs: adding 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b to the usercache
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   592
  lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   593
  lfs: downloading 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 (20 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   594
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   595
  Content-Length: 20
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   596
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   597
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   598
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   599
  Server: testing stub value (hg-server !)
35925
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   600
  lfs: adding 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 to the usercache
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   601
  lfs: processed: 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   602
  lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   603
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   604
  Content-Length: 19
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   605
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   606
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   607
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   608
  Server: testing stub value (hg-server !)
35925
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   609
  lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   610
  lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
37765
ab04972a33ef lfs: enable the final download count status message
Matt Harbison <matt_harbison@yahoo.com>
parents: 37762
diff changeset
   611
  lfs: downloaded 3 files (51 bytes)
35925
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   612
  lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   613
  lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   614
  lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   615
  lfs: found 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 in the local lfs store
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   616
  $ find ../archive | sort
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   617
  ../archive
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   618
  ../archive/.hg_archival.txt
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   619
  ../archive/a
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   620
  ../archive/b
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   621
  ../archive/c
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   622
  ../archive/d
533f04d4cb6d archive: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35924
diff changeset
   623
35926
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   624
Cat will prefetch blobs in a group
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   625
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   626
  $ rm -rf .hg/store/lfs `hg config lfs.usercache`
37762
7269b87f817c scmutil: teach the file prefetch hook to handle multiple commits
Matt Harbison <matt_harbison@yahoo.com>
parents: 37564
diff changeset
   627
  $ hg cat --debug -r 1 a b c nonexistent
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   628
  http auth: user foo, password ***
37518
092eff6833a7 lfs: infer the blob store URL from paths.default
Matt Harbison <matt_harbison@yahoo.com>
parents: 37348
diff changeset
   629
  http auth: user foo, password ***
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   630
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   631
  Content-Length: 608 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   632
  Content-Length: 670 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   633
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   634
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   635
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   636
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   637
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   638
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   639
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   640
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   641
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   642
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   643
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   644
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   645
            "href": "http://localhost:$HGPORT/*/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   646
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   647
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   648
        "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   649
        "size": 12
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   650
      }
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   651
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   652
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   653
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   654
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   655
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   656
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   657
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   658
            "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   659
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   660
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   661
        "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   662
        "size": 19
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   663
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   664
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   665
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   666
  }
35927
9b413478f261 lfs: deduplicate oids in the transfer
Matt Harbison <matt_harbison@yahoo.com>
parents: 35926
diff changeset
   667
  lfs: need to transfer 2 objects (31 bytes)
35926
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   668
  lfs: downloading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   669
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   670
  Content-Length: 12
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   671
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   672
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   673
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   674
  Server: testing stub value (hg-server !)
35926
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   675
  lfs: adding 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b to the usercache
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   676
  lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   677
  lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   678
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   679
  Content-Length: 19
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   680
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   681
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   682
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   683
  Server: testing stub value (hg-server !)
35926
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   684
  lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   685
  lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
37765
ab04972a33ef lfs: enable the final download count status message
Matt Harbison <matt_harbison@yahoo.com>
parents: 37762
diff changeset
   686
  lfs: downloaded 2 files (31 bytes)
35926
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   687
  lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   688
  THIS-IS-LFS
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   689
  lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   690
  THIS-IS-LFS
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   691
  lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   692
  ANOTHER-LARGE-FILE
37762
7269b87f817c scmutil: teach the file prefetch hook to handle multiple commits
Matt Harbison <matt_harbison@yahoo.com>
parents: 37564
diff changeset
   693
  nonexistent: no such file in rev dfca2c9e2ef2
35926
264b90a060b7 cat: call the storage prefetch hook
Matt Harbison <matt_harbison@yahoo.com>
parents: 35925
diff changeset
   694
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   695
Revert will prefetch blobs in a group
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   696
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   697
  $ rm -rf .hg/store/lfs
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   698
  $ rm -rf `hg config lfs.usercache`
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   699
  $ rm *
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   700
  $ hg revert --all -r 1 --debug
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   701
  http auth: user foo, password ***
37518
092eff6833a7 lfs: infer the blob store URL from paths.default
Matt Harbison <matt_harbison@yahoo.com>
parents: 37348
diff changeset
   702
  http auth: user foo, password ***
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   703
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   704
  Content-Length: 905 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   705
  Content-Length: 988 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   706
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   707
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   708
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   709
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   710
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   711
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   712
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   713
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   714
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   715
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   716
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   717
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   718
            "href": "http://localhost:$HGPORT/*/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   719
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   720
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   721
        "oid": "31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   722
        "size": 12
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   723
      }
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   724
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   725
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   726
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   727
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   728
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   729
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   730
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   731
            "href": "http://localhost:$HGPORT/*/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   732
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   733
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   734
        "oid": "37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   735
        "size": 20
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   736
      }
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   737
      {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   738
        "actions": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   739
          "download": {
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   740
            "expires_at": "$ISO_8601_DATE_TIME$"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   741
            "header": {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   742
              "Accept": "application/vnd.git-lfs"
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   743
            }
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   744
            "href": "http://localhost:$HGPORT/*/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998" (glob)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   745
          }
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   746
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   747
        "oid": "d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   748
        "size": 19
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   749
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   750
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   751
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   752
  }
35927
9b413478f261 lfs: deduplicate oids in the transfer
Matt Harbison <matt_harbison@yahoo.com>
parents: 35926
diff changeset
   753
  lfs: need to transfer 3 objects (51 bytes)
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   754
  lfs: downloading 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b (12 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   755
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   756
  Content-Length: 12
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   757
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   758
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   759
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   760
  Server: testing stub value (hg-server !)
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   761
  lfs: adding 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b to the usercache
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   762
  lfs: processed: 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   763
  lfs: downloading 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 (20 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   764
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   765
  Content-Length: 20
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   766
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   767
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   768
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   769
  Server: testing stub value (hg-server !)
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   770
  lfs: adding 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 to the usercache
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   771
  lfs: processed: 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   772
  lfs: downloading d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (19 bytes)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   773
  Status: 200
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   774
  Content-Length: 19
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   775
  Content-Type: text/plain; charset=utf-8 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   776
  Content-Type: application/octet-stream (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   777
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   778
  Server: testing stub value (hg-server !)
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   779
  lfs: adding d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 to the usercache
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   780
  lfs: processed: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
37765
ab04972a33ef lfs: enable the final download count status message
Matt Harbison <matt_harbison@yahoo.com>
parents: 37762
diff changeset
   781
  lfs: downloaded 3 files (51 bytes)
39405
cb70501d8b71 revert: fix the inconsistency of status msgs in --interactive mode
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 38021
diff changeset
   782
  reverting b
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   783
  lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
39405
cb70501d8b71 revert: fix the inconsistency of status msgs in --interactive mode
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 38021
diff changeset
   784
  reverting c
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   785
  lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store
39405
cb70501d8b71 revert: fix the inconsistency of status msgs in --interactive mode
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 38021
diff changeset
   786
  reverting d
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   787
  lfs: found 37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 in the local lfs store
39405
cb70501d8b71 revert: fix the inconsistency of status msgs in --interactive mode
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 38021
diff changeset
   788
  adding a
35924
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   789
  lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store
d857cad588e4 lfs: prefetch lfs blobs during revert
Matt Harbison <matt_harbison@yahoo.com>
parents: 35922
diff changeset
   790
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   791
Check error message when the remote missed a blob:
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   792
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   793
  $ echo FFFFF > b
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   794
  $ hg commit -m b -A b
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   795
  $ echo FFFFF >> b
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   796
  $ hg commit -m b b
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   797
  $ rm -rf .hg/store/lfs
35280
8e72f9152c4d lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents: 35141
diff changeset
   798
  $ rm -rf `hg config lfs.usercache`
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   799
  $ hg update -C '.^' --debug
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   800
  http auth: user foo, password ***
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   801
  resolving manifests
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   802
   branchmerge: False, force: True, partial: False
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   803
   ancestor: 62fdbaf221c6+, local: 62fdbaf221c6+, remote: ef0564edf47e
37518
092eff6833a7 lfs: infer the blob store URL from paths.default
Matt Harbison <matt_harbison@yahoo.com>
parents: 37348
diff changeset
   804
  http auth: user foo, password ***
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   805
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   806
  Content-Length: 308 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   807
  Content-Length: 186 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   808
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   809
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   810
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   811
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   812
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   813
      {
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   814
        "actions": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   815
          "upload": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   816
            "expires_at": "$ISO_8601_DATE_TIME$" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   817
            "header": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   818
              "Accept": "application/vnd.git-lfs" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   819
            } (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   820
            "href": "http://localhost:$HGPORT/objects/8e6ea5f6c066b44a0efa43bcce86aea73f17e6e23f0663df0251e7524e140a13" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   821
          } (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   822
        "error": { (hg-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   823
          "code": 404 (hg-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   824
          "message": "The object does not exist" (hg-server !)
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   825
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   826
        "oid": "8e6ea5f6c066b44a0efa43bcce86aea73f17e6e23f0663df0251e7524e140a13"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   827
        "size": 6
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   828
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   829
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   830
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   831
  }
45906
95c4cca641f6 errors: remove trailing "!" from some error messages for consistency
Martin von Zweigbergk <martinvonz@google.com>
parents: 44412
diff changeset
   832
  abort: LFS server error for "b": The object does not exist
46116
17a695357270 errors: use detailed exit code 50 for StorageError
Martin von Zweigbergk <martinvonz@google.com>
parents: 45906
diff changeset
   833
  [50]
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   834
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   835
Check error message when object does not exist:
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   836
35666
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   837
  $ cd $TESTTMP
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   838
  $ hg init test && cd test
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   839
  $ echo "[extensions]" >> .hg/hgrc
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   840
  $ echo "lfs=" >> .hg/hgrc
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   841
  $ echo "[lfs]" >> .hg/hgrc
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   842
  $ echo "threshold=1" >> .hg/hgrc
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   843
  $ echo a > a
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   844
  $ hg add a
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   845
  $ hg commit -m 'test'
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   846
  $ echo aaaaa > a
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   847
  $ hg commit -m 'largefile'
37280
435481393198 tests: don't use revlog paths in tests
Gregory Szorc <gregory.szorc@gmail.com>
parents: 37242
diff changeset
   848
  $ hg debugdata a 1 # verify this is no the file content but includes "oid", the LFS "pointer".
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   849
  version https://git-lfs.github.com/spec/v1
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   850
  oid sha256:bdc26931acfb734b142a8d675f205becf27560dc461f501822de13274fe6fc8a
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   851
  size 6
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   852
  x-is-binary 0
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   853
  $ cd ..
35280
8e72f9152c4d lfs: introduce a user level cache for lfs files
Matt Harbison <matt_harbison@yahoo.com>
parents: 35141
diff changeset
   854
  $ rm -rf `hg config lfs.usercache`
35666
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   855
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   856
(Restart the server in a different location so it no longer has the content)
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   857
39707
5abc47d4ca6b tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents: 39405
diff changeset
   858
  $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   859
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   860
#if hg-server
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   861
  $ cat $TESTTMP/access.log $TESTTMP/errors.log
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   862
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   863
  $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 201 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   864
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   865
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   866
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   867
  $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 201 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   868
  $LOCALIP - - [$LOGDATE$] "PUT /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 201 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   869
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   870
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   871
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   872
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   873
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   874
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   875
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   876
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   877
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   878
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   879
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   880
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   881
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   882
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   883
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/37a65ab78d5ecda767e8622c248b5dbff1e68b1678ab0e730d5eb8601ec8ad19 HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   884
  $LOCALIP - - [$LOGDATE$] "GET /.hg/lfs/objects/d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   885
  $LOCALIP - - [$LOGDATE$] "POST /.git/info/lfs/objects/batch HTTP/1.1" 200 - (glob)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   886
#endif
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   887
35666
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   888
  $ mkdir $TESTTMP/lfs-server2
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   889
  $ cd $TESTTMP/lfs-server2
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   890
#if no-windows git-server
35666
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   891
  $ lfs-test-server &> lfs-server.log &
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   892
  $ echo $! >> $DAEMON_PIDS
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   893
#endif
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   894
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   895
#if windows git-server
39707
5abc47d4ca6b tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents: 39405
diff changeset
   896
  $ "$PYTHON" $TESTTMP/spawn.py >> $DAEMON_PIDS
35666
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   897
#endif
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   898
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   899
#if hg-server
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   900
  $ hg init server2
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   901
  $ hg --config "lfs.usercache=$TESTTMP/servercache2" -R server2 serve -d \
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   902
  >    -p $HGPORT --pid-file=hg.pid -A $TESTTMP/access.log -E $TESTTMP/errors.log
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   903
  $ cat hg.pid >> $DAEMON_PIDS
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   904
#endif
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   905
35666
2c6ebd0c850e lfs: remove internal url in test
Jun Wu <quark@fb.com>
parents: 35618
diff changeset
   906
  $ cd $TESTTMP
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   907
  $ hg --debug clone test test2
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   908
  http auth: user foo, password ***
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   909
  linked 6 files
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   910
  http auth: user foo, password ***
35098
66c5a8cf2868 lfs: import the Facebook git-lfs client extension
Matt Harbison <matt_harbison@yahoo.com>
parents:
diff changeset
   911
  updating to branch default
36925
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   912
  resolving manifests
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   913
   branchmerge: False, force: False, partial: False
24e6342db1cb test-lfs: dial up the debugging on commands that interact with the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 35927
diff changeset
   914
   ancestor: 000000000000, local: 000000000000+, remote: d2a338f184a8
37518
092eff6833a7 lfs: infer the blob store URL from paths.default
Matt Harbison <matt_harbison@yahoo.com>
parents: 37348
diff changeset
   915
  http auth: user foo, password ***
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   916
  Status: 200
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   917
  Content-Length: 308 (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   918
  Content-Length: 186 (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   919
  Content-Type: application/vnd.git-lfs+json
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   920
  Date: $HTTP_DATE$
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   921
  Server: testing stub value (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   922
  {
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   923
    "objects": [
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   924
      {
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   925
        "actions": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   926
          "upload": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   927
            "expires_at": "$ISO_8601_DATE_TIME$" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   928
            "header": { (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   929
              "Accept": "application/vnd.git-lfs" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   930
            } (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   931
            "href": "http://localhost:$HGPORT/objects/bdc26931acfb734b142a8d675f205becf27560dc461f501822de13274fe6fc8a" (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   932
          } (git-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   933
        "error": { (hg-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   934
          "code": 404 (hg-server !)
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   935
          "message": "The object does not exist" (hg-server !)
37146
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   936
        }
c37c47e47a95 test-lfs: drop trailing ', ' item separators from debug JSON output
Matt Harbison <matt_harbison@yahoo.com>
parents: 36990
diff changeset
   937
        "oid": "bdc26931acfb734b142a8d675f205becf27560dc461f501822de13274fe6fc8a"
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   938
        "size": 6
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   939
      }
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   940
    ]
37153
f51c2780db3a test-lfs-test-server: add a testcase for `hg serve`
Matt Harbison <matt_harbison@yahoo.com>
parents: 37146
diff changeset
   941
    "transfer": "basic" (hg-server !)
36926
0dcf50dc90b6 lfs: debug print HTTP headers and JSON payload received from the server
Matt Harbison <matt_harbison@yahoo.com>
parents: 36925
diff changeset
   942
  }
45906
95c4cca641f6 errors: remove trailing "!" from some error messages for consistency
Martin von Zweigbergk <martinvonz@google.com>
parents: 44412
diff changeset
   943
  abort: LFS server error for "a": The object does not exist
46116
17a695357270 errors: use detailed exit code 50 for StorageError
Martin von Zweigbergk <martinvonz@google.com>
parents: 45906
diff changeset
   944
  [50]
35141
32bb27dd5282 test-lfs: allow the test server to be killed on Windows
Matt Harbison <matt_harbison@yahoo.com>
parents: 35139
diff changeset
   945
39707
5abc47d4ca6b tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents: 39405
diff changeset
   946
  $ "$PYTHON" $RUNTESTDIR/killdaemons.py $DAEMON_PIDS