0s autopkgtest [06:55:59]: starting date and time: 2026-02-10 06:55:59+0000 0s autopkgtest [06:55:59]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [06:55:59]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.qdyfqykv/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:mercurial,src:cmake,src:composer --apt-upgrade git-remote-hg --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=mercurial/7.2-2 cmake/4.2.3-1ubuntu1 composer/2.9.5-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-arm64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-arm64-4.secgroup --name adt-resolute-arm64-git-remote-hg-20260210-065559-juju-7f2275-prod-proposed-migration-environment-2-e3b3c3fa-64af-49cb-b58e-7bb0af2a9868 --image adt/ubuntu-resolute-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-arm64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-arm64-git-remote-hg-20260210-065559-juju-7f2275-prod-proposed-migration-environment-2-e3b3c3fa-64af-49cb-b58e-7bb0af2a9868 from image adt/ubuntu-resolute-arm64-server-20260209.img (UUID 793037ca-75af-461b-82de-f8081300b2e3)... 67s autopkgtest [06:57:06]: testbed dpkg architecture: arm64 67s autopkgtest [06:57:06]: testbed apt version: 3.1.15 67s autopkgtest [06:57:06]: @@@@@@@@@@@@@@@@@@@@ test bed setup 68s autopkgtest [06:57:07]: testbed release detected to be: None 68s autopkgtest [06:57:07]: updating testbed package index (apt update) 69s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 69s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 69s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 69s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 69s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1727 kB] 69s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [178 kB] 69s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.1 kB] 69s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 Packages [263 kB] 69s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main arm64 c-n-f Metadata [6288 B] 69s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted arm64 c-n-f Metadata [120 B] 69s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 Packages [1769 kB] 69s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 c-n-f Metadata [31.3 kB] 69s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 Packages [23.0 kB] 69s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse arm64 c-n-f Metadata [688 B] 71s Fetched 4153 kB in 1s (4623 kB/s) 72s Reading package lists... 73s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 73s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 73s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 73s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 74s Reading package lists... 74s Reading package lists... 74s Building dependency tree... 74s Reading state information... 74s Calculating upgrade... 74s The following NEW packages will be installed: 74s gcc-16-base 74s The following packages will be upgraded: 74s cryptsetup-bin dracut-install iproute2 iptables libatomic1 libbrotli1 74s libcryptsetup12 libgcc-s1 libip4tc2 libip6tc2 libstdc++6 libxtables12 wget 75s 13 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 75s Need to get 3779 kB of archives. 75s After this operation, 218 kB of additional disk space will be used. 75s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 gcc-16-base arm64 16-20260208-1ubuntu1 [59.7 kB] 75s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 libgcc-s1 arm64 16-20260208-1ubuntu1 [60.9 kB] 75s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 iptables arm64 1.8.11-2ubuntu3 [386 kB] 75s Get:4 http://ftpmaster.internal/ubuntu resolute/main arm64 libip4tc2 arm64 1.8.11-2ubuntu3 [24.3 kB] 75s Get:5 http://ftpmaster.internal/ubuntu resolute/main arm64 libip6tc2 arm64 1.8.11-2ubuntu3 [24.7 kB] 75s Get:6 http://ftpmaster.internal/ubuntu resolute/main arm64 libxtables12 arm64 1.8.11-2ubuntu3 [36.7 kB] 75s Get:7 http://ftpmaster.internal/ubuntu resolute/main arm64 iproute2 arm64 6.18.0-1ubuntu1 [1171 kB] 75s Get:8 http://ftpmaster.internal/ubuntu resolute/main arm64 libatomic1 arm64 16-20260208-1ubuntu1 [11.1 kB] 75s Get:9 http://ftpmaster.internal/ubuntu resolute/main arm64 libcryptsetup12 arm64 2:2.8.0-1ubuntu3 [274 kB] 75s Get:10 http://ftpmaster.internal/ubuntu resolute/main arm64 libstdc++6 arm64 16-20260208-1ubuntu1 [768 kB] 75s Get:11 http://ftpmaster.internal/ubuntu resolute/main arm64 wget arm64 1.25.0-2ubuntu4 [344 kB] 75s Get:12 http://ftpmaster.internal/ubuntu resolute/main arm64 cryptsetup-bin arm64 2:2.8.0-1ubuntu3 [227 kB] 75s Get:13 http://ftpmaster.internal/ubuntu resolute/main arm64 dracut-install arm64 109-11ubuntu1 [45.3 kB] 75s Get:14 http://ftpmaster.internal/ubuntu resolute/main arm64 libbrotli1 arm64 1.2.0-3 [346 kB] 75s dpkg-preconfigure: unable to re-open stdin: No such file or directory 75s Fetched 3779 kB in 0s (10.2 MB/s) 75s Selecting previously unselected package gcc-16-base:arm64. 76s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 136597 files and directories currently installed.) 76s Preparing to unpack .../gcc-16-base_16-20260208-1ubuntu1_arm64.deb ... 76s Unpacking gcc-16-base:arm64 (16-20260208-1ubuntu1) ... 76s Setting up gcc-16-base:arm64 (16-20260208-1ubuntu1) ... 76s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 136602 files and directories currently installed.) 76s Preparing to unpack .../libgcc-s1_16-20260208-1ubuntu1_arm64.deb ... 76s Unpacking libgcc-s1:arm64 (16-20260208-1ubuntu1) over (15.2.0-12ubuntu1) ... 76s Setting up libgcc-s1:arm64 (16-20260208-1ubuntu1) ... 76s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 136602 files and directories currently installed.) 76s Preparing to unpack .../00-iptables_1.8.11-2ubuntu3_arm64.deb ... 76s Unpacking iptables (1.8.11-2ubuntu3) over (1.8.11-2ubuntu2) ... 76s Preparing to unpack .../01-libip4tc2_1.8.11-2ubuntu3_arm64.deb ... 76s Unpacking libip4tc2:arm64 (1.8.11-2ubuntu3) over (1.8.11-2ubuntu2) ... 76s Preparing to unpack .../02-libip6tc2_1.8.11-2ubuntu3_arm64.deb ... 76s Unpacking libip6tc2:arm64 (1.8.11-2ubuntu3) over (1.8.11-2ubuntu2) ... 76s Preparing to unpack .../03-libxtables12_1.8.11-2ubuntu3_arm64.deb ... 76s Unpacking libxtables12:arm64 (1.8.11-2ubuntu3) over (1.8.11-2ubuntu2) ... 76s Preparing to unpack .../04-iproute2_6.18.0-1ubuntu1_arm64.deb ... 76s Unpacking iproute2 (6.18.0-1ubuntu1) over (6.16.0-1ubuntu3) ... 77s Preparing to unpack .../05-libatomic1_16-20260208-1ubuntu1_arm64.deb ... 77s Unpacking libatomic1:arm64 (16-20260208-1ubuntu1) over (15.2.0-12ubuntu1) ... 77s Preparing to unpack .../06-libcryptsetup12_2%3a2.8.0-1ubuntu3_arm64.deb ... 77s Unpacking libcryptsetup12:arm64 (2:2.8.0-1ubuntu3) over (2:2.8.0-1ubuntu2) ... 77s Preparing to unpack .../07-libstdc++6_16-20260208-1ubuntu1_arm64.deb ... 77s Unpacking libstdc++6:arm64 (16-20260208-1ubuntu1) over (15.2.0-12ubuntu1) ... 77s Preparing to unpack .../08-wget_1.25.0-2ubuntu4_arm64.deb ... 77s Unpacking wget (1.25.0-2ubuntu4) over (1.25.0-2ubuntu3) ... 77s Preparing to unpack .../09-cryptsetup-bin_2%3a2.8.0-1ubuntu3_arm64.deb ... 77s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu3) over (2:2.8.0-1ubuntu2) ... 77s Preparing to unpack .../10-dracut-install_109-11ubuntu1_arm64.deb ... 77s Unpacking dracut-install (109-11ubuntu1) over (109-9ubuntu1) ... 77s Preparing to unpack .../11-libbrotli1_1.2.0-3_arm64.deb ... 77s Unpacking libbrotli1:arm64 (1.2.0-3) over (1.1.0-2build6) ... 77s Setting up libip4tc2:arm64 (1.8.11-2ubuntu3) ... 77s Setting up wget (1.25.0-2ubuntu4) ... 77s Setting up libip6tc2:arm64 (1.8.11-2ubuntu3) ... 77s Setting up libbrotli1:arm64 (1.2.0-3) ... 77s Setting up libatomic1:arm64 (16-20260208-1ubuntu1) ... 77s Setting up libxtables12:arm64 (1.8.11-2ubuntu3) ... 78s Setting up dracut-install (109-11ubuntu1) ... 78s Setting up libcryptsetup12:arm64 (2:2.8.0-1ubuntu3) ... 78s Setting up libstdc++6:arm64 (16-20260208-1ubuntu1) ... 78s Setting up cryptsetup-bin (2:2.8.0-1ubuntu3) ... 78s Setting up iptables (1.8.11-2ubuntu3) ... 78s Setting up iproute2 (6.18.0-1ubuntu1) ... 78s Processing triggers for man-db (2.13.1-1build1) ... 79s Processing triggers for install-info (7.2-5) ... 79s Processing triggers for libc-bin (2.42-2ubuntu4) ... 79s autopkgtest [06:57:18]: upgrading testbed (apt dist-upgrade and autopurge) 79s Reading package lists... 80s Building dependency tree... 80s Reading state information... 80s Calculating upgrade... 80s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 80s Reading package lists... 81s Building dependency tree... 81s Reading state information... 81s Solving dependencies... 81s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 84s autopkgtest [06:57:23]: testbed running kernel: Linux 6.19.0-3-generic #3-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 23 19:46:27 UTC 2026 84s autopkgtest [06:57:23]: @@@@@@@@@@@@@@@@@@@@ apt-source git-remote-hg 85s Get:1 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (dsc) [2129 B] 85s Get:2 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (tar) [56.1 kB] 85s Get:3 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (diff) [5272 B] 85s gpgv: Signature made Wed Sep 24 17:58:21 2025 UTC 85s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 85s gpgv: issuer "tchet@debian.org" 85s gpgv: Can't check signature: No public key 85s dpkg-source: warning: cannot verify inline signature for ./git-remote-hg_1.0.5~ds-1.dsc: no acceptable signature found 85s autopkgtest [06:57:24]: testing package git-remote-hg version 1.0.5~ds-1 85s autopkgtest [06:57:24]: build not needed 86s autopkgtest [06:57:25]: test upstream-test-suite: preparing testbed 86s Reading package lists... 86s Building dependency tree... 86s Reading state information... 86s Solving dependencies... 87s The following NEW packages will be installed: 87s git git-man git-remote-hg liberror-perl mercurial mercurial-common 87s mercurial-git python3-dulwich sharness 88s 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 88s Need to get 9223 kB of archives. 88s After this operation, 48.8 MB of additional disk space will be used. 88s Get:1 http://ftpmaster.internal/ubuntu resolute/main arm64 liberror-perl all 0.17030-1 [23.5 kB] 88s Get:2 http://ftpmaster.internal/ubuntu resolute/main arm64 git-man all 1:2.51.0-1ubuntu1 [1179 kB] 88s Get:3 http://ftpmaster.internal/ubuntu resolute/main arm64 git arm64 1:2.51.0-1ubuntu1 [4431 kB] 88s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 mercurial-common all 7.2-2 [2853 kB] 89s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe arm64 mercurial arm64 7.2-2 [425 kB] 89s Get:6 http://ftpmaster.internal/ubuntu resolute/universe arm64 git-remote-hg all 1.0.5~ds-1 [41.6 kB] 89s Get:7 http://ftpmaster.internal/ubuntu resolute/universe arm64 python3-dulwich arm64 0.22.7-1 [183 kB] 89s Get:8 http://ftpmaster.internal/ubuntu resolute/universe arm64 mercurial-git all 1.2.0-1 [60.9 kB] 89s Get:9 http://ftpmaster.internal/ubuntu resolute/universe arm64 sharness all 1.0.0-1.1build1 [26.2 kB] 89s Fetched 9223 kB in 2s (4911 kB/s) 89s Selecting previously unselected package liberror-perl. 89s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 136605 files and directories currently installed.) 89s Preparing to unpack .../0-liberror-perl_0.17030-1_all.deb ... 89s Unpacking liberror-perl (0.17030-1) ... 89s Selecting previously unselected package git-man. 89s Preparing to unpack .../1-git-man_1%3a2.51.0-1ubuntu1_all.deb ... 89s Unpacking git-man (1:2.51.0-1ubuntu1) ... 89s Selecting previously unselected package git. 89s Preparing to unpack .../2-git_1%3a2.51.0-1ubuntu1_arm64.deb ... 89s Unpacking git (1:2.51.0-1ubuntu1) ... 89s Selecting previously unselected package mercurial-common. 89s Preparing to unpack .../3-mercurial-common_7.2-2_all.deb ... 89s Unpacking mercurial-common (7.2-2) ... 89s Selecting previously unselected package mercurial. 89s Preparing to unpack .../4-mercurial_7.2-2_arm64.deb ... 89s Unpacking mercurial (7.2-2) ... 89s Selecting previously unselected package git-remote-hg. 90s Preparing to unpack .../5-git-remote-hg_1.0.5~ds-1_all.deb ... 90s Unpacking git-remote-hg (1.0.5~ds-1) ... 90s Selecting previously unselected package python3-dulwich. 90s Preparing to unpack .../6-python3-dulwich_0.22.7-1_arm64.deb ... 90s Unpacking python3-dulwich (0.22.7-1) ... 90s Selecting previously unselected package mercurial-git. 90s Preparing to unpack .../7-mercurial-git_1.2.0-1_all.deb ... 90s Unpacking mercurial-git (1.2.0-1) ... 90s Selecting previously unselected package sharness. 90s Preparing to unpack .../8-sharness_1.0.0-1.1build1_all.deb ... 90s Unpacking sharness (1.0.0-1.1build1) ... 90s Setting up mercurial-common (7.2-2) ... 91s Setting up liberror-perl (0.17030-1) ... 91s Setting up sharness (1.0.0-1.1build1) ... 91s Setting up python3-dulwich (0.22.7-1) ... 92s Setting up git-man (1:2.51.0-1ubuntu1) ... 92s Setting up mercurial (7.2-2) ... 92s Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version 92s Setting up mercurial-git (1.2.0-1) ... 92s mercurial-git extension is disabled by default. 92s You can follow the instructions in /usr/share/doc/mercurial-git/README.Debian to enable it. 92s Setting up git (1:2.51.0-1ubuntu1) ... 92s Setting up git-remote-hg (1.0.5~ds-1) ... 92s Processing triggers for man-db (2.13.1-1build1) ... 94s autopkgtest [06:57:33]: test upstream-test-suite: make -C test TEST_INSTALLED_SCRIPTS=1 TEST_OPTS=--verbose 94s autopkgtest [06:57:33]: test upstream-test-suite: [----------------------- 94s make: Entering directory '/tmp/autopkgtest.ZdmU5R/build.fp3/src/test' 94s ./main.t --verbose 94s expecting success: 94s ( 94s hg init hgrepo && 94s cd hgrepo && 94s echo zero > content && 94s hg add content && 94s hg commit -m zero 94s ) 94s 95s ok 1 - setup 95s 95s expecting success: 95s test_when_finished "rm -rf gitrepo*" && 95s git clone "hg::hgrepo" gitrepo && 95s check gitrepo HEAD zero 95s 95s Cloning into 'gitrepo'... 95s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 95s or locale.getdefaultlocale()[1] 95s WARNING: capability_push is disabled, only do so when really sure 95s WARNING: various enhanced features might fail in subtle ways 96s Traceback (most recent call last): 96s File "/usr/bin/git-remote-hg", line 2013, in 96s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 96s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 96s File "/usr/bin/git-remote-hg", line 1975, in main 96s repo, branchmap = get_repo(url, alias) 96s ~~~~~~~~^^^^^^^^^^^^ 96s File "/usr/bin/git-remote-hg", line 666, in get_repo 96s for branch, branch_heads in compat.iteritems(branchmap): 96s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 96s File "/usr/bin/git-remote-hg", line 63, in iteritems 96s return d.items() 96s ^^^^^^^ 96s AttributeError: 'BranchCacheV2' object has no attribute 'items' 97s fatal: remote helper 'hg' aborted session 97s not ok 2 - cloning 97s # 97s # test_when_finished "rm -rf gitrepo*" && 97s # git clone "hg::hgrepo" gitrepo && 97s # check gitrepo HEAD zero 97s # 97s 97s expecting success: 97s test_when_finished "rm -rf gitrepo*" && 97s 97s ( 97s cd hgrepo && 97s hg branch next && 97s echo next > content && 97s hg commit -m next 97s ) && 97s 97s git clone "hg::hgrepo" gitrepo && 97s check gitrepo origin/branches/next next 97s 97s marked working directory as branch next 97s (branches are permanent and global, did you want a bookmark?) 97s Cloning into 'gitrepo'... 98s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 98s or locale.getdefaultlocale()[1] 98s WARNING: capability_push is disabled, only do so when really sure 98s WARNING: various enhanced features might fail in subtle ways 99s Traceback (most recent call last): 99s File "/usr/bin/git-remote-hg", line 2013, in 99s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 99s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 99s File "/usr/bin/git-remote-hg", line 1975, in main 99s repo, branchmap = get_repo(url, alias) 99s ~~~~~~~~^^^^^^^^^^^^ 99s File "/usr/bin/git-remote-hg", line 666, in get_repo 99s for branch, branch_heads in compat.iteritems(branchmap): 99s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 99s File "/usr/bin/git-remote-hg", line 63, in iteritems 99s return d.items() 99s ^^^^^^^ 99s AttributeError: 'BranchCacheV2' object has no attribute 'items' 99s fatal: remote helper 'hg' aborted session 99s not ok 3 - cloning with branches 99s # 99s # test_when_finished "rm -rf gitrepo*" && 99s # 99s # ( 99s # cd hgrepo && 99s # hg branch next && 99s # echo next > content && 99s # hg commit -m next 99s # ) && 99s # 99s # git clone "hg::hgrepo" gitrepo && 99s # check gitrepo origin/branches/next next 99s # 99s 99s expecting success: 99s test_when_finished "rm -rf gitrepo*" && 99s 99s ( 99s cd hgrepo && 99s hg checkout default && 99s hg bookmark feature-a && 99s echo feature-a > content && 99s hg commit -m feature-a 99s ) && 99s 99s git clone "hg::hgrepo" gitrepo && 99s check gitrepo origin/feature-a feature-a 99s 99s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 100s Cloning into 'gitrepo'... 100s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 100s or locale.getdefaultlocale()[1] 100s WARNING: capability_push is disabled, only do so when really sure 100s WARNING: various enhanced features might fail in subtle ways 101s Traceback (most recent call last): 101s File "/usr/bin/git-remote-hg", line 2013, in 101s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 101s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 101s File "/usr/bin/git-remote-hg", line 1975, in main 101s repo, branchmap = get_repo(url, alias) 101s ~~~~~~~~^^^^^^^^^^^^ 101s File "/usr/bin/git-remote-hg", line 666, in get_repo 101s for branch, branch_heads in compat.iteritems(branchmap): 101s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 101s File "/usr/bin/git-remote-hg", line 63, in iteritems 101s return d.items() 101s ^^^^^^^ 101s AttributeError: 'BranchCacheV2' object has no attribute 'items' 101s fatal: remote helper 'hg' aborted session 101s not ok 4 - cloning with bookmarks 101s # 101s # test_when_finished "rm -rf gitrepo*" && 101s # 101s # ( 101s # cd hgrepo && 101s # hg checkout default && 101s # hg bookmark feature-a && 101s # echo feature-a > content && 101s # hg commit -m feature-a 101s # ) && 101s # 101s # git clone "hg::hgrepo" gitrepo && 101s # check gitrepo origin/feature-a feature-a 101s # 101s 101s expecting success: 101s test_when_finished "rm -rf gitrepo*" && 101s 101s ( 101s cd hgrepo && 101s hg bookmark devel 101s ) && 101s 101s ( 101s git clone "hg::hgrepo" gitrepo && 101s cd gitrepo && 101s git checkout --quiet devel && 101s echo devel > content && 101s git commit -a -m devel && 101s git push --quiet origin devel 101s ) && 101s 101s check_bookmark hgrepo devel devel 101s 101s Cloning into 'gitrepo'... 102s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 102s or locale.getdefaultlocale()[1] 102s WARNING: capability_push is disabled, only do so when really sure 102s WARNING: various enhanced features might fail in subtle ways 103s Traceback (most recent call last): 103s File "/usr/bin/git-remote-hg", line 2013, in 103s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 103s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 103s File "/usr/bin/git-remote-hg", line 1975, in main 103s repo, branchmap = get_repo(url, alias) 103s ~~~~~~~~^^^^^^^^^^^^ 103s File "/usr/bin/git-remote-hg", line 666, in get_repo 103s for branch, branch_heads in compat.iteritems(branchmap): 103s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 103s File "/usr/bin/git-remote-hg", line 63, in iteritems 103s return d.items() 103s ^^^^^^^ 103s AttributeError: 'BranchCacheV2' object has no attribute 'items' 103s fatal: remote helper 'hg' aborted session 103s not ok 5 - update bookmark 103s # 103s # test_when_finished "rm -rf gitrepo*" && 103s # 103s # ( 103s # cd hgrepo && 103s # hg bookmark devel 103s # ) && 103s # 103s # ( 103s # git clone "hg::hgrepo" gitrepo && 103s # cd gitrepo && 103s # git checkout --quiet devel && 103s # echo devel > content && 103s # git commit -a -m devel && 103s # git push --quiet origin devel 103s # ) && 103s # 103s # check_bookmark hgrepo devel devel 103s # 103s 103s expecting success: 103s test_when_finished "rm -rf gitrepo*" && 103s 103s ( 103s git clone "hg::hgrepo" gitrepo && 103s cd gitrepo && 103s git checkout --quiet -b feature-b && 103s echo feature-b > content && 103s git commit -a -m feature-b && 103s git push --quiet origin feature-b 103s ) && 103s 103s check_bookmark hgrepo feature-b feature-b 103s 103s Cloning into 'gitrepo'... 103s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 103s or locale.getdefaultlocale()[1] 103s WARNING: capability_push is disabled, only do so when really sure 103s WARNING: various enhanced features might fail in subtle ways 105s Traceback (most recent call last): 105s File "/usr/bin/git-remote-hg", line 2013, in 105s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 105s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 105s File "/usr/bin/git-remote-hg", line 1975, in main 105s repo, branchmap = get_repo(url, alias) 105s ~~~~~~~~^^^^^^^^^^^^ 105s File "/usr/bin/git-remote-hg", line 666, in get_repo 105s for branch, branch_heads in compat.iteritems(branchmap): 105s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 105s File "/usr/bin/git-remote-hg", line 63, in iteritems 105s return d.items() 105s ^^^^^^^ 105s AttributeError: 'BranchCacheV2' object has no attribute 'items' 105s fatal: remote helper 'hg' aborted session 105s not ok 6 - new bookmark 105s # 105s # test_when_finished "rm -rf gitrepo*" && 105s # 105s # ( 105s # git clone "hg::hgrepo" gitrepo && 105s # cd gitrepo && 105s # git checkout --quiet -b feature-b && 105s # echo feature-b > content && 105s # git commit -a -m feature-b && 105s # git push --quiet origin feature-b 105s # ) && 105s # 105s # check_bookmark hgrepo feature-b feature-b 105s # 105s 105s expecting success: 105s test_when_finished "rm -rf hgrepo gitrepo" && 105s 105s ( 105s hg init hgrepo && 105s cd hgrepo && 105s 105s touch content && 105s hg add content && 105s 105s > ../expected && 105s author_test alpha "" "H G Wells " && 105s author_test beta "beta" "beta " && 105s author_test gamma "gamma (comment)" "gamma " && 105s author_test delta "" "Unknown " && 105s author_test epsilon "epsilon" "epsilon " && 105s author_test zeta "zeta " && 105s author_test eta " eta " "eta " && 105s author_test theta "theta < test@example.com >" "theta " && 105s author_test iota "iota >test@example.com>" "iota " && 105s author_test kappa "kappa < test example com>" "kappa " && 105s author_test lambda "lambda@example.com" "Unknown " && 105s author_test mu "mu.mu@example.com" "Unknown " 105s ) && 105s 105s git clone "hg::hgrepo" gitrepo && 105s git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual && 105s 105s test_cmp expected actual 105s 109s Cloning into 'gitrepo'... 110s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 110s or locale.getdefaultlocale()[1] 110s WARNING: capability_push is disabled, only do so when really sure 110s WARNING: various enhanced features might fail in subtle ways 111s Traceback (most recent call last): 111s File "/usr/bin/git-remote-hg", line 2013, in 111s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 111s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 111s File "/usr/bin/git-remote-hg", line 1975, in main 111s repo, branchmap = get_repo(url, alias) 111s ~~~~~~~~^^^^^^^^^^^^ 111s File "/usr/bin/git-remote-hg", line 666, in get_repo 111s for branch, branch_heads in compat.iteritems(branchmap): 111s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 111s File "/usr/bin/git-remote-hg", line 63, in iteritems 111s return d.items() 111s ^^^^^^^ 111s AttributeError: 'BranchCacheV2' object has no attribute 'items' 111s fatal: remote helper 'hg' aborted session 111s not ok 7 - authors 111s # 111s # test_when_finished "rm -rf hgrepo gitrepo" && 111s # 111s # ( 111s # hg init hgrepo && 111s # cd hgrepo && 111s # 111s # touch content && 111s # hg add content && 111s # 111s # > ../expected && 111s # author_test alpha "" "H G Wells " && 111s # author_test beta "beta" "beta " && 111s # author_test gamma "gamma (comment)" "gamma " && 111s # author_test delta "" "Unknown " && 111s # author_test epsilon "epsilon" "epsilon " && 111s # author_test zeta "zeta " && 111s # author_test eta " eta " "eta " && 111s # author_test theta "theta < test@example.com >" "theta " && 111s # author_test iota "iota >test@example.com>" "iota " && 111s # author_test kappa "kappa < test example com>" "kappa " && 111s # author_test lambda "lambda@example.com" "Unknown " && 111s # author_test mu "mu.mu@example.com" "Unknown " 111s # ) && 111s # 111s # git clone "hg::hgrepo" gitrepo && 111s # git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual && 111s # 111s # test_cmp expected actual 111s # 111s 111s expecting success: 111s test_when_finished "rm -rf hgrepo gitrepo" && 111s 111s ( 111s hg init hgrepo && 111s cd hgrepo && 111s 111s echo one >> content && 111s hg add content && 111s hg commit -m one && 111s 111s echo two >> content && 111s hg commit -m two 111s ) && 111s 111s git clone "hg::hgrepo" gitrepo && 111s 111s ( 111s cd hgrepo && 111s hg strip 1 && 111s 111s echo three >> content && 111s hg commit -m three && 111s 111s echo four >> content && 111s hg commit -m four 111s ) && 111s 111s ( 111s cd gitrepo && 111s git fetch && 111s git log --format="%s" origin/master > ../actual 111s ) && 111s 111s hg -R hgrepo log --template "{desc}\n" > expected && 111s test_cmp actual expected 111s 112s Cloning into 'gitrepo'... 113s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 113s or locale.getdefaultlocale()[1] 113s WARNING: capability_push is disabled, only do so when really sure 113s WARNING: various enhanced features might fail in subtle ways 114s Traceback (most recent call last): 114s File "/usr/bin/git-remote-hg", line 2013, in 114s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 114s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 114s File "/usr/bin/git-remote-hg", line 1975, in main 114s repo, branchmap = get_repo(url, alias) 114s ~~~~~~~~^^^^^^^^^^^^ 114s File "/usr/bin/git-remote-hg", line 666, in get_repo 114s for branch, branch_heads in compat.iteritems(branchmap): 114s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 114s File "/usr/bin/git-remote-hg", line 63, in iteritems 114s return d.items() 114s ^^^^^^^ 114s AttributeError: 'BranchCacheV2' object has no attribute 'items' 114s fatal: remote helper 'hg' aborted session 114s not ok 8 - strip 114s # 114s # test_when_finished "rm -rf hgrepo gitrepo" && 114s # 114s # ( 114s # hg init hgrepo && 114s # cd hgrepo && 114s # 114s # echo one >> content && 114s # hg add content && 114s # hg commit -m one && 114s # 114s # echo two >> content && 114s # hg commit -m two 114s # ) && 114s # 114s # git clone "hg::hgrepo" gitrepo && 114s # 114s # ( 114s # cd hgrepo && 114s # hg strip 1 && 114s # 114s # echo three >> content && 114s # hg commit -m three && 114s # 114s # echo four >> content && 114s # hg commit -m four 114s # ) && 114s # 114s # ( 114s # cd gitrepo && 114s # git fetch && 114s # git log --format="%s" origin/master > ../actual 114s # ) && 114s # 114s # hg -R hgrepo log --template "{desc}\n" > expected && 114s # test_cmp actual expected 114s # 114s 114s expecting success: 114s test_when_finished "rm -rf hgrepo gitrepo" && 114s 114s ( 114s hg init hgrepo && 114s cd hgrepo && 114s 114s echo one >.git && 114s echo ONE >.GIT && 114s mkdir a && echo two > a/.gitmodules && 114s hg add .git .GIT a/.gitmodules && 114s hg commit -m zero 114s ) && 114s 114s git clone "hg::hgrepo" gitrepo && 114s test_cmp gitrepo/.git_ hgrepo/.git && 114s test_cmp gitrepo/.GIT_ hgrepo/.GIT && 114s test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules && 114s 114s ( 114s cd gitrepo && 114s echo three >.git_ && 114s echo THREE >.GIT && 114s echo four >a/.gitmodules_ && 114s git add .git_ .GIT_ a/.gitmodules_ && 114s git commit -m one && 114s git push 114s ) && 114s 114s hg -R hgrepo update && 114s test_cmp gitrepo/.git_ hgrepo/.git && 114s test_cmp gitrepo/.GIT_ hgrepo/.GIT && 114s test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules 114s 115s warning: possible case-folding collision for .git 115s Cloning into 'gitrepo'... 115s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 115s or locale.getdefaultlocale()[1] 115s WARNING: capability_push is disabled, only do so when really sure 115s WARNING: various enhanced features might fail in subtle ways 117s Traceback (most recent call last): 117s File "/usr/bin/git-remote-hg", line 2013, in 117s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 117s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 117s File "/usr/bin/git-remote-hg", line 1975, in main 117s repo, branchmap = get_repo(url, alias) 117s ~~~~~~~~^^^^^^^^^^^^ 117s File "/usr/bin/git-remote-hg", line 666, in get_repo 117s for branch, branch_heads in compat.iteritems(branchmap): 117s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 117s File "/usr/bin/git-remote-hg", line 63, in iteritems 117s return d.items() 117s ^^^^^^^ 117s AttributeError: 'BranchCacheV2' object has no attribute 'items' 117s fatal: remote helper 'hg' aborted session 117s not ok 9 - dotfiles 117s # 117s # test_when_finished "rm -rf hgrepo gitrepo" && 117s # 117s # ( 117s # hg init hgrepo && 117s # cd hgrepo && 117s # 117s # echo one >.git && 117s # echo ONE >.GIT && 117s # mkdir a && echo two > a/.gitmodules && 117s # hg add .git .GIT a/.gitmodules && 117s # hg commit -m zero 117s # ) && 117s # 117s # git clone "hg::hgrepo" gitrepo && 117s # test_cmp gitrepo/.git_ hgrepo/.git && 117s # test_cmp gitrepo/.GIT_ hgrepo/.GIT && 117s # test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules && 117s # 117s # ( 117s # cd gitrepo && 117s # echo three >.git_ && 117s # echo THREE >.GIT && 117s # echo four >a/.gitmodules_ && 117s # git add .git_ .GIT_ a/.gitmodules_ && 117s # git commit -m one && 117s # git push 117s # ) && 117s # 117s # hg -R hgrepo update && 117s # test_cmp gitrepo/.git_ hgrepo/.git && 117s # test_cmp gitrepo/.GIT_ hgrepo/.GIT && 117s # test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules 117s # 117s 117s expecting success: 117s test_when_finished "rm -rf hgrepo gitrepo*" && 117s 117s ( 117s hg init hgrepo && 117s cd hgrepo && 117s echo zero > content && 117s hg add content && 117s hg commit -m zero && 117s hg bookmark master && 117s echo one > content && 117s hg commit -m one 117s ) && 117s 117s ( 117s git clone "hg::hgrepo" gitrepo && 117s cd gitrepo && 117s echo two > content && 117s git commit -a -m two && 117s git push 117s ) && 117s 117s check_branch hgrepo default two 117s 118s Cloning into 'gitrepo'... 118s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 118s or locale.getdefaultlocale()[1] 118s WARNING: capability_push is disabled, only do so when really sure 118s WARNING: various enhanced features might fail in subtle ways 120s Traceback (most recent call last): 120s File "/usr/bin/git-remote-hg", line 2013, in 120s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 120s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 120s File "/usr/bin/git-remote-hg", line 1975, in main 120s repo, branchmap = get_repo(url, alias) 120s ~~~~~~~~^^^^^^^^^^^^ 120s File "/usr/bin/git-remote-hg", line 666, in get_repo 120s for branch, branch_heads in compat.iteritems(branchmap): 120s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 120s File "/usr/bin/git-remote-hg", line 63, in iteritems 120s return d.items() 120s ^^^^^^^ 120s AttributeError: 'BranchCacheV2' object has no attribute 'items' 120s fatal: remote helper 'hg' aborted session 120s not ok 10 - remote push with master bookmark 120s # 120s # test_when_finished "rm -rf hgrepo gitrepo*" && 120s # 120s # ( 120s # hg init hgrepo && 120s # cd hgrepo && 120s # echo zero > content && 120s # hg add content && 120s # hg commit -m zero && 120s # hg bookmark master && 120s # echo one > content && 120s # hg commit -m one 120s # ) && 120s # 120s # ( 120s # git clone "hg::hgrepo" gitrepo && 120s # cd gitrepo && 120s # echo two > content && 120s # git commit -a -m two && 120s # git push 120s # ) && 120s # 120s # check_branch hgrepo default two 120s # 120s 120s expecting success: 120s test_when_finished "rm -rf hgrepo gitrepo*" && 120s 120s hg init hgrepo && 120s 120s ( 120s git init gitrepo && 120s cd gitrepo && 120s git remote add origin "hg::../hgrepo" && 120s echo one > content && 120s git add content && 120s git commit -a -m one && 120s git push origin master 120s ) && 120s 120s hg -R hgrepo log > actual && 120s cat actual && 120s test_cmp expected actual && 120s 120s check_branch hgrepo default one 120s 120s Initialized empty Git repository in /tmp/autopkgtest.ZdmU5R/build.fp3/src/test/trash directory.main/gitrepo/.git/ 120s [master (root-commit) 64caca5] one 120s Author: A U Thor 120s 1 file changed, 1 insertion(+) 120s create mode 100644 content 121s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 121s or locale.getdefaultlocale()[1] 121s WARNING: capability_push is disabled, only do so when really sure 121s WARNING: various enhanced features might fail in subtle ways 122s Traceback (most recent call last): 122s File "/usr/bin/git-remote-hg", line 2013, in 122s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 122s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 122s File "/usr/bin/git-remote-hg", line 1975, in main 122s repo, branchmap = get_repo(url, alias) 122s ~~~~~~~~^^^^^^^^^^^^ 122s File "/usr/bin/git-remote-hg", line 666, in get_repo 122s for branch, branch_heads in compat.iteritems(branchmap): 122s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 122s File "/usr/bin/git-remote-hg", line 63, in iteritems 122s return d.items() 122s ^^^^^^^ 122s AttributeError: 'BranchCacheV2' object has no attribute 'items' 122s fatal: remote helper 'hg' aborted session 122s not ok 11 - remote push from master branch 122s # 122s # test_when_finished "rm -rf hgrepo gitrepo*" && 122s # 122s # hg init hgrepo && 122s # 122s # ( 122s # git init gitrepo && 122s # cd gitrepo && 122s # git remote add origin "hg::../hgrepo" && 122s # echo one > content && 122s # git add content && 122s # git commit -a -m one && 122s # git push origin master 122s # ) && 122s # 122s # hg -R hgrepo log > actual && 122s # cat actual && 122s # test_cmp expected actual && 122s # 122s # check_branch hgrepo default one 122s # 122s 122s expecting success: 122s test_when_finished "rm -rf gitrepo*" && 122s 122s ( 122s hg init hgrepo && 122s cd hgrepo && 122s echo zero > content && 122s hg add content && 122s hg commit -m zero 122s ) && 122s 122s git clone "hg::hgrepo" gitrepo && 122s check gitrepo HEAD zero 122s 123s Cloning into 'gitrepo'... 123s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 123s or locale.getdefaultlocale()[1] 123s WARNING: capability_push is disabled, only do so when really sure 123s WARNING: various enhanced features might fail in subtle ways 125s Traceback (most recent call last): 125s File "/usr/bin/git-remote-hg", line 2013, in 125s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 125s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 125s File "/usr/bin/git-remote-hg", line 1975, in main 125s repo, branchmap = get_repo(url, alias) 125s ~~~~~~~~^^^^^^^^^^^^ 125s File "/usr/bin/git-remote-hg", line 666, in get_repo 125s for branch, branch_heads in compat.iteritems(branchmap): 125s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 125s File "/usr/bin/git-remote-hg", line 63, in iteritems 125s return d.items() 125s ^^^^^^^ 125s AttributeError: 'BranchCacheV2' object has no attribute 'items' 125s fatal: remote helper 'hg' aborted session 125s not ok 12 - remote cloning 125s # 125s # test_when_finished "rm -rf gitrepo*" && 125s # 125s # ( 125s # hg init hgrepo && 125s # cd hgrepo && 125s # echo zero > content && 125s # hg add content && 125s # hg commit -m zero 125s # ) && 125s # 125s # git clone "hg::hgrepo" gitrepo && 125s # check gitrepo HEAD zero 125s # 125s 125s expecting success: 125s test_when_finished "rm -rf gitrepo*" && 125s 125s ( 125s git clone "hg::hgrepo" gitrepo && 125s mv gitrepo gitrepo2 && 125s cd gitrepo2 && 125s git fetch 125s ) 125s 125s Cloning into 'gitrepo'... 125s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 125s or locale.getdefaultlocale()[1] 125s WARNING: capability_push is disabled, only do so when really sure 125s WARNING: various enhanced features might fail in subtle ways 127s Traceback (most recent call last): 127s File "/usr/bin/git-remote-hg", line 2013, in 127s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 127s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 127s File "/usr/bin/git-remote-hg", line 1975, in main 127s repo, branchmap = get_repo(url, alias) 127s ~~~~~~~~^^^^^^^^^^^^ 127s File "/usr/bin/git-remote-hg", line 666, in get_repo 127s for branch, branch_heads in compat.iteritems(branchmap): 127s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 127s File "/usr/bin/git-remote-hg", line 63, in iteritems 127s return d.items() 127s ^^^^^^^ 127s AttributeError: 'BranchCacheV2' object has no attribute 'items' 127s fatal: remote helper 'hg' aborted session 127s not ok 13 - moving remote clone 127s # 127s # test_when_finished "rm -rf gitrepo*" && 127s # 127s # ( 127s # git clone "hg::hgrepo" gitrepo && 127s # mv gitrepo gitrepo2 && 127s # cd gitrepo2 && 127s # git fetch 127s # ) 127s # 127s 127s expecting success: 127s test_when_finished "rm -rf gitrepo*" && 127s 127s ( 127s cd hgrepo && 127s hg bookmark devel 127s ) && 127s 127s ( 127s git clone "hg::hgrepo" gitrepo && 127s cd gitrepo && 127s git checkout --quiet devel && 127s echo devel > content && 127s git commit -a -m devel && 127s git push --quiet 127s ) && 127s 127s check_bookmark hgrepo devel devel 127s 127s Cloning into 'gitrepo'... 128s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 128s or locale.getdefaultlocale()[1] 128s WARNING: capability_push is disabled, only do so when really sure 128s WARNING: various enhanced features might fail in subtle ways 129s Traceback (most recent call last): 129s File "/usr/bin/git-remote-hg", line 2013, in 129s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 129s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 129s File "/usr/bin/git-remote-hg", line 1975, in main 129s repo, branchmap = get_repo(url, alias) 129s ~~~~~~~~^^^^^^^^^^^^ 129s File "/usr/bin/git-remote-hg", line 666, in get_repo 129s for branch, branch_heads in compat.iteritems(branchmap): 129s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 129s File "/usr/bin/git-remote-hg", line 63, in iteritems 129s return d.items() 129s ^^^^^^^ 129s AttributeError: 'BranchCacheV2' object has no attribute 'items' 129s fatal: remote helper 'hg' aborted session 129s not ok 14 - remote update bookmark 129s # 129s # test_when_finished "rm -rf gitrepo*" && 129s # 129s # ( 129s # cd hgrepo && 129s # hg bookmark devel 129s # ) && 129s # 129s # ( 129s # git clone "hg::hgrepo" gitrepo && 129s # cd gitrepo && 129s # git checkout --quiet devel && 129s # echo devel > content && 129s # git commit -a -m devel && 129s # git push --quiet 129s # ) && 129s # 129s # check_bookmark hgrepo devel devel 129s # 129s 129s expecting success: 129s test_when_finished "rm -rf gitrepo*" && 129s 129s ( 129s git clone "hg::hgrepo" gitrepo && 129s cd gitrepo && 129s git checkout --quiet -b feature-b && 129s echo feature-b > content && 129s git commit -a -m feature-b && 129s git push --quiet origin feature-b 129s ) && 129s 129s check_bookmark hgrepo feature-b feature-b 129s 129s Cloning into 'gitrepo'... 129s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 129s or locale.getdefaultlocale()[1] 129s WARNING: capability_push is disabled, only do so when really sure 129s WARNING: various enhanced features might fail in subtle ways 131s Traceback (most recent call last): 131s File "/usr/bin/git-remote-hg", line 2013, in 131s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 131s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 131s File "/usr/bin/git-remote-hg", line 1975, in main 131s repo, branchmap = get_repo(url, alias) 131s ~~~~~~~~^^^^^^^^^^^^ 131s File "/usr/bin/git-remote-hg", line 666, in get_repo 131s for branch, branch_heads in compat.iteritems(branchmap): 131s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 131s File "/usr/bin/git-remote-hg", line 63, in iteritems 131s return d.items() 131s ^^^^^^^ 131s AttributeError: 'BranchCacheV2' object has no attribute 'items' 131s fatal: remote helper 'hg' aborted session 131s not ok 15 - remote new bookmark 131s # 131s # test_when_finished "rm -rf gitrepo*" && 131s # 131s # ( 131s # git clone "hg::hgrepo" gitrepo && 131s # cd gitrepo && 131s # git checkout --quiet -b feature-b && 131s # echo feature-b > content && 131s # git commit -a -m feature-b && 131s # git push --quiet origin feature-b 131s # ) && 131s # 131s # check_bookmark hgrepo feature-b feature-b 131s # 131s 131s expecting success: 131s test_when_finished "rm -rf gitrepo*" && 131s 131s git clone "hg::hgrepo" gitrepo && 131s 131s ( 131s cd hgrepo && 131s hg checkout default && 131s echo bump > content && 131s hg commit -m bump 131s ) && 131s 131s ( 131s cd gitrepo && 131s echo diverge > content && 131s git commit -a -m diverged && 131s check_push 1 <<-\EOF 131s master:non-fast-forward 131s EOF 131s ) && 131s 131s check_branch hgrepo default bump 131s 131s Cloning into 'gitrepo'... 131s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 131s or locale.getdefaultlocale()[1] 131s WARNING: capability_push is disabled, only do so when really sure 131s WARNING: various enhanced features might fail in subtle ways 133s Traceback (most recent call last): 133s File "/usr/bin/git-remote-hg", line 2013, in 133s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 133s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 133s File "/usr/bin/git-remote-hg", line 1975, in main 133s repo, branchmap = get_repo(url, alias) 133s ~~~~~~~~^^^^^^^^^^^^ 133s File "/usr/bin/git-remote-hg", line 666, in get_repo 133s for branch, branch_heads in compat.iteritems(branchmap): 133s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 133s File "/usr/bin/git-remote-hg", line 63, in iteritems 133s return d.items() 133s ^^^^^^^ 133s AttributeError: 'BranchCacheV2' object has no attribute 'items' 133s fatal: remote helper 'hg' aborted session 133s not ok 16 - remote push diverged 133s # 133s # test_when_finished "rm -rf gitrepo*" && 133s # 133s # git clone "hg::hgrepo" gitrepo && 133s # 133s # ( 133s # cd hgrepo && 133s # hg checkout default && 133s # echo bump > content && 133s # hg commit -m bump 133s # ) && 133s # 133s # ( 133s # cd gitrepo && 133s # echo diverge > content && 133s # git commit -a -m diverged && 133s # check_push 1 <<-\EOF 133s # master:non-fast-forward 133s # EOF 133s # ) && 133s # 133s # check_branch hgrepo default bump 133s # 133s 133s expecting success: 133s test_when_finished "rm -rf gitrepo*" && 133s 133s ( 133s cd hgrepo && 133s hg checkout tip^ && 133s hg bookmark diverge 133s ) && 133s 133s git clone "hg::hgrepo" gitrepo && 133s 133s ( 133s cd hgrepo && 133s echo "bump bookmark" > content && 133s hg commit -m "bump bookmark" 133s ) && 133s 133s ( 133s cd gitrepo && 133s git checkout --quiet diverge && 133s echo diverge > content && 133s git commit -a -m diverge && 133s check_push 1 <<-\EOF 133s diverge:non-fast-forward 133s EOF 133s ) && 133s 133s check_bookmark hgrepo diverge "bump bookmark" 133s 133s abort: empty revision set 133s not ok 17 - remote update bookmark diverge 133s # 133s # test_when_finished "rm -rf gitrepo*" && 133s # 133s # ( 133s # cd hgrepo && 133s # hg checkout tip^ && 133s # hg bookmark diverge 133s # ) && 133s # 133s # git clone "hg::hgrepo" gitrepo && 133s # 133s # ( 133s # cd hgrepo && 133s # echo "bump bookmark" > content && 133s # hg commit -m "bump bookmark" 133s # ) && 133s # 133s # ( 133s # cd gitrepo && 133s # git checkout --quiet diverge && 133s # echo diverge > content && 133s # git commit -a -m diverge && 133s # check_push 1 <<-\EOF 133s # diverge:non-fast-forward 133s # EOF 133s # ) && 133s # 133s # check_bookmark hgrepo diverge "bump bookmark" 133s # 133s 133s expecting success: 133s test_when_finished "rm -rf gitrepo*" && 133s 133s ( 133s git clone "hg::hgrepo" gitrepo && 133s cd gitrepo && 133s git checkout --quiet -b feature-c HEAD^ && 133s echo feature-c > content && 133s git commit -a -m feature-c && 133s git push --quiet origin feature-c 133s ) && 133s 133s check_bookmark hgrepo feature-c feature-c 133s 133s Cloning into 'gitrepo'... 133s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 133s or locale.getdefaultlocale()[1] 133s WARNING: capability_push is disabled, only do so when really sure 133s WARNING: various enhanced features might fail in subtle ways 135s Traceback (most recent call last): 135s File "/usr/bin/git-remote-hg", line 2013, in 135s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 135s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 135s File "/usr/bin/git-remote-hg", line 1975, in main 135s repo, branchmap = get_repo(url, alias) 135s ~~~~~~~~^^^^^^^^^^^^ 135s File "/usr/bin/git-remote-hg", line 666, in get_repo 135s for branch, branch_heads in compat.iteritems(branchmap): 135s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 135s File "/usr/bin/git-remote-hg", line 63, in iteritems 135s return d.items() 135s ^^^^^^^ 135s AttributeError: 'BranchCacheV2' object has no attribute 'items' 135s fatal: remote helper 'hg' aborted session 135s not ok 18 - remote new bookmark multiple branch head 135s # 135s # test_when_finished "rm -rf gitrepo*" && 135s # 135s # ( 135s # git clone "hg::hgrepo" gitrepo && 135s # cd gitrepo && 135s # git checkout --quiet -b feature-c HEAD^ && 135s # echo feature-c > content && 135s # git commit -a -m feature-c && 135s # git push --quiet origin feature-c 135s # ) && 135s # 135s # check_bookmark hgrepo feature-c feature-c 135s # 135s 135s checking known breakage: 135s test_when_finished "rm -rf gitrepo hgrepo" && 135s 135s ( 135s hg init hgrepo && 135s cd hgrepo && 135s echo zero > content && 135s hg add content && 135s hg commit -m zero 135s ) && 135s 135s git clone "hg::hgrepo" gitrepo && 135s 135s ( 135s cd gitrepo && 135s cp content content-copy && 135s # recent git-fast-export is (too) picky in recognizing copies 135s # although git-log is not as picky; 135s # since https://github.com/git/git/commit/8096e1d385660c159d9d47e69b2be63cf22e4f31 135s # a copy is only marked if source filed not modified as well 135s # (though destination file can be modified) 135s echo one >> content-copy && 135s git add content content-copy && 135s git commit -m copy && 135s git mv content-copy content-moved 135s git commit -m moved && 135s git push origin master 135s ) && 135s 135s ( 135s hg -R hgrepo update && 135s test_cmp gitrepo/content hgrepo/content 135s test_cmp gitrepo/content-moved hgrepo/content-moved 135s cd hgrepo && 135s test `hg log -f content-moved | grep -c changeset` -eq 3 135s ) 135s 136s Cloning into 'gitrepo'... 136s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 136s or locale.getdefaultlocale()[1] 136s WARNING: capability_push is disabled, only do so when really sure 136s WARNING: various enhanced features might fail in subtle ways 137s Traceback (most recent call last): 137s File "/usr/bin/git-remote-hg", line 2013, in 137s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 137s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 137s File "/usr/bin/git-remote-hg", line 1975, in main 137s repo, branchmap = get_repo(url, alias) 137s ~~~~~~~~^^^^^^^^^^^^ 137s File "/usr/bin/git-remote-hg", line 666, in get_repo 137s for branch, branch_heads in compat.iteritems(branchmap): 137s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 137s File "/usr/bin/git-remote-hg", line 63, in iteritems 137s return d.items() 137s ^^^^^^^ 137s AttributeError: 'BranchCacheV2' object has no attribute 'items' 138s fatal: remote helper 'hg' aborted session 138s not ok 19 - push commits with copy and rename # TODO known breakage 138s 138s expecting success: 138s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 138s 138s LC_ALL=C.UTF-8 138s export LC_ALL 138s 138s ( 138s hg init hgrepo && 138s cd hgrepo && 138s 138s echo test >> "æ rø" && 138s hg add "æ rø" && 138s echo test >> "ø~?" && 138s hg add "ø~?" && 138s hg commit -m add-utf-8 && 138s echo test >> "æ rø" && 138s hg commit -m test-utf-8 && 138s hg rm "ø~?" && 138s hg mv "æ rø" "ø~?" && 138s hg commit -m hg-mv-utf-8 138s ) && 138s 138s ( 138s git clone "hg::hgrepo" gitrepo && 138s cd gitrepo && 138s git -c core.quotepath=false ls-files > ../actual 138s ) && 138s echo "ø~?" > expected && 138s test_cmp expected actual 138s 138s warning: filename contains '?', which is reserved on Windows: 'ø~?' 140s warning: filename contains '?', which is reserved on Windows: 'ø~?' 140s Cloning into 'gitrepo'... 140s WARNING: capability_push is disabled, only do so when really sure 140s WARNING: various enhanced features might fail in subtle ways 142s Traceback (most recent call last): 142s File "/usr/bin/git-remote-hg", line 2013, in 142s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 142s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 142s File "/usr/bin/git-remote-hg", line 1975, in main 142s repo, branchmap = get_repo(url, alias) 142s ~~~~~~~~^^^^^^^^^^^^ 142s File "/usr/bin/git-remote-hg", line 666, in get_repo 142s for branch, branch_heads in compat.iteritems(branchmap): 142s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 142s File "/usr/bin/git-remote-hg", line 63, in iteritems 142s return d.items() 142s ^^^^^^^ 142s AttributeError: 'BranchCacheV2' object has no attribute 'items' 142s fatal: remote helper 'hg' aborted session 142s not ok 20 - fetch special filenames 142s # 142s # test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 142s # 142s # LC_ALL=C.UTF-8 142s # export LC_ALL 142s # 142s # ( 142s # hg init hgrepo && 142s # cd hgrepo && 142s # 142s # echo test >> "æ rø" && 142s # hg add "æ rø" && 142s # echo test >> "ø~?" && 142s # hg add "ø~?" && 142s # hg commit -m add-utf-8 && 142s # echo test >> "æ rø" && 142s # hg commit -m test-utf-8 && 142s # hg rm "ø~?" && 142s # hg mv "æ rø" "ø~?" && 142s # hg commit -m hg-mv-utf-8 142s # ) && 142s # 142s # ( 142s # git clone "hg::hgrepo" gitrepo && 142s # cd gitrepo && 142s # git -c core.quotepath=false ls-files > ../actual 142s # ) && 142s # echo "ø~?" > expected && 142s # test_cmp expected actual 142s # 142s 142s expecting success: 142s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 142s 142s mkdir -p tmp && cd tmp && 142s 142s LC_ALL=C.UTF-8 142s export LC_ALL 142s 142s ( 142s hg init hgrepo && 142s cd hgrepo && 142s 142s echo one >> content && 142s hg add content && 142s hg commit -m one 142s ) && 142s 142s ( 142s git clone "hg::hgrepo" gitrepo && 142s cd gitrepo && 142s 142s echo test >> "æ rø" && 142s git add "æ rø" && 142s git commit -m utf-8 && 142s 142s git push 142s ) && 142s 142s (cd hgrepo && 142s hg update && 142s hg manifest > ../actual 142s ) && 142s 142s printf "content\næ rø\n" > expected && 142s test_cmp expected actual 142s 143s Cloning into 'gitrepo'... 143s WARNING: capability_push is disabled, only do so when really sure 143s WARNING: various enhanced features might fail in subtle ways 145s Traceback (most recent call last): 145s File "/usr/bin/git-remote-hg", line 2013, in 145s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 145s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 145s File "/usr/bin/git-remote-hg", line 1975, in main 145s repo, branchmap = get_repo(url, alias) 145s ~~~~~~~~^^^^^^^^^^^^ 145s File "/usr/bin/git-remote-hg", line 666, in get_repo 145s for branch, branch_heads in compat.iteritems(branchmap): 145s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 145s File "/usr/bin/git-remote-hg", line 63, in iteritems 145s return d.items() 145s ^^^^^^^ 145s AttributeError: 'BranchCacheV2' object has no attribute 'items' 145s fatal: remote helper 'hg' aborted session 145s not ok 21 - push special filenames 145s # 145s # test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 145s # 145s # mkdir -p tmp && cd tmp && 145s # 145s # LC_ALL=C.UTF-8 145s # export LC_ALL 145s # 145s # ( 145s # hg init hgrepo && 145s # cd hgrepo && 145s # 145s # echo one >> content && 145s # hg add content && 145s # hg commit -m one 145s # ) && 145s # 145s # ( 145s # git clone "hg::hgrepo" gitrepo && 145s # cd gitrepo && 145s # 145s # echo test >> "æ rø" && 145s # git add "æ rø" && 145s # git commit -m utf-8 && 145s # 145s # git push 145s # ) && 145s # 145s # (cd hgrepo && 145s # hg update && 145s # hg manifest > ../actual 145s # ) && 145s # 145s # printf "content\næ rø\n" > expected && 145s # test_cmp expected actual 145s # 145s 145s expecting success: 145s test_when_finished "rm -rf hgrepo gitrepo*" && 145s 145s setup_big_push 145s 145s ( 145s cd gitrepo && 145s 145s if test "$CAPABILITY_PUSH" = "t" 145s then 145s # cap push handles refs one by one 145s # so it will still correctly report several ok 145s check_push 1 --all <<-\EOF 145s master 145s good_bmark 145s branches/good_branch 145s new_bmark:new 145s branches/new_branch:new 145s bad_bmark1:non-fast-forward 145s bad_bmark2:non-fast-forward 145s branches/bad_branch:non-fast-forward 145s EOF 145s else 145s check_push 1 --all <<-\EOF 145s bad_bmark1:non-fast-forward 145s bad_bmark2:non-fast-forward 145s branches/bad_branch:non-fast-forward 145s EOF 145s fi 145s ) && 145s 145s if test "$CAPABILITY_PUSH" = "t" 145s then 145s # cap push handles refs one by one 145s # so it will push all requested it can 145s check_branch hgrepo default six && 145s check_branch hgrepo good_branch eight && 145s check_branch hgrepo bad_branch "bad branch" && 145s check_branch hgrepo new_branch ten && 145s check_bookmark hgrepo good_bmark three && 145s check_bookmark hgrepo bad_bmark1 one && 145s check_bookmark hgrepo bad_bmark2 one && 145s check_bookmark hgrepo new_bmark six && 145s check gitrepo origin/master two 145s else 145s check_branch hgrepo default one && 145s check_branch hgrepo good_branch "good branch" && 145s check_branch hgrepo bad_branch "bad branch" && 145s check_branch hgrepo new_branch && 145s check_bookmark hgrepo good_bmark one && 145s check_bookmark hgrepo bad_bmark1 one && 145s check_bookmark hgrepo bad_bmark2 one && 145s check_bookmark hgrepo new_bmark && 145s check gitrepo origin/master one 145s fi 145s 149s Cloning into 'gitrepo'... 149s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 149s or locale.getdefaultlocale()[1] 149s WARNING: capability_push is disabled, only do so when really sure 149s WARNING: various enhanced features might fail in subtle ways 150s Traceback (most recent call last): 150s File "/usr/bin/git-remote-hg", line 2013, in 150s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 150s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 150s File "/usr/bin/git-remote-hg", line 1975, in main 150s repo, branchmap = get_repo(url, alias) 150s ~~~~~~~~^^^^^^^^^^^^ 150s File "/usr/bin/git-remote-hg", line 666, in get_repo 150s for branch, branch_heads in compat.iteritems(branchmap): 150s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 150s File "/usr/bin/git-remote-hg", line 63, in iteritems 150s return d.items() 150s ^^^^^^^ 150s AttributeError: 'BranchCacheV2' object has no attribute 'items' 150s fatal: remote helper 'hg' aborted session 150s not ok 22 - remote big push 150s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 150s # 150s # test_when_finished "rm -rf hgrepo gitrepo*" && 150s # 150s # setup_big_push 150s # 150s # ( 150s # cd gitrepo && 150s # 150s # if test "$CAPABILITY_PUSH" = "t" 150s # then 150s # # cap push handles refs one by one 150s # # so it will still correctly report several ok 150s # check_push 1 --all <<-\EOF 150s # master 150s # good_bmark 150s # branches/good_branch 150s # new_bmark:new 150s # branches/new_branch:new 150s # bad_bmark1:non-fast-forward 150s # bad_bmark2:non-fast-forward 150s # branches/bad_branch:non-fast-forward 150s # EOF 150s # else 150s # check_push 1 --all <<-\EOF 150s # bad_bmark1:non-fast-forward 150s # bad_bmark2:non-fast-forward 150s # branches/bad_branch:non-fast-forward 150s # EOF 150s # fi 150s # ) && 150s # 150s # if test "$CAPABILITY_PUSH" = "t" 150s # then 150s # # cap push handles refs one by one 150s # # so it will push all requested it can 150s # check_branch hgrepo default six && 150s # check_branch hgrepo good_branch eight && 150s # check_branch hgrepo bad_branch "bad branch" && 150s # check_branch hgrepo new_branch ten && 150s # check_bookmark hgrepo good_bmark three && 150s # check_bookmark hgrepo bad_bmark1 one && 150s # check_bookmark hgrepo bad_bmark2 one && 150s # check_bookmark hgrepo new_bmark six && 150s # check gitrepo origin/master two 150s # else 150s # check_branch hgrepo default one && 150s # check_branch hgrepo good_branch "good branch" && 150s # check_branch hgrepo bad_branch "bad branch" && 150s # check_branch hgrepo new_branch && 150s # check_bookmark hgrepo good_bmark one && 150s # check_bookmark hgrepo bad_bmark1 one && 150s # check_bookmark hgrepo bad_bmark2 one && 150s # check_bookmark hgrepo new_bmark && 150s # check gitrepo origin/master one 150s # fi 150s # 150s 150s expecting success: 150s test_when_finished "rm -rf hgrepo gitrepo*" && 150s 150s ( 150s hg init hgrepo && 150s cd hgrepo && 150s echo zero > content && 150s hg add content && 150s hg commit -m zero && 150s hg bookmark bad_bmark && 150s hg bookmark good_bmark && 150s hg bookmark -i good_bmark && 150s hg -q branch good_branch && 150s echo "good branch" > content && 150s hg commit -m "good branch" && 150s hg -q branch bad_branch && 150s echo "bad branch" > content && 150s hg commit -m "bad branch" 150s ) && 150s 150s git clone "hg::hgrepo" gitrepo && 150s 150s ( 150s cd hgrepo && 150s hg bookmark -f bad_bmark && 150s echo update_bmark > content && 150s hg commit -m "update bmark" 150s ) && 150s 150s ( 150s cd gitrepo && 150s echo two > content && 150s git commit -q -a -m two && 150s 150s git checkout -q good_bmark && 150s echo three > content && 150s git commit -q -a -m three && 150s 150s git checkout -q bad_bmark && 150s echo four > content && 150s git commit -q -a -m four && 150s 150s git checkout -q branches/bad_branch && 150s echo five > content && 150s git commit -q -a -m five && 150s 150s if test "$CAPABILITY_PUSH" = "t" 150s then 150s check_push 1 --all <<-\EOF 150s master 150s good_bmark 150s bad_bmark:non-fast-forward 150s branches/bad_branch:non-fast-forward 150s EOF 150s else 150s # cap export now only report error cases 150s check_push 1 --all <<-\EOF 150s bad_bmark:non-fast-forward 150s branches/bad_branch:non-fast-forward 150s EOF 150s fi && 150s 150s git fetch && 150s 150s if test "$CAPABILITY_PUSH" = "t" 150s then 150s # cap push handles refs one by one 150s # so it will already have pushed some above previously 150s # (and master is a fake one that jumps around a bit) 150s check_push 1 --all <<-\EOF 150s bad_bmark:non-fast-forward 150s branches/bad_branch:non-fast-forward 150s EOF 150s else 150s # cap export now only report error cases 150s check_push 1 --all <<-\EOF 150s bad_bmark:non-fast-forward 150s branches/bad_branch:non-fast-forward 150s EOF 150s fi 150s ) 150s 153s Cloning into 'gitrepo'... 153s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 153s or locale.getdefaultlocale()[1] 153s WARNING: capability_push is disabled, only do so when really sure 153s WARNING: various enhanced features might fail in subtle ways 155s Traceback (most recent call last): 155s File "/usr/bin/git-remote-hg", line 2013, in 155s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 155s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s File "/usr/bin/git-remote-hg", line 1975, in main 155s repo, branchmap = get_repo(url, alias) 155s ~~~~~~~~^^^^^^^^^^^^ 155s File "/usr/bin/git-remote-hg", line 666, in get_repo 155s for branch, branch_heads in compat.iteritems(branchmap): 155s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 155s File "/usr/bin/git-remote-hg", line 63, in iteritems 155s return d.items() 155s ^^^^^^^ 155s AttributeError: 'BranchCacheV2' object has no attribute 'items' 155s fatal: remote helper 'hg' aborted session 155s not ok 23 - remote big push non fast forward 155s # 155s # test_when_finished "rm -rf hgrepo gitrepo*" && 155s # 155s # ( 155s # hg init hgrepo && 155s # cd hgrepo && 155s # echo zero > content && 155s # hg add content && 155s # hg commit -m zero && 155s # hg bookmark bad_bmark && 155s # hg bookmark good_bmark && 155s # hg bookmark -i good_bmark && 155s # hg -q branch good_branch && 155s # echo "good branch" > content && 155s # hg commit -m "good branch" && 155s # hg -q branch bad_branch && 155s # echo "bad branch" > content && 155s # hg commit -m "bad branch" 155s # ) && 155s # 155s # git clone "hg::hgrepo" gitrepo && 155s # 155s # ( 155s # cd hgrepo && 155s # hg bookmark -f bad_bmark && 155s # echo update_bmark > content && 155s # hg commit -m "update bmark" 155s # ) && 155s # 155s # ( 155s # cd gitrepo && 155s # echo two > content && 155s # git commit -q -a -m two && 155s # 155s # git checkout -q good_bmark && 155s # echo three > content && 155s # git commit -q -a -m three && 155s # 155s # git checkout -q bad_bmark && 155s # echo four > content && 155s # git commit -q -a -m four && 155s # 155s # git checkout -q branches/bad_branch && 155s # echo five > content && 155s # git commit -q -a -m five && 155s # 155s # if test "$CAPABILITY_PUSH" = "t" 155s # then 155s # check_push 1 --all <<-\EOF 155s # master 155s # good_bmark 155s # bad_bmark:non-fast-forward 155s # branches/bad_branch:non-fast-forward 155s # EOF 155s # else 155s # # cap export now only report error cases 155s # check_push 1 --all <<-\EOF 155s # bad_bmark:non-fast-forward 155s # branches/bad_branch:non-fast-forward 155s # EOF 155s # fi && 155s # 155s # git fetch && 155s # 155s # if test "$CAPABILITY_PUSH" = "t" 155s # then 155s # # cap push handles refs one by one 155s # # so it will already have pushed some above previously 155s # # (and master is a fake one that jumps around a bit) 155s # check_push 1 --all <<-\EOF 155s # bad_bmark:non-fast-forward 155s # branches/bad_branch:non-fast-forward 155s # EOF 155s # else 155s # # cap export now only report error cases 155s # check_push 1 --all <<-\EOF 155s # bad_bmark:non-fast-forward 155s # branches/bad_branch:non-fast-forward 155s # EOF 155s # fi 155s # ) 155s # 155s 155s expecting success: 155s test_when_finished "rm -rf hgrepo gitrepo*" && 155s 155s setup_big_push 155s 155s ( 155s cd gitrepo && 155s 155s if test "$CAPABILITY_PUSH" = "t" 155s then 155s check_push 0 --force --all <<-\EOF 155s master:forced-update 155s good_bmark:forced-update 155s branches/good_branch:forced-update 155s new_bmark:new 155s branches/new_branch:new 155s bad_bmark1:forced-update 155s bad_bmark2:forced-update 155s branches/bad_branch:forced-update 155s EOF 155s else 155s check_push 0 --force --all <<-\EOF 155s master 155s good_bmark 155s branches/good_branch 155s new_bmark:new 155s branches/new_branch:new 155s bad_bmark1:forced-update 155s bad_bmark2:forced-update 155s branches/bad_branch:forced-update 155s EOF 155s fi 155s ) && 155s 155s check gitrepo origin/master two && 155s check_branch hgrepo good_branch eight && 155s check_branch hgrepo bad_branch nine && 155s check_branch hgrepo new_branch ten && 155s check_bookmark hgrepo good_bmark three && 155s check_bookmark hgrepo bad_bmark1 four && 155s check_bookmark hgrepo bad_bmark2 five && 155s check_bookmark hgrepo new_bmark six 155s 159s Cloning into 'gitrepo'... 159s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 159s or locale.getdefaultlocale()[1] 159s WARNING: capability_push is disabled, only do so when really sure 159s WARNING: various enhanced features might fail in subtle ways 160s Traceback (most recent call last): 160s File "/usr/bin/git-remote-hg", line 2013, in 160s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 160s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 160s File "/usr/bin/git-remote-hg", line 1975, in main 160s repo, branchmap = get_repo(url, alias) 160s ~~~~~~~~^^^^^^^^^^^^ 160s File "/usr/bin/git-remote-hg", line 666, in get_repo 160s for branch, branch_heads in compat.iteritems(branchmap): 160s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 160s File "/usr/bin/git-remote-hg", line 63, in iteritems 160s return d.items() 160s ^^^^^^^ 160s AttributeError: 'BranchCacheV2' object has no attribute 'items' 161s fatal: remote helper 'hg' aborted session 161s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 161s not ok 24 - remote big push force 161s # 161s # test_when_finished "rm -rf hgrepo gitrepo*" && 161s # 161s # setup_big_push 161s # 161s # ( 161s # cd gitrepo && 161s # 161s # if test "$CAPABILITY_PUSH" = "t" 161s # then 161s # check_push 0 --force --all <<-\EOF 161s # master:forced-update 161s # good_bmark:forced-update 161s # branches/good_branch:forced-update 161s # new_bmark:new 161s # branches/new_branch:new 161s # bad_bmark1:forced-update 161s # bad_bmark2:forced-update 161s # branches/bad_branch:forced-update 161s # EOF 161s # else 161s # check_push 0 --force --all <<-\EOF 161s # master 161s # good_bmark 161s # branches/good_branch 161s # new_bmark:new 161s # branches/new_branch:new 161s # bad_bmark1:forced-update 161s # bad_bmark2:forced-update 161s # branches/bad_branch:forced-update 161s # EOF 161s # fi 161s # ) && 161s # 161s # check gitrepo origin/master two && 161s # check_branch hgrepo good_branch eight && 161s # check_branch hgrepo bad_branch nine && 161s # check_branch hgrepo new_branch ten && 161s # check_bookmark hgrepo good_bmark three && 161s # check_bookmark hgrepo bad_bmark1 four && 161s # check_bookmark hgrepo bad_bmark2 five && 161s # check_bookmark hgrepo new_bmark six 161s # 161s 161s expecting success: 161s test_when_finished "rm -rf hgrepo gitrepo*" && 161s 161s setup_big_push 161s 161s ( 161s cd gitrepo && 161s 161s if test "$CAPABILITY_PUSH" = "t" 161s then 161s # cap push handles refs one by one 161s # so it will still correctly report several ok 161s check_push 1 --dry-run --all <<-\EOF 161s master 161s good_bmark 161s branches/good_branch 161s new_bmark:new 161s branches/new_branch:new 161s bad_bmark1:non-fast-forward 161s bad_bmark2:non-fast-forward 161s branches/bad_branch:non-fast-forward 161s EOF 161s else 161s check_push 1 --dry-run --all <<-\EOF 161s bad_bmark1:non-fast-forward 161s bad_bmark2:non-fast-forward 161s branches/bad_branch:non-fast-forward 161s EOF 161s fi && 161s 161s check_push 0 --dry-run master good_bmark new_bmark branches/good_branch branches/new_branch <<-\EOF 161s master 161s good_bmark 161s branches/good_branch 161s new_bmark:new 161s branches/new_branch:new 161s EOF 161s ) && 161s 161s check gitrepo origin/master one && 161s check_branch hgrepo default one && 161s check_branch hgrepo good_branch "good branch" && 161s check_branch hgrepo bad_branch "bad branch" && 161s check_branch hgrepo new_branch && 161s check_bookmark hgrepo good_bmark one && 161s check_bookmark hgrepo bad_bmark1 one && 161s check_bookmark hgrepo bad_bmark2 one && 161s check_bookmark hgrepo new_bmark 161s 164s Cloning into 'gitrepo'... 164s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 164s or locale.getdefaultlocale()[1] 164s WARNING: capability_push is disabled, only do so when really sure 164s WARNING: various enhanced features might fail in subtle ways 165s Traceback (most recent call last): 165s not ok 25 - remote big push dry-run 165s # 165s # test_when_finished "rm -rf hgrepo gitrepo*" && 165s # 165s # setup_big_push 165s # 165s # ( 165s # cd gitrepo && 165s # 165s # if test "$CAPABILITY_PUSH" = "t" 165s # then 165s # # cap push handles refs one by one 165s # # so it will still correctly report several ok 165s # check_push 1 --dry-run --all <<-\EOF 165s # master 165s # good_bmark 165s # branches/good_branch 165s # new_bmark:new 165s # branches/new_branch:new 165s # bad_bmark1:non-fast-forward 165s # bad_bmark2:non-fast-forward 165s # branches/bad_branch:non-fast-forward 165s # EOF 165s # else 165s # check_push 1 --dry-run --all <<-\EOF 165s # bad_bmark1:non-fast-forward 165s # bad_bmark2:non-fast-forward 165s # branches/bad_branch:non-fast-forward 165s # EOF 165s # fi && 165s # 165s # check_push 0 --dry-run master good_bmark new_bmark branches/good_branch branches/new_branch <<-\EOF 165s # master 165s # good_bmark 165s # branches/good_branch 165s # new_bmark:new 165s # branches/new_branch:new 165s # EOF 165s # ) && 165s # 165s # check gitrepo origin/master one && 165s # check_branch hgrepo default one && 165s # check_branch hgrepo good_branch "good branch" && 165s # check_branch hgrepo bad_branch "bad branch" && 165s # check_branch hgrepo new_branch && 165s # check_bookmark hgrepo good_bmark one && 165s # check_bookmark hgrepo bad_bmark1 one && 165s # check_bookmark hgrepo bad_bmark2 one && 165s # check_bookmark hgrepo new_bmark 165s # 165s File "/usr/bin/git-remote-hg", line 2013, in 165s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 165s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 165s File "/usr/bin/git-remote-hg", line 1975, in main 165s repo, branchmap = get_repo(url, alias) 165s ~~~~~~~~^^^^^^^^^^^^ 165s File "/usr/bin/git-remote-hg", line 666, in get_repo 165s for branch, branch_heads in compat.iteritems(branchmap): 165s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 165s File "/usr/bin/git-remote-hg", line 63, in iteritems 165s return d.items() 165s ^^^^^^^ 165s AttributeError: 'BranchCacheV2' object has no attribute 'items' 165s fatal: remote helper 'hg' aborted session 165s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 166s 166s expecting success: 166s test_when_finished "rm -rf hgrepo gitrepo*" && 166s 166s setup_big_push 166s 166s ( 166s cd gitrepo && 166s 166s if test "$CAPABILITY_PUSH" = "t" 166s then 166s check_push 0 --force --dry-run --all <<-\EOF 166s master:forced-update 166s good_bmark:forced-update 166s branches/good_branch:forced-update 166s new_bmark:new 166s branches/new_branch:new 166s bad_bmark1:forced-update 166s bad_bmark2:forced-update 166s branches/bad_branch:forced-update 166s EOF 166s else 166s check_push 0 --force --dry-run --all <<-\EOF 166s master 166s good_bmark 166s branches/good_branch 166s new_bmark:new 166s branches/new_branch:new 166s bad_bmark1:forced-update 166s bad_bmark2:forced-update 166s branches/bad_branch:forced-update 166s EOF 166s fi 166s ) && 166s 166s check gitrepo origin/master one && 166s check_branch hgrepo default one && 166s check_branch hgrepo good_branch "good branch" && 166s check_branch hgrepo bad_branch "bad branch" && 166s check_branch hgrepo new_branch && 166s check_bookmark hgrepo good_bmark one && 166s check_bookmark hgrepo bad_bmark1 one && 166s check_bookmark hgrepo bad_bmark2 one && 166s check_bookmark hgrepo new_bmark 166s 169s Cloning into 'gitrepo'... 169s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 169s or locale.getdefaultlocale()[1] 169s WARNING: capability_push is disabled, only do so when really sure 169s WARNING: various enhanced features might fail in subtle ways 170s Traceback (most recent call last): 170s File "/usr/bin/git-remote-hg", line 2013, in 170s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 170s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 170s File "/usr/bin/git-remote-hg", line 1975, in main 170s repo, branchmap = get_repo(url, alias) 170s ~~~~~~~~^^^^^^^^^^^^ 170s File "/usr/bin/git-remote-hg", line 666, in get_repo 170s for branch, branch_heads in compat.iteritems(branchmap): 170s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 170s File "/usr/bin/git-remote-hg", line 63, in iteritems 170s return d.items() 170s ^^^^^^^ 170s AttributeError: 'BranchCacheV2' object has no attribute 'items' 170s fatal: remote helper 'hg' aborted session 170s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 170s not ok 26 - remote big push force dry-run 170s # 170s # test_when_finished "rm -rf hgrepo gitrepo*" && 170s # 170s # setup_big_push 170s # 170s # ( 170s # cd gitrepo && 170s # 170s # if test "$CAPABILITY_PUSH" = "t" 170s # then 170s # check_push 0 --force --dry-run --all <<-\EOF 170s # master:forced-update 170s # good_bmark:forced-update 170s # branches/good_branch:forced-update 170s # new_bmark:new 170s # branches/new_branch:new 170s # bad_bmark1:forced-update 170s # bad_bmark2:forced-update 170s # branches/bad_branch:forced-update 170s # EOF 170s # else 170s # check_push 0 --force --dry-run --all <<-\EOF 170s # master 170s # good_bmark 170s # branches/good_branch 170s # new_bmark:new 170s # branches/new_branch:new 170s # bad_bmark1:forced-update 170s # bad_bmark2:forced-update 170s # branches/bad_branch:forced-update 170s # EOF 170s # fi 170s # ) && 170s # 170s # check gitrepo origin/master one && 170s # check_branch hgrepo default one && 170s # check_branch hgrepo good_branch "good branch" && 170s # check_branch hgrepo bad_branch "bad branch" && 170s # check_branch hgrepo new_branch && 170s # check_bookmark hgrepo good_bmark one && 170s # check_bookmark hgrepo bad_bmark1 one && 170s # check_bookmark hgrepo bad_bmark2 one && 170s # check_bookmark hgrepo new_bmark 170s # 170s 170s expecting success: 170s test_when_finished "rm -rf hgrepo gitrepo*" && 170s 170s ( 170s hg init hgrepo && 170s cd hgrepo && 170s echo zero > content && 170s hg add content && 170s hg commit -m zero && 170s echo one > content && 170s hg commit -m one 170s ) && 170s 170s ( 170s git clone "hg::hgrepo" gitrepo && 170s cd gitrepo && 170s git reset --hard HEAD^ && 170s echo two > content && 170s git commit -a -m two && 170s test_expect_code 1 git push && 170s test_expect_code 1 git push 170s ) 170s 171s Cloning into 'gitrepo'... 172s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 172s or locale.getdefaultlocale()[1] 172s WARNING: capability_push is disabled, only do so when really sure 172s WARNING: various enhanced features might fail in subtle ways 173s Traceback (most recent call last): 173s File "/usr/bin/git-remote-hg", line 2013, in 173s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 173s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 173s File "/usr/bin/git-remote-hg", line 1975, in main 173s repo, branchmap = get_repo(url, alias) 173s ~~~~~~~~^^^^^^^^^^^^ 173s File "/usr/bin/git-remote-hg", line 666, in get_repo 173s for branch, branch_heads in compat.iteritems(branchmap): 173s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 173s File "/usr/bin/git-remote-hg", line 63, in iteritems 173s return d.items() 173s ^^^^^^^ 173s AttributeError: 'BranchCacheV2' object has no attribute 'items' 173s fatal: remote helper 'hg' aborted session 173s not ok 27 - remote double failed push 173s # 173s # test_when_finished "rm -rf hgrepo gitrepo*" && 173s # 173s # ( 173s # hg init hgrepo && 173s # cd hgrepo && 173s # echo zero > content && 173s # hg add content && 173s # hg commit -m zero && 173s # echo one > content && 173s # hg commit -m one 173s # ) && 173s # 173s # ( 173s # git clone "hg::hgrepo" gitrepo && 173s # cd gitrepo && 173s # git reset --hard HEAD^ && 173s # echo two > content && 173s # git commit -a -m two && 173s # test_expect_code 1 git push && 173s # test_expect_code 1 git push 173s # ) 173s # 173s 173s expecting success: 173s test_when_finished "rm -rf gitrepo hgrepo" && 173s 173s ( 173s hg init hgrepo && 173s cd hgrepo && 173s echo zero > content && 173s hg add content && 173s hg commit -m zero && 173s echo feature-a > content && 173s hg commit -m feature-a 173s hg bookmark feature-a 173s ) && 173s 173s git clone "hg::hgrepo" gitrepo && 173s check gitrepo origin/feature-a feature-a && 173s 173s ( 173s cd hgrepo && 173s hg bookmark -d feature-a 173s ) && 173s 173s ( 173s cd gitrepo && 173s git fetch --prune origin 173s git branch -a > out && 173s ! grep feature-a out 173s ) 173s 174s Cloning into 'gitrepo'... 175s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 175s or locale.getdefaultlocale()[1] 175s WARNING: capability_push is disabled, only do so when really sure 175s WARNING: various enhanced features might fail in subtle ways 176s Traceback (most recent call last): 176s File "/usr/bin/git-remote-hg", line 2013, in 176s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 176s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 176s File "/usr/bin/git-remote-hg", line 1975, in main 176s repo, branchmap = get_repo(url, alias) 176s ~~~~~~~~^^^^^^^^^^^^ 176s File "/usr/bin/git-remote-hg", line 666, in get_repo 176s for branch, branch_heads in compat.iteritems(branchmap): 176s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 176s File "/usr/bin/git-remote-hg", line 63, in iteritems 176s return d.items() 176s ^^^^^^^ 176s AttributeError: 'BranchCacheV2' object has no attribute 'items' 176s fatal: remote helper 'hg' aborted session 176s not ok 28 - fetch prune 176s # 176s # test_when_finished "rm -rf gitrepo hgrepo" && 176s # 176s # ( 176s # hg init hgrepo && 176s # cd hgrepo && 176s # echo zero > content && 176s # hg add content && 176s # hg commit -m zero && 176s # echo feature-a > content && 176s # hg commit -m feature-a 176s # hg bookmark feature-a 176s # ) && 176s # 176s # git clone "hg::hgrepo" gitrepo && 176s # check gitrepo origin/feature-a feature-a && 176s # 176s # ( 176s # cd hgrepo && 176s # hg bookmark -d feature-a 176s # ) && 176s # 176s # ( 176s # cd gitrepo && 176s # git fetch --prune origin 176s # git branch -a > out && 176s # ! grep feature-a out 176s # ) 176s # 176s 176s expecting success: 176s test_when_finished "rm -rf gitrepo hgrepo" && 176s 176s ( 176s hg init hgrepo && 176s cd hgrepo && 176s echo zero > content && 176s hg add content && 176s hg commit -m zero && 176s hg up -r null && 176s echo another > ocontent && 176s hg add ocontent && 176s hg commit -m one 176s ) && 176s 176s # -r 1 acts as master 176s ( 176s git init --bare gitrepo && cd gitrepo && 176s git remote add origin hg::../hgrepo && 176s git fetch origin refs/heads/*:refs/heads/* 176s ) && 176s 176s ( 176s cd hgrepo && 176s hg up 0 && 176s echo two > content && 176s hg commit -m two 176s ) && 176s 176s # now master already exists 176s # -r 2 becomes master head which has rev 0 as ancestor 176s # so when importing (parentless) rev 0, a reset is needed 176s # (to ensure rev 0 is not given a parent commit) 176s ( 176s cd gitrepo && 176s git fetch origin && 176s git log --format="%s" origin/master > ../actual 176s ) && 176s 176s hg -R hgrepo log -r . -f --template "{desc}\n" > expected && 176s test_cmp actual expected 176s 177s 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 177s created new head 177s Initialized empty Git repository in /tmp/autopkgtest.ZdmU5R/build.fp3/src/test/trash directory.main/tmp/gitrepo/ 178s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 178s or locale.getdefaultlocale()[1] 178s WARNING: capability_push is disabled, only do so when really sure 178s WARNING: various enhanced features might fail in subtle ways 179s Traceback (most recent call last): 179s File "/usr/bin/git-remote-hg", line 2013, in 179s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 179s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 179s File "/usr/bin/git-remote-hg", line 1975, in main 179s repo, branchmap = get_repo(url, alias) 179s ~~~~~~~~^^^^^^^^^^^^ 179s File "/usr/bin/git-remote-hg", line 666, in get_repo 179s for branch, branch_heads in compat.iteritems(branchmap): 179s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 179s File "/usr/bin/git-remote-hg", line 63, in iteritems 179s return d.items() 179s ^^^^^^^ 179s AttributeError: 'BranchCacheV2' object has no attribute 'items' 179s fatal: remote helper 'hg' aborted session 179s not ok 29 - fetch multiple independent histories 179s # 179s # test_when_finished "rm -rf gitrepo hgrepo" && 179s # 179s # ( 179s # hg init hgrepo && 179s # cd hgrepo && 179s # echo zero > content && 179s # hg add content && 179s # hg commit -m zero && 179s # hg up -r null && 179s # echo another > ocontent && 179s # hg add ocontent && 179s # hg commit -m one 179s # ) && 179s # 179s # # -r 1 acts as master 179s # ( 179s # git init --bare gitrepo && cd gitrepo && 179s # git remote add origin hg::../hgrepo && 179s # git fetch origin refs/heads/*:refs/heads/* 179s # ) && 179s # 179s # ( 179s # cd hgrepo && 179s # hg up 0 && 179s # echo two > content && 179s # hg commit -m two 179s # ) && 179s # 179s # # now master already exists 179s # # -r 2 becomes master head which has rev 0 as ancestor 179s # # so when importing (parentless) rev 0, a reset is needed 179s # # (to ensure rev 0 is not given a parent commit) 179s # ( 179s # cd gitrepo && 179s # git fetch origin && 179s # git log --format="%s" origin/master > ../actual 179s # ) && 179s # 179s # hg -R hgrepo log -r . -f --template "{desc}\n" > expected && 179s # test_cmp actual expected 179s # 179s 179s expecting success: 179s test_when_finished "rm -rf gitrepo* hgrepo*" && 179s 179s ( 179s hg init hgrepo && 179s cd hgrepo && 179s echo a > a && 179s hg add a && 179s hg commit -m a && 179s hg bookmark -r null bookmark 179s ) && 179s 179s ( 179s git clone "hg::hgrepo" gitrepo && 179s check gitrepo HEAD a && 179s cd gitrepo && 179s git checkout --quiet -b bookmark && 179s git remote -v && 179s echo b > b && 179s git add b && 179s git commit -m b && 179s git push origin bookmark 179s ) 179s 180s Cloning into 'gitrepo'... 180s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 180s or locale.getdefaultlocale()[1] 180s WARNING: capability_push is disabled, only do so when really sure 180s WARNING: various enhanced features might fail in subtle ways 182s Traceback (most recent call last): 182s File "/usr/bin/git-remote-hg", line 2013, in 182s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 182s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 182s File "/usr/bin/git-remote-hg", line 1975, in main 182s repo, branchmap = get_repo(url, alias) 182s ~~~~~~~~^^^^^^^^^^^^ 182s File "/usr/bin/git-remote-hg", line 666, in get_repo 182s for branch, branch_heads in compat.iteritems(branchmap): 182s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 182s File "/usr/bin/git-remote-hg", line 63, in iteritems 182s return d.items() 182s ^^^^^^^ 182s AttributeError: 'BranchCacheV2' object has no attribute 'items' 182s fatal: remote helper 'hg' aborted session 182s not ok 30 - clone remote with null bookmark, then push 182s # 182s # test_when_finished "rm -rf gitrepo* hgrepo*" && 182s # 182s # ( 182s # hg init hgrepo && 182s # cd hgrepo && 182s # echo a > a && 182s # hg add a && 182s # hg commit -m a && 182s # hg bookmark -r null bookmark 182s # ) && 182s # 182s # ( 182s # git clone "hg::hgrepo" gitrepo && 182s # check gitrepo HEAD a && 182s # cd gitrepo && 182s # git checkout --quiet -b bookmark && 182s # git remote -v && 182s # echo b > b && 182s # git add b && 182s # git commit -m b && 182s # git push origin bookmark 182s # ) 182s # 182s 182s expecting success: 182s test_when_finished "rm -rf hgrepo gitrepo" && 182s 182s ( 182s hg init hgrepo && 182s cd hgrepo && 182s echo one > content && 182s hg add content && 182s hg commit -m one && 182s echo two > content && 182s hg commit -m two 182s ) && 182s 182s git clone "hg::hgrepo" gitrepo && 182s hg -R hgrepo log --template "{node}\n\n" > expected && 182s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 182s test_cmp expected actual 182s 183s Cloning into 'gitrepo'... 183s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 183s or locale.getdefaultlocale()[1] 183s WARNING: capability_push is disabled, only do so when really sure 183s WARNING: various enhanced features might fail in subtle ways 198s not ok 31 - notes 198s # 198s # test_when_finished "rm -rf hgrepo gitrepo" && 198s # 198s # ( 198s # hg init hgrepo && 198s # cd hgrepo && 198s # echo one > content && 198s # hg add content && 198s # hg commit -m one && 198s # echo two > content && 198s # hg commit -m two 198s # ) && 198s # 198s # git clone "hg::hgrepo" gitrepo && 198s # hg -R hgrepo log --template "{node}\n\n" > expected && 198s # git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 198s # test_cmp expected actual 198s # 198s 198s checking known breakage: 198s test_when_finished "rm -rf hgrepo gitrepo" && 198s 198s ( 198s hg init hgrepo && 198s cd hgrepo && 198s echo one > content && 198s hg add content && 198s hg commit -m one 198s ) && 198s 198s git clone "hg::hgrepo" gitrepo && 198s 198s ( 198s cd gitrepo && 198s echo two > content && 198s git commit -a -m two && 198s git push 198s ) && 198s 198s hg -R hgrepo log --template "{node}\n\n" > expected && 198s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 198s test_cmp expected actual 198s 198s Traceback (most recent call last): 198s File "/usr/bin/git-remote-hg", line 2013, in 198s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 198s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 1975, in main 198s repo, branchmap = get_repo(url, alias) 198s ~~~~~~~~^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 666, in get_repo 198s for branch, branch_heads in compat.iteritems(branchmap): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 63, in iteritems 198s return d.items() 198s ^^^^^^^ 198s AttributeError: 'BranchCacheV2' object has no attribute 'items' 198s fatal: remote helper 'hg' aborted session 198s Cloning into 'gitrepo'... 198s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 198s or locale.getdefaultlocale()[1] 198s WARNING: capability_push is disabled, only do so when really sure 198s WARNING: various enhanced features might fail in subtle ways 198s Traceback (most recent call last): 198s File "/usr/bin/git-remote-hg", line 2013, in 198s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 198s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 1975, in main 198s repo, branchmap = get_repo(url, alias) 198s ~~~~~~~~^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 666, in get_repo 198s for branch, branch_heads in compat.iteritems(branchmap): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 63, in iteritems 198s return d.items() 198s ^^^^^^^ 198s AttributeError: 'BranchCacheV2' object has no attribute 'items' 198s fatal: remote helper 'hg' aborted session 198s Cloning into 'gitrepo'... 198s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 198s or locale.getdefaultlocale()[1] 198s WARNING: capability_push is disabled, only do so when really sure 198s WARNING: various enhanced features might fail in subtle ways 198s Traceback (most recent call last): 198s File "/usr/bin/git-remote-hg", line 2013, in 198s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 198s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 1975, in main 198s repo, branchmap = get_repo(url, alias) 198s ~~~~~~~~^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 666, in get_repo 198s for branch, branch_heads in compat.iteritems(branchmap): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 63, in iteritems 198s return d.items() 198s ^^^^^^^ 198s AttributeError: 'BranchCacheV2' object has no attribute 'items' 198s fatal: remote helper 'hg' aborted session 198s Cloning into 'gitrepo'... 198s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 198s or locale.getdefaultlocale()[1] 198s WARNING: capability_push is disabled, only do so when really sure 198s WARNING: various enhanced features might fail in subtle ways 198s Traceback (most recent call last): 198s File "/usr/bin/git-remote-hg", line 2013, in 198s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 198s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 1975, in main 198s repo, branchmap = get_repo(url, alias) 198s ~~~~~~~~^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 666, in get_repo 198s for branch, branch_heads in compat.iteritems(branchmap): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 63, in iteritems 198s return d.items() 198s ^^^^^^^ 198s AttributeError: 'BranchCacheV2' object has no attribute 'items' 198s fatal: remote helper 'hg' aborted session 198s Cloning into 'gitrepo'... 198s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 198s or locale.getdefaultlocale()[1] 198s WARNING: capability_push is disabled, only do so when really sure 198s WARNING: various enhanced features might fail in subtle ways 198s Traceback (most recent call last): 198s not ok 32 - push updates notes # TODO known breakage 198s 198s expecting success: 198s test_when_finished "rm -rf hgrepo gitrepo" && 198s 198s ( 198s hg init hgrepo && 198s cd hgrepo && 198s echo one > content && 198s hg add content && 198s hg commit -m one 198s ) && 198s 198s git clone "hg::hgrepo" gitrepo && 198s 198s ( 198s cd gitrepo && 198s echo two > content && 198s git commit -a -m two && 198s git push origin master && 198s git branch feature-a && 198s git push origin feature-a 198s ) && 198s 198s check_bookmark hgrepo feature-a two 198s 198s not ok 33 - push bookmark without changesets 198s # 198s # test_when_finished "rm -rf hgrepo gitrepo" && 198s # 198s # ( 198s # hg init hgrepo && 198s # cd hgrepo && 198s # echo one > content && 198s # hg add content && 198s # hg commit -m one 198s # ) && 198s # 198s # git clone "hg::hgrepo" gitrepo && 198s # 198s # ( 198s # cd gitrepo && 198s # echo two > content && 198s # git commit -a -m two && 198s # git push origin master && 198s # git branch feature-a && 198s # git push origin feature-a 198s # ) && 198s # 198s # check_bookmark hgrepo feature-a two 198s # 198s 198s expecting success: 198s test_when_finished "rm -rf hgrepo gitrepo" && 198s 198s ( 198s hg init hgrepo && 198s cd hgrepo && 198s echo one > content && 198s hg add content && 198s hg commit -m one 198s ) && 198s 198s git clone "hg::hgrepo" gitrepo && 198s 198s (cd hgrepo && hg tag v1.0) && 198s (cd gitrepo && git pull) && 198s 198s echo "v1.0" > expected && 198s git --git-dir=gitrepo/.git tag > actual && 198s test_cmp expected actual 198s 198s not ok 34 - pull tags 198s # 198s # test_when_finished "rm -rf hgrepo gitrepo" && 198s # 198s # ( 198s # hg init hgrepo && 198s # cd hgrepo && 198s # echo one > content && 198s # hg add content && 198s # hg commit -m one 198s # ) && 198s # 198s # git clone "hg::hgrepo" gitrepo && 198s # 198s # (cd hgrepo && hg tag v1.0) && 198s # (cd gitrepo && git pull) && 198s # 198s # echo "v1.0" > expected && 198s # git --git-dir=gitrepo/.git tag > actual && 198s # test_cmp expected actual 198s # 198s 198s expecting success: 198s test_when_finished "rm -rf hgrepo gitrepo" && 198s 198s ( 198s hg init hgrepo && 198s cd hgrepo && 198s echo one > content && 198s hg add content && 198s hg commit -m one && 198s hg branch feature && 198s echo two > content && 198s hg commit -m two && 198s hg update default && 198s echo three > content && 198s hg commit -m three 198s ) && 198s 198s ( 198s git clone "hg::hgrepo" gitrepo && 198s cd gitrepo && 198s git merge -m Merge -Xtheirs origin/branches/feature && 198s git push 198s ) && 198s 198s cat > expected <<-EOF && 198s Merge 198s three 198s two 198s one 198s EOF 198s hg -R hgrepo log --template "{desc}\n" > actual && 198s test_cmp expected actual 198s 198s marked working directory as branch feature 198s (branches are permanent and global, did you want a bookmark?) 198s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 198s not ok 35 - push merged named branch 198s # 198s # test_when_finished "rm -rf hgrepo gitrepo" && 198s # 198s # ( 198s # hg init hgrepo && 198s # cd hgrepo && 198s # echo one > content && 198s # hg add content && 198s # hg commit -m one && 198s # hg branch feature && 198s # echo two > content && 198s # hg commit -m two && 198s # hg update default && 198s # echo three > content && 198s # hg commit -m three 198s # ) && 198s # 198s # ( 198s # git clone "hg::hgrepo" gitrepo && 198s # cd gitrepo && 198s # git merge -m Merge -Xtheirs origin/branches/feature && 198s # git push 198s # ) && 198s # 198s # cat > expected <<-EOF && 198s # Merge 198s # three 198s # two 198s # one 198s # EOF 198s # hg -R hgrepo log --template "{desc}\n" > actual && 198s # test_cmp expected actual 198s # 198s 198s expecting success: 198s test_when_finished "rm -rf hgrepo gitrepo" && 198s 198s ( 198s hg init hgrepo && 198s cd hgrepo && 198s echo one > content && 198s hg add content && 198s hg commit -m one 198s ) && 198s 198s ( 198s git clone "hg::hgrepo" gitrepo && 198s cd gitrepo && 198s git tag v1.0 && 198s git push --tags 198s ) && 198s 198s echo "C O Mitter " > expected && 198s hg -R hgrepo log --template "{author}\n" -r tip > actual && 198s test_cmp expected actual 198s 198s not ok 36 - light tag sets author 198s # 198s # test_when_finished "rm -rf hgrepo gitrepo" && 198s # 198s # ( 198s # hg init hgrepo && 198s # cd hgrepo && 198s # echo one > content && 198s # hg add content && 198s # hg commit -m one 198s # ) && 198s # 198s # ( 198s # git clone "hg::hgrepo" gitrepo && 198s # cd gitrepo && 198s # git tag v1.0 && 198s # git push --tags 198s # ) && 198s # 198s # echo "C O Mitter " > expected && 198s # hg -R hgrepo log --template "{author}\n" -r tip > actual && 198s # test_cmp expected actual 198s # 198s 198s expecting success: 198s test_when_finished "rm -rf hgrepo gitrepo" && 198s 198s ( 198s hg init hgrepo && 198s cd hgrepo && 198s echo one > content && 198s hg add content && 198s hg commit -m one && 198s hg branch feature && 198s echo two > content && 198s hg commit -m two 198s ) && 198s 198s ( 198s git clone "hg::hgrepo" gitrepo && 198s cd gitrepo && 198s git branch && 198s git checkout branches/feature && 198s git tag v1.0 && 198s git push --tags 198s ) && 198s 198s echo feature > expected && 198s hg -R hgrepo log --template="{branch}\n" -r tip > actual && 198s test_cmp expected actual 198s 198s File "/usr/bin/git-remote-hg", line 2013, in 198s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 198s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 1975, in main 198s repo, branchmap = get_repo(url, alias) 198s ~~~~~~~~^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 666, in get_repo 198s for branch, branch_heads in compat.iteritems(branchmap): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 63, in iteritems 198s return d.items() 198s ^^^^^^^ 198s AttributeError: 'BranchCacheV2' object has no attribute 'items' 198s fatal: remote helper 'hg' aborted session 198s Cloning into 'gitrepo'... 198s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 198s or locale.getdefaultlocale()[1] 198s WARNING: capability_push is disabled, only do so when really sure 198s WARNING: various enhanced features might fail in subtle ways 198s Traceback (most recent call last): 198s File "/usr/bin/git-remote-hg", line 2013, in 198s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 198s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 1975, in main 198s repo, branchmap = get_repo(url, alias) 198s ~~~~~~~~^^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 666, in get_repo 198s for branch, branch_heads in compat.iteritems(branchmap): 198s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 198s File "/usr/bin/git-remote-hg", line 63, in iteritems 198s return d.items() 198s ^^^^^^^ 198s AttributeError: 'BranchCacheV2' object has no attribute 'items' 198s fatal: remote helper 'hg' aborted session 199s marked working directory as branch feature 199s (branches are permanent and global, did you want a bookmark?) 199s Cloning into 'gitrepo'... 200s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 200s or locale.getdefaultlocale()[1] 200s WARNING: capability_push is disabled, only do so when really sure 200s WARNING: various enhanced features might fail in subtle ways 201s Traceback (most recent call last): 201s File "/usr/bin/git-remote-hg", line 2013, in 201s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 201s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/bin/git-remote-hg", line 1975, in main 201s repo, branchmap = get_repo(url, alias) 201s ~~~~~~~~^^^^^^^^^^^^ 201s File "/usr/bin/git-remote-hg", line 666, in get_repo 201s for branch, branch_heads in compat.iteritems(branchmap): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 201s File "/usr/bin/git-remote-hg", line 63, in iteritems 201s return d.items() 201s ^^^^^^^ 201s AttributeError: 'BranchCacheV2' object has no attribute 'items' 201s fatal: remote helper 'hg' aborted session 201s not ok 37 - push tag different branch 201s # 201s # test_when_finished "rm -rf hgrepo gitrepo" && 201s # 201s # ( 201s # hg init hgrepo && 201s # cd hgrepo && 201s # echo one > content && 201s # hg add content && 201s # hg commit -m one && 201s # hg branch feature && 201s # echo two > content && 201s # hg commit -m two 201s # ) && 201s # 201s # ( 201s # git clone "hg::hgrepo" gitrepo && 201s # cd gitrepo && 201s # git branch && 201s # git checkout branches/feature && 201s # git tag v1.0 && 201s # git push --tags 201s # ) && 201s # 201s # echo feature > expected && 201s # hg -R hgrepo log --template="{branch}\n" -r tip > actual && 201s # test_cmp expected actual 201s # 201s 201s expecting success: 201s test_when_finished "rm -rf hgrepo gitrepo" && 201s 201s ( 201s hg init hgrepo && 201s cd hgrepo && 201s 201s echo test > test_file && 201s hg add test_file && 201s hg commit -m add && 201s 201s hg rm test_file && 201s hg commit -m remove 201s ) && 201s 201s git clone "hg::hgrepo" gitrepo && 201s check_files gitrepo 201s 202s Cloning into 'gitrepo'... 203s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 203s or locale.getdefaultlocale()[1] 203s WARNING: capability_push is disabled, only do so when really sure 203s WARNING: various enhanced features might fail in subtle ways 204s Traceback (most recent call last): 204s File "/usr/bin/git-remote-hg", line 2013, in 204s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 204s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/bin/git-remote-hg", line 1975, in main 204s repo, branchmap = get_repo(url, alias) 204s ~~~~~~~~^^^^^^^^^^^^ 204s File "/usr/bin/git-remote-hg", line 666, in get_repo 204s for branch, branch_heads in compat.iteritems(branchmap): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 204s File "/usr/bin/git-remote-hg", line 63, in iteritems 204s return d.items() 204s ^^^^^^^ 204s AttributeError: 'BranchCacheV2' object has no attribute 'items' 204s fatal: remote helper 'hg' aborted session 204s not ok 38 - cloning a removed file works 204s # 204s # test_when_finished "rm -rf hgrepo gitrepo" && 204s # 204s # ( 204s # hg init hgrepo && 204s # cd hgrepo && 204s # 204s # echo test > test_file && 204s # hg add test_file && 204s # hg commit -m add && 204s # 204s # hg rm test_file && 204s # hg commit -m remove 204s # ) && 204s # 204s # git clone "hg::hgrepo" gitrepo && 204s # check_files gitrepo 204s # 204s 204s expecting success: 204s test_when_finished "rm -rf hgrepo gitrepo" && 204s 204s ( 204s hg init hgrepo && 204s cd hgrepo && 204s 204s echo test > dir_or_file && 204s hg add dir_or_file && 204s hg commit -m add && 204s 204s hg rm dir_or_file && 204s mkdir dir_or_file && 204s echo test > dir_or_file/test_file && 204s hg add dir_or_file/test_file && 204s hg commit -m replase 204s ) && 204s 204s git clone "hg::hgrepo" gitrepo && 204s check_files gitrepo "dir_or_file/test_file" 204s 206s Cloning into 'gitrepo'... 206s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 206s or locale.getdefaultlocale()[1] 206s WARNING: capability_push is disabled, only do so when really sure 206s WARNING: various enhanced features might fail in subtle ways 207s Traceback (most recent call last): 207s File "/usr/bin/git-remote-hg", line 2013, in 207s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 207s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 207s File "/usr/bin/git-remote-hg", line 1975, in main 207s repo, branchmap = get_repo(url, alias) 207s ~~~~~~~~^^^^^^^^^^^^ 207s File "/usr/bin/git-remote-hg", line 666, in get_repo 207s for branch, branch_heads in compat.iteritems(branchmap): 207s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 207s File "/usr/bin/git-remote-hg", line 63, in iteritems 207s return d.items() 207s ^^^^^^^ 207s AttributeError: 'BranchCacheV2' object has no attribute 'items' 207s fatal: remote helper 'hg' aborted session 207s not ok 39 - cloning a file replaced with a directory 207s # 207s # test_when_finished "rm -rf hgrepo gitrepo" && 207s # 207s # ( 207s # hg init hgrepo && 207s # cd hgrepo && 207s # 207s # echo test > dir_or_file && 207s # hg add dir_or_file && 207s # hg commit -m add && 207s # 207s # hg rm dir_or_file && 207s # mkdir dir_or_file && 207s # echo test > dir_or_file/test_file && 207s # hg add dir_or_file/test_file && 207s # hg commit -m replase 207s # ) && 207s # 207s # git clone "hg::hgrepo" gitrepo && 207s # check_files gitrepo "dir_or_file/test_file" 207s # 207s 207s expecting success: 207s test_when_finished "rm -rf hgrepo gitrepo" && 207s 207s ( 207s hg init hgrepo && 207s cd hgrepo && 207s 207s mkdir dir_or_file && 207s echo test > dir_or_file/test_file && 207s hg add dir_or_file/test_file && 207s hg commit -m add && 207s 207s hg rm dir_or_file/test_file && 207s echo test > dir_or_file && 207s hg add dir_or_file && 207s hg commit -m add && 207s 207s hg rm dir_or_file 207s ) && 207s 207s git clone "hg::hgrepo" gitrepo && 207s check_files gitrepo "dir_or_file" 207s 209s Cloning into 'gitrepo'... 210s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 210s or locale.getdefaultlocale()[1] 210s WARNING: capability_push is disabled, only do so when really sure 210s WARNING: various enhanced features might fail in subtle ways 211s Traceback (most recent call last): 211s File "/usr/bin/git-remote-hg", line 2013, in 211s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 211s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/bin/git-remote-hg", line 1975, in main 211s repo, branchmap = get_repo(url, alias) 211s ~~~~~~~~^^^^^^^^^^^^ 211s File "/usr/bin/git-remote-hg", line 666, in get_repo 211s for branch, branch_heads in compat.iteritems(branchmap): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 211s File "/usr/bin/git-remote-hg", line 63, in iteritems 211s return d.items() 211s ^^^^^^^ 211s AttributeError: 'BranchCacheV2' object has no attribute 'items' 211s fatal: remote helper 'hg' aborted session 211s not ok 40 - clone replace directory with a file 211s # 211s # test_when_finished "rm -rf hgrepo gitrepo" && 211s # 211s # ( 211s # hg init hgrepo && 211s # cd hgrepo && 211s # 211s # mkdir dir_or_file && 211s # echo test > dir_or_file/test_file && 211s # hg add dir_or_file/test_file && 211s # hg commit -m add && 211s # 211s # hg rm dir_or_file/test_file && 211s # echo test > dir_or_file && 211s # hg add dir_or_file && 211s # hg commit -m add && 211s # 211s # hg rm dir_or_file 211s # ) && 211s # 211s # git clone "hg::hgrepo" gitrepo && 211s # check_files gitrepo "dir_or_file" 211s # 211s 211s expecting success: 211s test_when_finished "rm -rf hgrepo gitrepo" && 211s 211s ( 211s hg init hgrepo && 211s cd hgrepo && 211s 211s touch test.txt && 211s hg add test.txt && 211s hg commit -m master && 211s hg branch parent && 211s echo test >test.txt && 211s hg commit -m test && 211s hg branch parent/child && 211s echo test1 >test.txt && 211s hg commit -m test1 211s ) && 211s 211s git clone -c remote-hg.ignore-name=child "hg::hgrepo" gitrepo && 211s check_files gitrepo "test.txt" 211s 212s marked working directory as branch parent 212s (branches are permanent and global, did you want a bookmark?) 213s marked working directory as branch parent/child 213s Cloning into 'gitrepo'... 213s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 213s or locale.getdefaultlocale()[1] 213s WARNING: capability_push is disabled, only do so when really sure 213s WARNING: various enhanced features might fail in subtle ways 214s Traceback (most recent call last): 214s File "/usr/bin/git-remote-hg", line 2013, in 214s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 214s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 214s File "/usr/bin/git-remote-hg", line 1975, in main 214s repo, branchmap = get_repo(url, alias) 214s ~~~~~~~~^^^^^^^^^^^^ 214s File "/usr/bin/git-remote-hg", line 666, in get_repo 214s for branch, branch_heads in compat.iteritems(branchmap): 214s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 214s File "/usr/bin/git-remote-hg", line 63, in iteritems 214s return d.items() 214s ^^^^^^^ 214s AttributeError: 'BranchCacheV2' object has no attribute 'items' 215s not ok 41 - clone can ignore invalid refnames 215s fatal: remote helper 'hg' aborted session 215s # 215s # test_when_finished "rm -rf hgrepo gitrepo" && 215s # 215s # ( 215s # hg init hgrepo && 215s # cd hgrepo && 215s # 215s # touch test.txt && 215s # hg add test.txt && 215s # hg commit -m master && 215s # hg branch parent && 215s # echo test >test.txt && 215s # hg commit -m test && 215s # hg branch parent/child && 215s # echo test1 >test.txt && 215s # hg commit -m test1 215s # ) && 215s # 215s # git clone -c remote-hg.ignore-name=child "hg::hgrepo" gitrepo && 215s # check_files gitrepo "test.txt" 215s # 215s 215s expecting success: 215s test_when_finished "rm -rf hgrepo gitrepo" && 215s 215s ( 215s hg init hgrepo && 215s cd hgrepo && 215s echo one > content && 215s hg add content && 215s hg commit -m one 215s ) && 215s 215s ( 215s git clone "hg::hgrepo" gitrepo && 215s cd gitrepo && 215s git tag -m "Version 1.0" v1.0 && 215s git push --tags 215s ) && 215s 215s cat > expected <<-\EOF && 215s tip:Version 1.0:C O Mitter 215s v1.0:one:H G Wells 215s EOF 215s 215s hg -R hgrepo log --template "{tags}:{desc}:{author}\n" > actual && 215s 215s test_cmp expected actual 215s 215s Cloning into 'gitrepo'... 216s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 216s or locale.getdefaultlocale()[1] 216s WARNING: capability_push is disabled, only do so when really sure 216s WARNING: various enhanced features might fail in subtle ways 217s Traceback (most recent call last): 217s File "/usr/bin/git-remote-hg", line 2013, in 217s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 217s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/bin/git-remote-hg", line 1975, in main 217s repo, branchmap = get_repo(url, alias) 217s ~~~~~~~~^^^^^^^^^^^^ 217s File "/usr/bin/git-remote-hg", line 666, in get_repo 217s for branch, branch_heads in compat.iteritems(branchmap): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 217s File "/usr/bin/git-remote-hg", line 63, in iteritems 217s return d.items() 217s ^^^^^^^ 217s AttributeError: 'BranchCacheV2' object has no attribute 'items' 217s fatal: remote helper 'hg' aborted session 217s not ok 42 - push annotated tag 217s # 217s # test_when_finished "rm -rf hgrepo gitrepo" && 217s # 217s # ( 217s # hg init hgrepo && 217s # cd hgrepo && 217s # echo one > content && 217s # hg add content && 217s # hg commit -m one 217s # ) && 217s # 217s # ( 217s # git clone "hg::hgrepo" gitrepo && 217s # cd gitrepo && 217s # git tag -m "Version 1.0" v1.0 && 217s # git push --tags 217s # ) && 217s # 217s # cat > expected <<-\EOF && 217s # tip:Version 1.0:C O Mitter 217s # v1.0:one:H G Wells 217s # EOF 217s # 217s # hg -R hgrepo log --template "{tags}:{desc}:{author}\n" > actual && 217s # 217s # test_cmp expected actual 217s # 217s 217s expecting success: 217s test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && 217s 217s hg init hgrepo && 217s 217s ( 217s git clone "hg::hgrepo" gitrepo1 && 217s cd gitrepo1 && 217s echo two >> content && 217s git add content && 217s git commit -m two --date="2016-09-26 00:00:00 -0230" && 217s git push 217s ) && 217s 217s git clone "hg::hgrepo" gitrepo2 && 217s 217s git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && 217s git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && 217s test_cmp expected actual 217s 217s Cloning into 'gitrepo1'... 218s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 218s or locale.getdefaultlocale()[1] 218s WARNING: capability_push is disabled, only do so when really sure 218s WARNING: various enhanced features might fail in subtle ways 219s Traceback (most recent call last): 219s File "/usr/bin/git-remote-hg", line 2013, in 219s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 219s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 219s File "/usr/bin/git-remote-hg", line 1975, in main 219s repo, branchmap = get_repo(url, alias) 219s ~~~~~~~~^^^^^^^^^^^^ 219s File "/usr/bin/git-remote-hg", line 666, in get_repo 219s for branch, branch_heads in compat.iteritems(branchmap): 219s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 219s File "/usr/bin/git-remote-hg", line 63, in iteritems 219s return d.items() 219s ^^^^^^^ 219s AttributeError: 'BranchCacheV2' object has no attribute 'items' 219s fatal: remote helper 'hg' aborted session 219s not ok 43 - timezone issues with negative offsets 219s # 219s # test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && 219s # 219s # hg init hgrepo && 219s # 219s # ( 219s # git clone "hg::hgrepo" gitrepo1 && 219s # cd gitrepo1 && 219s # echo two >> content && 219s # git add content && 219s # git commit -m two --date="2016-09-26 00:00:00 -0230" && 219s # git push 219s # ) && 219s # 219s # git clone "hg::hgrepo" gitrepo2 && 219s # 219s # git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && 219s # git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && 219s # test_cmp expected actual 219s # 219s 219s # still have 2 known breakage(s) 219s # failed 40 among remaining 41 test(s) 219s 1..43 219s make: *** [Makefile:14: main.t] Error 1 219s make: Leaving directory '/tmp/autopkgtest.ZdmU5R/build.fp3/src/test' 219s autopkgtest [06:59:38]: test upstream-test-suite: -----------------------] 220s autopkgtest [06:59:39]: test upstream-test-suite: - - - - - - - - - - results - - - - - - - - - - 220s upstream-test-suite FAIL non-zero exit status 2 220s autopkgtest [06:59:39]: @@@@@@@@@@@@@@@@@@@@ summary 220s upstream-test-suite FAIL non-zero exit status 2