0s autopkgtest [06:56:02]: starting date and time: 2026-02-10 06:56:02+0000 0s autopkgtest [06:56:02]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [06:56:02]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.rn8d0ijg/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-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@sto01-ppc64el-1.secgroup --name adt-resolute-ppc64el-git-remote-hg-20260210-065602-juju-7f2275-prod-proposed-migration-environment-20-55fa532a-3cd6-42a7-9ce0-dea388c017ee --image adt/ubuntu-resolute-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-autopkgtest-workers-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-ppc64el-git-remote-hg-20260210-065602-juju-7f2275-prod-proposed-migration-environment-20-55fa532a-3cd6-42a7-9ce0-dea388c017ee from image adt/ubuntu-resolute-ppc64el-server-20260209.img (UUID f7f31435-4cd1-4090-aa55-59cfefa097ca)... 53s autopkgtest [06:56:55]: testbed dpkg architecture: ppc64el 54s autopkgtest [06:56:56]: testbed apt version: 3.1.15 54s autopkgtest [06:56:56]: @@@@@@@@@@@@@@@@@@@@ test bed setup 54s autopkgtest [06:56:56]: testbed release detected to be: None 55s autopkgtest [06:56:57]: updating testbed package index (apt update) 55s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 55s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 55s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 55s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 55s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [178 kB] 55s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.1 kB] 55s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1727 kB] 55s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [261 kB] 55s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1728 kB] 55s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [20.2 kB] 56s Fetched 4069 kB in 1s (5278 kB/s) 56s Reading package lists... 57s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 57s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 57s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 57s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 58s Reading package lists... 58s Reading package lists... 58s Building dependency tree... 58s Reading state information... 58s Calculating upgrade... 58s The following NEW packages will be installed: 58s gcc-16-base 58s The following packages will be upgraded: 58s cryptsetup-bin dracut-install iproute2 iptables libatomic1 libbrotli1 58s libcryptsetup12 libgcc-s1 libip4tc2 libip6tc2 libstdc++6 libxtables12 wget 58s 13 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 58s Need to get 4597 kB of archives. 58s After this operation, 279 kB of additional disk space will be used. 58s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-16-base ppc64el 16-20260208-1ubuntu1 [59.7 kB] 58s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgcc-s1 ppc64el 16-20260208-1ubuntu1 [39.3 kB] 58s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el iptables ppc64el 1.8.11-2ubuntu3 [464 kB] 58s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libip4tc2 ppc64el 1.8.11-2ubuntu3 [27.8 kB] 58s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el libip6tc2 ppc64el 1.8.11-2ubuntu3 [28.2 kB] 58s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxtables12 ppc64el 1.8.11-2ubuntu3 [41.2 kB] 58s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el iproute2 ppc64el 6.18.0-1ubuntu1 [1458 kB] 58s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el libatomic1 ppc64el 16-20260208-1ubuntu1 [11.0 kB] 58s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el libcryptsetup12 ppc64el 2:2.8.0-1ubuntu3 [404 kB] 59s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el libstdc++6 ppc64el 16-20260208-1ubuntu1 [930 kB] 59s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el wget ppc64el 1.25.0-2ubuntu4 [401 kB] 59s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el cryptsetup-bin ppc64el 2:2.8.0-1ubuntu3 [250 kB] 59s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el dracut-install ppc64el 109-11ubuntu1 [51.3 kB] 59s Get:14 http://ftpmaster.internal/ubuntu resolute/main ppc64el libbrotli1 ppc64el 1.2.0-3 [431 kB] 59s dpkg-preconfigure: unable to re-open stdin: No such file or directory 59s Fetched 4597 kB in 0s (25.9 MB/s) 59s Selecting previously unselected package gcc-16-base:ppc64el. 59s (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 ... 122003 files and directories currently installed.) 59s Preparing to unpack .../gcc-16-base_16-20260208-1ubuntu1_ppc64el.deb ... 59s Unpacking gcc-16-base:ppc64el (16-20260208-1ubuntu1) ... 59s Setting up gcc-16-base:ppc64el (16-20260208-1ubuntu1) ... 60s (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 ... 122008 files and directories currently installed.) 60s Preparing to unpack .../libgcc-s1_16-20260208-1ubuntu1_ppc64el.deb ... 60s Unpacking libgcc-s1:ppc64el (16-20260208-1ubuntu1) over (15.2.0-12ubuntu1) ... 60s Setting up libgcc-s1:ppc64el (16-20260208-1ubuntu1) ... 60s (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 ... 122008 files and directories currently installed.) 60s Preparing to unpack .../00-iptables_1.8.11-2ubuntu3_ppc64el.deb ... 60s Unpacking iptables (1.8.11-2ubuntu3) over (1.8.11-2ubuntu2) ... 60s Preparing to unpack .../01-libip4tc2_1.8.11-2ubuntu3_ppc64el.deb ... 60s Unpacking libip4tc2:ppc64el (1.8.11-2ubuntu3) over (1.8.11-2ubuntu2) ... 60s Preparing to unpack .../02-libip6tc2_1.8.11-2ubuntu3_ppc64el.deb ... 60s Unpacking libip6tc2:ppc64el (1.8.11-2ubuntu3) over (1.8.11-2ubuntu2) ... 60s Preparing to unpack .../03-libxtables12_1.8.11-2ubuntu3_ppc64el.deb ... 60s Unpacking libxtables12:ppc64el (1.8.11-2ubuntu3) over (1.8.11-2ubuntu2) ... 60s Preparing to unpack .../04-iproute2_6.18.0-1ubuntu1_ppc64el.deb ... 61s Unpacking iproute2 (6.18.0-1ubuntu1) over (6.16.0-1ubuntu3) ... 61s Preparing to unpack .../05-libatomic1_16-20260208-1ubuntu1_ppc64el.deb ... 61s Unpacking libatomic1:ppc64el (16-20260208-1ubuntu1) over (15.2.0-12ubuntu1) ... 61s Preparing to unpack .../06-libcryptsetup12_2%3a2.8.0-1ubuntu3_ppc64el.deb ... 61s Unpacking libcryptsetup12:ppc64el (2:2.8.0-1ubuntu3) over (2:2.8.0-1ubuntu2) ... 61s Preparing to unpack .../07-libstdc++6_16-20260208-1ubuntu1_ppc64el.deb ... 61s Unpacking libstdc++6:ppc64el (16-20260208-1ubuntu1) over (15.2.0-12ubuntu1) ... 61s Preparing to unpack .../08-wget_1.25.0-2ubuntu4_ppc64el.deb ... 61s Unpacking wget (1.25.0-2ubuntu4) over (1.25.0-2ubuntu3) ... 61s Preparing to unpack .../09-cryptsetup-bin_2%3a2.8.0-1ubuntu3_ppc64el.deb ... 61s Unpacking cryptsetup-bin (2:2.8.0-1ubuntu3) over (2:2.8.0-1ubuntu2) ... 61s Preparing to unpack .../10-dracut-install_109-11ubuntu1_ppc64el.deb ... 62s Unpacking dracut-install (109-11ubuntu1) over (109-9ubuntu1) ... 62s Preparing to unpack .../11-libbrotli1_1.2.0-3_ppc64el.deb ... 62s Unpacking libbrotli1:ppc64el (1.2.0-3) over (1.1.0-2build6) ... 62s Setting up libip4tc2:ppc64el (1.8.11-2ubuntu3) ... 62s Setting up wget (1.25.0-2ubuntu4) ... 62s Setting up libip6tc2:ppc64el (1.8.11-2ubuntu3) ... 62s Setting up libbrotli1:ppc64el (1.2.0-3) ... 62s Setting up libatomic1:ppc64el (16-20260208-1ubuntu1) ... 62s Setting up libxtables12:ppc64el (1.8.11-2ubuntu3) ... 62s Setting up dracut-install (109-11ubuntu1) ... 62s Setting up libcryptsetup12:ppc64el (2:2.8.0-1ubuntu3) ... 62s Setting up libstdc++6:ppc64el (16-20260208-1ubuntu1) ... 62s Setting up cryptsetup-bin (2:2.8.0-1ubuntu3) ... 62s Setting up iptables (1.8.11-2ubuntu3) ... 62s Setting up iproute2 (6.18.0-1ubuntu1) ... 62s Processing triggers for man-db (2.13.1-1build1) ... 65s Processing triggers for install-info (7.2-5) ... 65s Processing triggers for libc-bin (2.42-2ubuntu4) ... 65s autopkgtest [06:57:07]: upgrading testbed (apt dist-upgrade and autopurge) 65s Reading package lists... 66s Building dependency tree... 66s Reading state information... 66s Calculating upgrade... 66s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 66s Reading package lists... 66s Building dependency tree... 66s Reading state information... 66s Solving dependencies... 66s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 69s autopkgtest [06:57:11]: testbed running kernel: Linux 6.19.0-3-generic #3-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 23 20:13:51 UTC 2026 69s autopkgtest [06:57:11]: @@@@@@@@@@@@@@@@@@@@ apt-source git-remote-hg 70s Get:1 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (dsc) [2129 B] 70s Get:2 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (tar) [56.1 kB] 70s Get:3 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (diff) [5272 B] 71s gpgv: Signature made Wed Sep 24 17:58:21 2025 UTC 71s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 71s gpgv: issuer "tchet@debian.org" 71s gpgv: Can't check signature: No public key 71s dpkg-source: warning: cannot verify inline signature for ./git-remote-hg_1.0.5~ds-1.dsc: no acceptable signature found 71s autopkgtest [06:57:13]: testing package git-remote-hg version 1.0.5~ds-1 71s autopkgtest [06:57:13]: build not needed 71s autopkgtest [06:57:13]: test upstream-test-suite: preparing testbed 71s Reading package lists... 72s Building dependency tree... 72s Reading state information... 72s Solving dependencies... 72s The following NEW packages will be installed: 72s git git-man git-remote-hg liberror-perl mercurial mercurial-common 72s mercurial-git python3-dulwich sharness 72s 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 72s Need to get 12.6 MB of archives. 72s After this operation, 58.3 MB of additional disk space will be used. 72s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el liberror-perl all 0.17030-1 [23.5 kB] 72s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el git-man all 1:2.51.0-1ubuntu1 [1179 kB] 72s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el git ppc64el 1:2.51.0-1ubuntu1 [7646 kB] 72s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el mercurial-common all 7.2-2 [2853 kB] 72s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el mercurial ppc64el 7.2-2 [575 kB] 72s Get:6 http://ftpmaster.internal/ubuntu resolute/universe ppc64el git-remote-hg all 1.0.5~ds-1 [41.6 kB] 72s Get:7 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-dulwich ppc64el 0.22.7-1 [183 kB] 72s Get:8 http://ftpmaster.internal/ubuntu resolute/universe ppc64el mercurial-git all 1.2.0-1 [60.9 kB] 72s Get:9 http://ftpmaster.internal/ubuntu resolute/universe ppc64el sharness all 1.0.0-1.1build1 [26.2 kB] 72s Fetched 12.6 MB in 1s (24.1 MB/s) 72s Selecting previously unselected package liberror-perl. 72s (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 ... 122011 files and directories currently installed.) 72s Preparing to unpack .../0-liberror-perl_0.17030-1_all.deb ... 72s Unpacking liberror-perl (0.17030-1) ... 73s Selecting previously unselected package git-man. 73s Preparing to unpack .../1-git-man_1%3a2.51.0-1ubuntu1_all.deb ... 73s Unpacking git-man (1:2.51.0-1ubuntu1) ... 73s Selecting previously unselected package git. 73s Preparing to unpack .../2-git_1%3a2.51.0-1ubuntu1_ppc64el.deb ... 73s Unpacking git (1:2.51.0-1ubuntu1) ... 73s Selecting previously unselected package mercurial-common. 73s Preparing to unpack .../3-mercurial-common_7.2-2_all.deb ... 73s Unpacking mercurial-common (7.2-2) ... 73s Selecting previously unselected package mercurial. 73s Preparing to unpack .../4-mercurial_7.2-2_ppc64el.deb ... 73s Unpacking mercurial (7.2-2) ... 73s Selecting previously unselected package git-remote-hg. 73s Preparing to unpack .../5-git-remote-hg_1.0.5~ds-1_all.deb ... 73s Unpacking git-remote-hg (1.0.5~ds-1) ... 73s Selecting previously unselected package python3-dulwich. 73s Preparing to unpack .../6-python3-dulwich_0.22.7-1_ppc64el.deb ... 73s Unpacking python3-dulwich (0.22.7-1) ... 73s Selecting previously unselected package mercurial-git. 73s Preparing to unpack .../7-mercurial-git_1.2.0-1_all.deb ... 73s Unpacking mercurial-git (1.2.0-1) ... 73s Selecting previously unselected package sharness. 73s Preparing to unpack .../8-sharness_1.0.0-1.1build1_all.deb ... 73s Unpacking sharness (1.0.0-1.1build1) ... 73s Setting up mercurial-common (7.2-2) ... 75s Setting up liberror-perl (0.17030-1) ... 75s Setting up sharness (1.0.0-1.1build1) ... 75s Setting up python3-dulwich (0.22.7-1) ... 75s Setting up git-man (1:2.51.0-1ubuntu1) ... 75s Setting up mercurial (7.2-2) ... 75s Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version 75s Setting up mercurial-git (1.2.0-1) ... 75s mercurial-git extension is disabled by default. 75s You can follow the instructions in /usr/share/doc/mercurial-git/README.Debian to enable it. 76s Setting up git (1:2.51.0-1ubuntu1) ... 76s Setting up git-remote-hg (1.0.5~ds-1) ... 76s Processing triggers for man-db (2.13.1-1build1) ... 77s autopkgtest [06:57:19]: test upstream-test-suite: make -C test TEST_INSTALLED_SCRIPTS=1 TEST_OPTS=--verbose 77s autopkgtest [06:57:19]: test upstream-test-suite: [----------------------- 77s make: Entering directory '/tmp/autopkgtest.IJeKvO/build.VGb/src/test' 77s ./main.t --verbose 77s expecting success: 77s ( 77s hg init hgrepo && 77s cd hgrepo && 77s echo zero > content && 77s hg add content && 77s hg commit -m zero 77s ) 77s 78s ok 1 - setup 78s 78s expecting success: 78s test_when_finished "rm -rf gitrepo*" && 78s git clone "hg::hgrepo" gitrepo && 78s check gitrepo HEAD zero 78s 78s Cloning into 'gitrepo'... 78s /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. 78s or locale.getdefaultlocale()[1] 78s WARNING: capability_push is disabled, only do so when really sure 78s WARNING: various enhanced features might fail in subtle ways 80s Traceback (most recent call last): 80s File "/usr/bin/git-remote-hg", line 2013, in 80s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 80s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 80s File "/usr/bin/git-remote-hg", line 1975, in main 80s repo, branchmap = get_repo(url, alias) 80s ~~~~~~~~^^^^^^^^^^^^ 80s File "/usr/bin/git-remote-hg", line 666, in get_repo 80s for branch, branch_heads in compat.iteritems(branchmap): 80s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 80s File "/usr/bin/git-remote-hg", line 63, in iteritems 80s return d.items() 80s ^^^^^^^ 80s AttributeError: 'BranchCacheV2' object has no attribute 'items' 80s fatal: remote helper 'hg' aborted session 80s not ok 2 - cloning 80s # 80s # test_when_finished "rm -rf gitrepo*" && 80s # git clone "hg::hgrepo" gitrepo && 80s # check gitrepo HEAD zero 80s # 80s 80s expecting success: 80s test_when_finished "rm -rf gitrepo*" && 80s 80s ( 80s cd hgrepo && 80s hg branch next && 80s echo next > content && 80s hg commit -m next 80s ) && 80s 80s git clone "hg::hgrepo" gitrepo && 80s check gitrepo origin/branches/next next 80s 80s marked working directory as branch next 80s (branches are permanent and global, did you want a bookmark?) 80s Cloning into 'gitrepo'... 80s /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. 80s or locale.getdefaultlocale()[1] 80s WARNING: capability_push is disabled, only do so when really sure 80s WARNING: various enhanced features might fail in subtle ways 81s Traceback (most recent call last): 81s File "/usr/bin/git-remote-hg", line 2013, in 81s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 81s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 81s File "/usr/bin/git-remote-hg", line 1975, in main 81s repo, branchmap = get_repo(url, alias) 81s ~~~~~~~~^^^^^^^^^^^^ 81s File "/usr/bin/git-remote-hg", line 666, in get_repo 81s for branch, branch_heads in compat.iteritems(branchmap): 81s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 81s File "/usr/bin/git-remote-hg", line 63, in iteritems 81s return d.items() 81s ^^^^^^^ 81s AttributeError: 'BranchCacheV2' object has no attribute 'items' 81s fatal: remote helper 'hg' aborted session 81s not ok 3 - cloning with branches 81s # 81s # test_when_finished "rm -rf gitrepo*" && 81s # 81s # ( 81s # cd hgrepo && 81s # hg branch next && 81s # echo next > content && 81s # hg commit -m next 81s # ) && 81s # 81s # git clone "hg::hgrepo" gitrepo && 81s # check gitrepo origin/branches/next next 81s # 81s 81s expecting success: 81s test_when_finished "rm -rf gitrepo*" && 81s 81s ( 81s cd hgrepo && 81s hg checkout default && 81s hg bookmark feature-a && 81s echo feature-a > content && 81s hg commit -m feature-a 81s ) && 81s 81s git clone "hg::hgrepo" gitrepo && 81s check gitrepo origin/feature-a feature-a 81s 81s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 82s Cloning into 'gitrepo'... 82s /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. 82s or locale.getdefaultlocale()[1] 82s WARNING: capability_push is disabled, only do so when really sure 82s WARNING: various enhanced features might fail in subtle ways 83s Traceback (most recent call last): 83s File "/usr/bin/git-remote-hg", line 2013, in 83s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 83s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 83s File "/usr/bin/git-remote-hg", line 1975, in main 83s repo, branchmap = get_repo(url, alias) 83s ~~~~~~~~^^^^^^^^^^^^ 83s File "/usr/bin/git-remote-hg", line 666, in get_repo 83s for branch, branch_heads in compat.iteritems(branchmap): 83s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 83s File "/usr/bin/git-remote-hg", line 63, in iteritems 83s return d.items() 83s ^^^^^^^ 83s AttributeError: 'BranchCacheV2' object has no attribute 'items' 83s fatal: remote helper 'hg' aborted session 83s not ok 4 - cloning with bookmarks 83s # 83s # test_when_finished "rm -rf gitrepo*" && 83s # 83s # ( 83s # cd hgrepo && 83s # hg checkout default && 83s # hg bookmark feature-a && 83s # echo feature-a > content && 83s # hg commit -m feature-a 83s # ) && 83s # 83s # git clone "hg::hgrepo" gitrepo && 83s # check gitrepo origin/feature-a feature-a 83s # 83s 83s expecting success: 83s test_when_finished "rm -rf gitrepo*" && 83s 83s ( 83s cd hgrepo && 83s hg bookmark devel 83s ) && 83s 83s ( 83s git clone "hg::hgrepo" gitrepo && 83s cd gitrepo && 83s git checkout --quiet devel && 83s echo devel > content && 83s git commit -a -m devel && 83s git push --quiet origin devel 83s ) && 83s 83s check_bookmark hgrepo devel devel 83s 83s Cloning into 'gitrepo'... 83s /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. 83s or locale.getdefaultlocale()[1] 83s WARNING: capability_push is disabled, only do so when really sure 83s WARNING: various enhanced features might fail in subtle ways 84s Traceback (most recent call last): 84s File "/usr/bin/git-remote-hg", line 2013, in 84s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 84s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 84s File "/usr/bin/git-remote-hg", line 1975, in main 84s repo, branchmap = get_repo(url, alias) 84s ~~~~~~~~^^^^^^^^^^^^ 84s File "/usr/bin/git-remote-hg", line 666, in get_repo 84s for branch, branch_heads in compat.iteritems(branchmap): 84s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 84s File "/usr/bin/git-remote-hg", line 63, in iteritems 84s return d.items() 84s ^^^^^^^ 84s AttributeError: 'BranchCacheV2' object has no attribute 'items' 84s fatal: remote helper 'hg' aborted session 84s not ok 5 - update bookmark 84s # 84s # test_when_finished "rm -rf gitrepo*" && 84s # 84s # ( 84s # cd hgrepo && 84s # hg bookmark devel 84s # ) && 84s # 84s # ( 84s # git clone "hg::hgrepo" gitrepo && 84s # cd gitrepo && 84s # git checkout --quiet devel && 84s # echo devel > content && 84s # git commit -a -m devel && 84s # git push --quiet origin devel 84s # ) && 84s # 84s # check_bookmark hgrepo devel devel 84s # 84s 84s expecting success: 84s test_when_finished "rm -rf gitrepo*" && 84s 84s ( 84s git clone "hg::hgrepo" gitrepo && 84s cd gitrepo && 84s git checkout --quiet -b feature-b && 84s echo feature-b > content && 84s git commit -a -m feature-b && 84s git push --quiet origin feature-b 84s ) && 84s 84s check_bookmark hgrepo feature-b feature-b 84s 84s Cloning into 'gitrepo'... 84s /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. 84s or locale.getdefaultlocale()[1] 84s WARNING: capability_push is disabled, only do so when really sure 84s WARNING: various enhanced features might fail in subtle ways 85s Traceback (most recent call last): 85s File "/usr/bin/git-remote-hg", line 2013, in 85s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 85s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 85s File "/usr/bin/git-remote-hg", line 1975, in main 85s repo, branchmap = get_repo(url, alias) 85s ~~~~~~~~^^^^^^^^^^^^ 85s File "/usr/bin/git-remote-hg", line 666, in get_repo 85s for branch, branch_heads in compat.iteritems(branchmap): 85s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 85s File "/usr/bin/git-remote-hg", line 63, in iteritems 85s return d.items() 85s ^^^^^^^ 85s AttributeError: 'BranchCacheV2' object has no attribute 'items' 85s fatal: remote helper 'hg' aborted session 85s not ok 6 - new bookmark 85s # 85s # test_when_finished "rm -rf gitrepo*" && 85s # 85s # ( 85s # git clone "hg::hgrepo" gitrepo && 85s # cd gitrepo && 85s # git checkout --quiet -b feature-b && 85s # echo feature-b > content && 85s # git commit -a -m feature-b && 85s # git push --quiet origin feature-b 85s # ) && 85s # 85s # check_bookmark hgrepo feature-b feature-b 85s # 85s 85s expecting success: 85s test_when_finished "rm -rf hgrepo gitrepo" && 85s 85s ( 85s hg init hgrepo && 85s cd hgrepo && 85s 85s touch content && 85s hg add content && 85s 85s > ../expected && 85s author_test alpha "" "H G Wells " && 85s author_test beta "beta" "beta " && 85s author_test gamma "gamma (comment)" "gamma " && 85s author_test delta "" "Unknown " && 85s author_test epsilon "epsilon" "epsilon " && 85s author_test zeta "zeta " && 85s author_test eta " eta " "eta " && 85s author_test theta "theta < test@example.com >" "theta " && 85s author_test iota "iota >test@example.com>" "iota " && 85s author_test kappa "kappa < test example com>" "kappa " && 85s author_test lambda "lambda@example.com" "Unknown " && 85s author_test mu "mu.mu@example.com" "Unknown " 85s ) && 85s 85s git clone "hg::hgrepo" gitrepo && 85s git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual && 85s 85s test_cmp expected actual 85s 88s Cloning into 'gitrepo'... 88s /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. 88s or locale.getdefaultlocale()[1] 88s WARNING: capability_push is disabled, only do so when really sure 88s WARNING: various enhanced features might fail in subtle ways 89s Traceback (most recent call last): 89s File "/usr/bin/git-remote-hg", line 2013, in 89s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 89s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 89s File "/usr/bin/git-remote-hg", line 1975, in main 89s repo, branchmap = get_repo(url, alias) 89s ~~~~~~~~^^^^^^^^^^^^ 89s File "/usr/bin/git-remote-hg", line 666, in get_repo 89s for branch, branch_heads in compat.iteritems(branchmap): 89s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 89s File "/usr/bin/git-remote-hg", line 63, in iteritems 89s return d.items() 89s ^^^^^^^ 89s AttributeError: 'BranchCacheV2' object has no attribute 'items' 89s fatal: remote helper 'hg' aborted session 89s not ok 7 - authors 89s # 89s # test_when_finished "rm -rf hgrepo gitrepo" && 89s # 89s # ( 89s # hg init hgrepo && 89s # cd hgrepo && 89s # 89s # touch content && 89s # hg add content && 89s # 89s # > ../expected && 89s # author_test alpha "" "H G Wells " && 89s # author_test beta "beta" "beta " && 89s # author_test gamma "gamma (comment)" "gamma " && 89s # author_test delta "" "Unknown " && 89s # author_test epsilon "epsilon" "epsilon " && 89s # author_test zeta "zeta " && 89s # author_test eta " eta " "eta " && 89s # author_test theta "theta < test@example.com >" "theta " && 89s # author_test iota "iota >test@example.com>" "iota " && 89s # author_test kappa "kappa < test example com>" "kappa " && 89s # author_test lambda "lambda@example.com" "Unknown " && 89s # author_test mu "mu.mu@example.com" "Unknown " 89s # ) && 89s # 89s # git clone "hg::hgrepo" gitrepo && 89s # git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual && 89s # 89s # test_cmp expected actual 89s # 89s 89s expecting success: 89s test_when_finished "rm -rf hgrepo gitrepo" && 89s 89s ( 89s hg init hgrepo && 89s cd hgrepo && 89s 89s echo one >> content && 89s hg add content && 89s hg commit -m one && 89s 89s echo two >> content && 89s hg commit -m two 89s ) && 89s 89s git clone "hg::hgrepo" gitrepo && 89s 89s ( 89s cd hgrepo && 89s hg strip 1 && 89s 89s echo three >> content && 89s hg commit -m three && 89s 89s echo four >> content && 89s hg commit -m four 89s ) && 89s 89s ( 89s cd gitrepo && 89s git fetch && 89s git log --format="%s" origin/master > ../actual 89s ) && 89s 89s hg -R hgrepo log --template "{desc}\n" > expected && 89s test_cmp actual expected 89s 90s Cloning into 'gitrepo'... 90s /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. 90s or locale.getdefaultlocale()[1] 90s WARNING: capability_push is disabled, only do so when really sure 90s WARNING: various enhanced features might fail in subtle ways 91s Traceback (most recent call last): 91s File "/usr/bin/git-remote-hg", line 2013, in 91s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 91s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 91s File "/usr/bin/git-remote-hg", line 1975, in main 91s repo, branchmap = get_repo(url, alias) 91s ~~~~~~~~^^^^^^^^^^^^ 91s File "/usr/bin/git-remote-hg", line 666, in get_repo 91s for branch, branch_heads in compat.iteritems(branchmap): 91s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 91s File "/usr/bin/git-remote-hg", line 63, in iteritems 91s return d.items() 91s ^^^^^^^ 91s AttributeError: 'BranchCacheV2' object has no attribute 'items' 91s fatal: remote helper 'hg' aborted session 91s not ok 8 - strip 91s # 91s # test_when_finished "rm -rf hgrepo gitrepo" && 91s # 91s # ( 91s # hg init hgrepo && 91s # cd hgrepo && 91s # 91s # echo one >> content && 91s # hg add content && 91s # hg commit -m one && 91s # 91s # echo two >> content && 91s # hg commit -m two 91s # ) && 91s # 91s # git clone "hg::hgrepo" gitrepo && 91s # 91s # ( 91s # cd hgrepo && 91s # hg strip 1 && 91s # 91s # echo three >> content && 91s # hg commit -m three && 91s # 91s # echo four >> content && 91s # hg commit -m four 91s # ) && 91s # 91s # ( 91s # cd gitrepo && 91s # git fetch && 91s # git log --format="%s" origin/master > ../actual 91s # ) && 91s # 91s # hg -R hgrepo log --template "{desc}\n" > expected && 91s # test_cmp actual expected 91s # 91s 91s expecting success: 91s test_when_finished "rm -rf hgrepo gitrepo" && 91s 91s ( 91s hg init hgrepo && 91s cd hgrepo && 91s 91s echo one >.git && 91s echo ONE >.GIT && 91s mkdir a && echo two > a/.gitmodules && 91s hg add .git .GIT a/.gitmodules && 91s hg commit -m zero 91s ) && 91s 91s git clone "hg::hgrepo" gitrepo && 91s test_cmp gitrepo/.git_ hgrepo/.git && 91s test_cmp gitrepo/.GIT_ hgrepo/.GIT && 91s test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules && 91s 91s ( 91s cd gitrepo && 91s echo three >.git_ && 91s echo THREE >.GIT && 91s echo four >a/.gitmodules_ && 91s git add .git_ .GIT_ a/.gitmodules_ && 91s git commit -m one && 91s git push 91s ) && 91s 91s hg -R hgrepo update && 91s test_cmp gitrepo/.git_ hgrepo/.git && 91s test_cmp gitrepo/.GIT_ hgrepo/.GIT && 91s test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules 91s 91s warning: possible case-folding collision for .git 92s Cloning into 'gitrepo'... 92s /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. 92s or locale.getdefaultlocale()[1] 92s WARNING: capability_push is disabled, only do so when really sure 92s WARNING: various enhanced features might fail in subtle ways 93s Traceback (most recent call last): 93s File "/usr/bin/git-remote-hg", line 2013, in 93s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 93s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 93s File "/usr/bin/git-remote-hg", line 1975, in main 93s repo, branchmap = get_repo(url, alias) 93s ~~~~~~~~^^^^^^^^^^^^ 93s File "/usr/bin/git-remote-hg", line 666, in get_repo 93s for branch, branch_heads in compat.iteritems(branchmap): 93s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 93s File "/usr/bin/git-remote-hg", line 63, in iteritems 93s return d.items() 93s ^^^^^^^ 93s AttributeError: 'BranchCacheV2' object has no attribute 'items' 93s fatal: remote helper 'hg' aborted session 93s not ok 9 - dotfiles 93s # 93s # test_when_finished "rm -rf hgrepo gitrepo" && 93s # 93s # ( 93s # hg init hgrepo && 93s # cd hgrepo && 93s # 93s # echo one >.git && 93s # echo ONE >.GIT && 93s # mkdir a && echo two > a/.gitmodules && 93s # hg add .git .GIT a/.gitmodules && 93s # hg commit -m zero 93s # ) && 93s # 93s # git clone "hg::hgrepo" gitrepo && 93s # test_cmp gitrepo/.git_ hgrepo/.git && 93s # test_cmp gitrepo/.GIT_ hgrepo/.GIT && 93s # test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules && 93s # 93s # ( 93s # cd gitrepo && 93s # echo three >.git_ && 93s # echo THREE >.GIT && 93s # echo four >a/.gitmodules_ && 93s # git add .git_ .GIT_ a/.gitmodules_ && 93s # git commit -m one && 93s # git push 93s # ) && 93s # 93s # hg -R hgrepo update && 93s # test_cmp gitrepo/.git_ hgrepo/.git && 93s # test_cmp gitrepo/.GIT_ hgrepo/.GIT && 93s # test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules 93s # 93s 93s expecting success: 93s test_when_finished "rm -rf hgrepo gitrepo*" && 93s 93s ( 93s hg init hgrepo && 93s cd hgrepo && 93s echo zero > content && 93s hg add content && 93s hg commit -m zero && 93s hg bookmark master && 93s echo one > content && 93s hg commit -m one 93s ) && 93s 93s ( 93s git clone "hg::hgrepo" gitrepo && 93s cd gitrepo && 93s echo two > content && 93s git commit -a -m two && 93s git push 93s ) && 93s 93s check_branch hgrepo default two 93s 94s Cloning into 'gitrepo'... 94s /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. 94s or locale.getdefaultlocale()[1] 94s WARNING: capability_push is disabled, only do so when really sure 94s WARNING: various enhanced features might fail in subtle ways 95s Traceback (most recent call last): 95s File "/usr/bin/git-remote-hg", line 2013, in 95s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 95s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 95s File "/usr/bin/git-remote-hg", line 1975, in main 95s repo, branchmap = get_repo(url, alias) 95s ~~~~~~~~^^^^^^^^^^^^ 95s File "/usr/bin/git-remote-hg", line 666, in get_repo 95s for branch, branch_heads in compat.iteritems(branchmap): 95s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 95s File "/usr/bin/git-remote-hg", line 63, in iteritems 95s return d.items() 95s ^^^^^^^ 95s AttributeError: 'BranchCacheV2' object has no attribute 'items' 95s fatal: remote helper 'hg' aborted session 95s not ok 10 - remote push with master bookmark 95s # 95s # test_when_finished "rm -rf hgrepo gitrepo*" && 95s # 95s # ( 95s # hg init hgrepo && 95s # cd hgrepo && 95s # echo zero > content && 95s # hg add content && 95s # hg commit -m zero && 95s # hg bookmark master && 95s # echo one > content && 95s # hg commit -m one 95s # ) && 95s # 95s # ( 95s # git clone "hg::hgrepo" gitrepo && 95s # cd gitrepo && 95s # echo two > content && 95s # git commit -a -m two && 95s # git push 95s # ) && 95s # 95s # check_branch hgrepo default two 95s # 95s 95s expecting success: 95s test_when_finished "rm -rf hgrepo gitrepo*" && 95s 95s hg init hgrepo && 95s 95s ( 95s git init gitrepo && 95s cd gitrepo && 95s git remote add origin "hg::../hgrepo" && 95s echo one > content && 95s git add content && 95s git commit -a -m one && 95s git push origin master 95s ) && 95s 95s hg -R hgrepo log > actual && 95s cat actual && 95s test_cmp expected actual && 95s 95s check_branch hgrepo default one 95s 95s Initialized empty Git repository in /tmp/autopkgtest.IJeKvO/build.VGb/src/test/trash directory.main/gitrepo/.git/ 95s [master (root-commit) 64caca5] one 95s Author: A U Thor 95s 1 file changed, 1 insertion(+) 95s create mode 100644 content 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' 96s fatal: remote helper 'hg' aborted session 96s not ok 11 - remote push from master branch 96s # 96s # test_when_finished "rm -rf hgrepo gitrepo*" && 96s # 96s # hg init hgrepo && 96s # 96s # ( 96s # git init gitrepo && 96s # cd gitrepo && 96s # git remote add origin "hg::../hgrepo" && 96s # echo one > content && 96s # git add content && 96s # git commit -a -m one && 96s # git push origin master 96s # ) && 96s # 96s # hg -R hgrepo log > actual && 96s # cat actual && 96s # test_cmp expected actual && 96s # 96s # check_branch hgrepo default one 96s # 96s 96s expecting success: 96s test_when_finished "rm -rf gitrepo*" && 96s 96s ( 96s hg init hgrepo && 96s cd hgrepo && 96s echo zero > content && 96s hg add content && 96s hg commit -m zero 96s ) && 96s 96s git clone "hg::hgrepo" gitrepo && 96s check gitrepo HEAD zero 96s 97s Cloning into 'gitrepo'... 97s /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. 97s or locale.getdefaultlocale()[1] 97s WARNING: capability_push is disabled, only do so when really sure 97s WARNING: various enhanced features might fail in subtle ways 98s Traceback (most recent call last): 98s File "/usr/bin/git-remote-hg", line 2013, in 98s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 98s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 98s File "/usr/bin/git-remote-hg", line 1975, in main 98s repo, branchmap = get_repo(url, alias) 98s ~~~~~~~~^^^^^^^^^^^^ 98s File "/usr/bin/git-remote-hg", line 666, in get_repo 98s for branch, branch_heads in compat.iteritems(branchmap): 98s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 98s File "/usr/bin/git-remote-hg", line 63, in iteritems 98s return d.items() 98s ^^^^^^^ 98s AttributeError: 'BranchCacheV2' object has no attribute 'items' 98s fatal: remote helper 'hg' aborted session 98s not ok 12 - remote cloning 98s # 98s # test_when_finished "rm -rf gitrepo*" && 98s # 98s # ( 98s # hg init hgrepo && 98s # cd hgrepo && 98s # echo zero > content && 98s # hg add content && 98s # hg commit -m zero 98s # ) && 98s # 98s # git clone "hg::hgrepo" gitrepo && 98s # check gitrepo HEAD zero 98s # 98s 98s expecting success: 98s test_when_finished "rm -rf gitrepo*" && 98s 98s ( 98s git clone "hg::hgrepo" gitrepo && 98s mv gitrepo gitrepo2 && 98s cd gitrepo2 && 98s git fetch 98s ) 98s 98s 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 13 - moving remote clone 99s # 99s # test_when_finished "rm -rf gitrepo*" && 99s # 99s # ( 99s # git clone "hg::hgrepo" gitrepo && 99s # mv gitrepo gitrepo2 && 99s # cd gitrepo2 && 99s # git fetch 99s # ) 99s # 99s 99s expecting success: 99s test_when_finished "rm -rf gitrepo*" && 99s 99s ( 99s cd hgrepo && 99s hg bookmark devel 99s ) && 99s 99s ( 99s git clone "hg::hgrepo" gitrepo && 99s cd gitrepo && 99s git checkout --quiet devel && 99s echo devel > content && 99s git commit -a -m devel && 99s git push --quiet 99s ) && 99s 99s check_bookmark hgrepo devel devel 99s 99s Cloning into 'gitrepo'... 99s /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. 99s or locale.getdefaultlocale()[1] 99s WARNING: capability_push is disabled, only do so when really sure 99s WARNING: various enhanced features might fail in subtle ways 100s Traceback (most recent call last): 100s File "/usr/bin/git-remote-hg", line 2013, in 100s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 100s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 100s File "/usr/bin/git-remote-hg", line 1975, in main 100s repo, branchmap = get_repo(url, alias) 100s ~~~~~~~~^^^^^^^^^^^^ 100s File "/usr/bin/git-remote-hg", line 666, in get_repo 100s for branch, branch_heads in compat.iteritems(branchmap): 100s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 100s File "/usr/bin/git-remote-hg", line 63, in iteritems 100s return d.items() 100s ^^^^^^^ 100s AttributeError: 'BranchCacheV2' object has no attribute 'items' 100s fatal: remote helper 'hg' aborted session 100s not ok 14 - remote update bookmark 100s # 100s # test_when_finished "rm -rf gitrepo*" && 100s # 100s # ( 100s # cd hgrepo && 100s # hg bookmark devel 100s # ) && 100s # 100s # ( 100s # git clone "hg::hgrepo" gitrepo && 100s # cd gitrepo && 100s # git checkout --quiet devel && 100s # echo devel > content && 100s # git commit -a -m devel && 100s # git push --quiet 100s # ) && 100s # 100s # check_bookmark hgrepo devel devel 100s # 100s 100s expecting success: 100s test_when_finished "rm -rf gitrepo*" && 100s 100s ( 100s git clone "hg::hgrepo" gitrepo && 100s cd gitrepo && 100s git checkout --quiet -b feature-b && 100s echo feature-b > content && 100s git commit -a -m feature-b && 100s git push --quiet origin feature-b 100s ) && 100s 100s check_bookmark hgrepo feature-b feature-b 100s 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 15 - remote new bookmark 101s # 101s # test_when_finished "rm -rf gitrepo*" && 101s # 101s # ( 101s # git clone "hg::hgrepo" gitrepo && 101s # cd gitrepo && 101s # git checkout --quiet -b feature-b && 101s # echo feature-b > content && 101s # git commit -a -m feature-b && 101s # git push --quiet origin feature-b 101s # ) && 101s # 101s # check_bookmark hgrepo feature-b feature-b 101s # 101s 101s expecting success: 101s test_when_finished "rm -rf gitrepo*" && 101s 101s git clone "hg::hgrepo" gitrepo && 101s 101s ( 101s cd hgrepo && 101s hg checkout default && 101s echo bump > content && 101s hg commit -m bump 101s ) && 101s 101s ( 101s cd gitrepo && 101s echo diverge > content && 101s git commit -a -m diverged && 101s check_push 1 <<-\EOF 101s master:non-fast-forward 101s EOF 101s ) && 101s 101s check_branch hgrepo default bump 101s 101s Cloning into 'gitrepo'... 101s /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. 101s or locale.getdefaultlocale()[1] 101s WARNING: capability_push is disabled, only do so when really sure 101s WARNING: various enhanced features might fail in subtle ways 102s Traceback (most recent call last): 102s File "/usr/bin/git-remote-hg", line 2013, in 102s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 102s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 102s File "/usr/bin/git-remote-hg", line 1975, in main 102s repo, branchmap = get_repo(url, alias) 102s ~~~~~~~~^^^^^^^^^^^^ 102s File "/usr/bin/git-remote-hg", line 666, in get_repo 102s for branch, branch_heads in compat.iteritems(branchmap): 102s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 102s File "/usr/bin/git-remote-hg", line 63, in iteritems 102s return d.items() 102s ^^^^^^^ 102s AttributeError: 'BranchCacheV2' object has no attribute 'items' 102s fatal: remote helper 'hg' aborted session 102s not ok 16 - remote push diverged 102s # 102s # test_when_finished "rm -rf gitrepo*" && 102s # 102s # git clone "hg::hgrepo" gitrepo && 102s # 102s # ( 102s # cd hgrepo && 102s # hg checkout default && 102s # echo bump > content && 102s # hg commit -m bump 102s # ) && 102s # 102s # ( 102s # cd gitrepo && 102s # echo diverge > content && 102s # git commit -a -m diverged && 102s # check_push 1 <<-\EOF 102s # master:non-fast-forward 102s # EOF 102s # ) && 102s # 102s # check_branch hgrepo default bump 102s # 102s 102s expecting success: 102s test_when_finished "rm -rf gitrepo*" && 102s 102s ( 102s cd hgrepo && 102s hg checkout tip^ && 102s hg bookmark diverge 102s ) && 102s 102s git clone "hg::hgrepo" gitrepo && 102s 102s ( 102s cd hgrepo && 102s echo "bump bookmark" > content && 102s hg commit -m "bump bookmark" 102s ) && 102s 102s ( 102s cd gitrepo && 102s git checkout --quiet diverge && 102s echo diverge > content && 102s git commit -a -m diverge && 102s check_push 1 <<-\EOF 102s diverge:non-fast-forward 102s EOF 102s ) && 102s 102s check_bookmark hgrepo diverge "bump bookmark" 102s 102s abort: empty revision set 102s not ok 17 - remote update bookmark diverge 102s # 102s # test_when_finished "rm -rf gitrepo*" && 102s # 102s # ( 102s # cd hgrepo && 102s # hg checkout tip^ && 102s # hg bookmark diverge 102s # ) && 102s # 102s # git clone "hg::hgrepo" gitrepo && 102s # 102s # ( 102s # cd hgrepo && 102s # echo "bump bookmark" > content && 102s # hg commit -m "bump bookmark" 102s # ) && 102s # 102s # ( 102s # cd gitrepo && 102s # git checkout --quiet diverge && 102s # echo diverge > content && 102s # git commit -a -m diverge && 102s # check_push 1 <<-\EOF 102s # diverge:non-fast-forward 102s # EOF 102s # ) && 102s # 102s # check_bookmark hgrepo diverge "bump bookmark" 102s # 102s 102s expecting success: 102s test_when_finished "rm -rf gitrepo*" && 102s 102s ( 102s git clone "hg::hgrepo" gitrepo && 102s cd gitrepo && 102s git checkout --quiet -b feature-c HEAD^ && 102s echo feature-c > content && 102s git commit -a -m feature-c && 102s git push --quiet origin feature-c 102s ) && 102s 102s check_bookmark hgrepo feature-c feature-c 102s 102s 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 18 - remote new bookmark multiple branch head 103s # 103s # test_when_finished "rm -rf gitrepo*" && 103s # 103s # ( 103s # git clone "hg::hgrepo" gitrepo && 103s # cd gitrepo && 103s # git checkout --quiet -b feature-c HEAD^ && 103s # echo feature-c > content && 103s # git commit -a -m feature-c && 103s # git push --quiet origin feature-c 103s # ) && 103s # 103s # check_bookmark hgrepo feature-c feature-c 103s # 103s 103s checking known breakage: 103s test_when_finished "rm -rf gitrepo hgrepo" && 103s 103s ( 103s hg init hgrepo && 103s cd hgrepo && 103s echo zero > content && 103s hg add content && 103s hg commit -m zero 103s ) && 103s 103s git clone "hg::hgrepo" gitrepo && 103s 103s ( 103s cd gitrepo && 103s cp content content-copy && 103s # recent git-fast-export is (too) picky in recognizing copies 103s # although git-log is not as picky; 103s # since https://github.com/git/git/commit/8096e1d385660c159d9d47e69b2be63cf22e4f31 103s # a copy is only marked if source filed not modified as well 103s # (though destination file can be modified) 103s echo one >> content-copy && 103s git add content content-copy && 103s git commit -m copy && 103s git mv content-copy content-moved 103s git commit -m moved && 103s git push origin master 103s ) && 103s 103s ( 103s hg -R hgrepo update && 103s test_cmp gitrepo/content hgrepo/content 103s test_cmp gitrepo/content-moved hgrepo/content-moved 103s cd hgrepo && 103s test `hg log -f content-moved | grep -c changeset` -eq 3 103s ) 103s 104s Cloning into 'gitrepo'... 104s /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. 104s or locale.getdefaultlocale()[1] 104s WARNING: capability_push is disabled, only do so when really sure 104s 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 19 - push commits with copy and rename # TODO known breakage 105s 105s expecting success: 105s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 105s 105s LC_ALL=C.UTF-8 105s export LC_ALL 105s 105s ( 105s hg init hgrepo && 105s cd hgrepo && 105s 105s echo test >> "æ rø" && 105s hg add "æ rø" && 105s echo test >> "ø~?" && 105s hg add "ø~?" && 105s hg commit -m add-utf-8 && 105s echo test >> "æ rø" && 105s hg commit -m test-utf-8 && 105s hg rm "ø~?" && 105s hg mv "æ rø" "ø~?" && 105s hg commit -m hg-mv-utf-8 105s ) && 105s 105s ( 105s git clone "hg::hgrepo" gitrepo && 105s cd gitrepo && 105s git -c core.quotepath=false ls-files > ../actual 105s ) && 105s echo "ø~?" > expected && 105s test_cmp expected actual 105s 105s warning: filename contains '?', which is reserved on Windows: 'ø~?' 106s warning: filename contains '?', which is reserved on Windows: 'ø~?' 107s Cloning into 'gitrepo'... 107s WARNING: capability_push is disabled, only do so when really sure 107s WARNING: various enhanced features might fail in subtle ways 108s Traceback (most recent call last): 108s File "/usr/bin/git-remote-hg", line 2013, in 108s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 108s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 108s File "/usr/bin/git-remote-hg", line 1975, in main 108s repo, branchmap = get_repo(url, alias) 108s ~~~~~~~~^^^^^^^^^^^^ 108s File "/usr/bin/git-remote-hg", line 666, in get_repo 108s for branch, branch_heads in compat.iteritems(branchmap): 108s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 108s File "/usr/bin/git-remote-hg", line 63, in iteritems 108s return d.items() 108s ^^^^^^^ 108s AttributeError: 'BranchCacheV2' object has no attribute 'items' 108s fatal: remote helper 'hg' aborted session 108s not ok 20 - fetch special filenames 108s # 108s # test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 108s # 108s # LC_ALL=C.UTF-8 108s # export LC_ALL 108s # 108s # ( 108s # hg init hgrepo && 108s # cd hgrepo && 108s # 108s # echo test >> "æ rø" && 108s # hg add "æ rø" && 108s # echo test >> "ø~?" && 108s # hg add "ø~?" && 108s # hg commit -m add-utf-8 && 108s # echo test >> "æ rø" && 108s # hg commit -m test-utf-8 && 108s # hg rm "ø~?" && 108s # hg mv "æ rø" "ø~?" && 108s # hg commit -m hg-mv-utf-8 108s # ) && 108s # 108s # ( 108s # git clone "hg::hgrepo" gitrepo && 108s # cd gitrepo && 108s # git -c core.quotepath=false ls-files > ../actual 108s # ) && 108s # echo "ø~?" > expected && 108s # test_cmp expected actual 108s # 108s 108s expecting success: 108s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 108s 108s mkdir -p tmp && cd tmp && 108s 108s LC_ALL=C.UTF-8 108s export LC_ALL 108s 108s ( 108s hg init hgrepo && 108s cd hgrepo && 108s 108s echo one >> content && 108s hg add content && 108s hg commit -m one 108s ) && 108s 108s ( 108s git clone "hg::hgrepo" gitrepo && 108s cd gitrepo && 108s 108s echo test >> "æ rø" && 108s git add "æ rø" && 108s git commit -m utf-8 && 108s 108s git push 108s ) && 108s 108s (cd hgrepo && 108s hg update && 108s hg manifest > ../actual 108s ) && 108s 108s printf "content\næ rø\n" > expected && 108s test_cmp expected actual 108s 108s Cloning into 'gitrepo'... 109s WARNING: capability_push is disabled, only do so when really sure 109s WARNING: various enhanced features might fail in subtle ways 109s Traceback (most recent call last): 109s File "/usr/bin/git-remote-hg", line 2013, in 109s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 109s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 109s File "/usr/bin/git-remote-hg", line 1975, in main 109s repo, branchmap = get_repo(url, alias) 109s ~~~~~~~~^^^^^^^^^^^^ 109s File "/usr/bin/git-remote-hg", line 666, in get_repo 109s for branch, branch_heads in compat.iteritems(branchmap): 109s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 109s File "/usr/bin/git-remote-hg", line 63, in iteritems 109s return d.items() 109s ^^^^^^^ 109s AttributeError: 'BranchCacheV2' object has no attribute 'items' 109s fatal: remote helper 'hg' aborted session 109s not ok 21 - push special filenames 109s # 109s # test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 109s # 109s # mkdir -p tmp && cd tmp && 109s # 109s # LC_ALL=C.UTF-8 109s # export LC_ALL 109s # 109s # ( 109s # hg init hgrepo && 109s # cd hgrepo && 109s # 109s # echo one >> content && 109s # hg add content && 109s # hg commit -m one 109s # ) && 109s # 109s # ( 109s # git clone "hg::hgrepo" gitrepo && 109s # cd gitrepo && 109s # 109s # echo test >> "æ rø" && 109s # git add "æ rø" && 109s # git commit -m utf-8 && 109s # 109s # git push 109s # ) && 109s # 109s # (cd hgrepo && 109s # hg update && 109s # hg manifest > ../actual 109s # ) && 109s # 109s # printf "content\næ rø\n" > expected && 109s # test_cmp expected actual 109s # 109s 109s expecting success: 109s test_when_finished "rm -rf hgrepo gitrepo*" && 109s 109s setup_big_push 109s 109s ( 109s cd gitrepo && 109s 109s if test "$CAPABILITY_PUSH" = "t" 109s then 109s # cap push handles refs one by one 109s # so it will still correctly report several ok 109s check_push 1 --all <<-\EOF 109s master 109s good_bmark 109s branches/good_branch 109s new_bmark:new 109s branches/new_branch:new 109s bad_bmark1:non-fast-forward 109s bad_bmark2:non-fast-forward 109s branches/bad_branch:non-fast-forward 109s EOF 109s else 109s check_push 1 --all <<-\EOF 109s bad_bmark1:non-fast-forward 109s bad_bmark2:non-fast-forward 109s branches/bad_branch:non-fast-forward 109s EOF 109s fi 109s ) && 109s 109s if test "$CAPABILITY_PUSH" = "t" 109s then 109s # cap push handles refs one by one 109s # so it will push all requested it can 109s check_branch hgrepo default six && 109s check_branch hgrepo good_branch eight && 109s check_branch hgrepo bad_branch "bad branch" && 109s check_branch hgrepo new_branch ten && 109s check_bookmark hgrepo good_bmark three && 109s check_bookmark hgrepo bad_bmark1 one && 109s check_bookmark hgrepo bad_bmark2 one && 109s check_bookmark hgrepo new_bmark six && 109s check gitrepo origin/master two 109s else 109s check_branch hgrepo default one && 109s check_branch hgrepo good_branch "good branch" && 109s check_branch hgrepo bad_branch "bad branch" && 109s check_branch hgrepo new_branch && 109s check_bookmark hgrepo good_bmark one && 109s check_bookmark hgrepo bad_bmark1 one && 109s check_bookmark hgrepo bad_bmark2 one && 109s check_bookmark hgrepo new_bmark && 109s check gitrepo origin/master one 109s fi 109s 112s Cloning into 'gitrepo'... 112s /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. 112s or locale.getdefaultlocale()[1] 112s WARNING: capability_push is disabled, only do so when really sure 112s WARNING: various enhanced features might fail in subtle ways 113s Traceback (most recent call last): 113s File "/usr/bin/git-remote-hg", line 2013, in 113s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 113s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 113s File "/usr/bin/git-remote-hg", line 1975, in main 113s repo, branchmap = get_repo(url, alias) 113s ~~~~~~~~^^^^^^^^^^^^ 113s File "/usr/bin/git-remote-hg", line 666, in get_repo 113s for branch, branch_heads in compat.iteritems(branchmap): 113s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 113s File "/usr/bin/git-remote-hg", line 63, in iteritems 113s return d.items() 113s ^^^^^^^ 113s AttributeError: 'BranchCacheV2' object has no attribute 'items' 113s fatal: remote helper 'hg' aborted session 113s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 113s not ok 22 - remote big push 113s # 113s # test_when_finished "rm -rf hgrepo gitrepo*" && 113s # 113s # setup_big_push 113s # 113s # ( 113s # cd gitrepo && 113s # 113s # if test "$CAPABILITY_PUSH" = "t" 113s # then 113s # # cap push handles refs one by one 113s # # so it will still correctly report several ok 113s # check_push 1 --all <<-\EOF 113s # master 113s # good_bmark 113s # branches/good_branch 113s # new_bmark:new 113s # branches/new_branch:new 113s # bad_bmark1:non-fast-forward 113s # bad_bmark2:non-fast-forward 113s # branches/bad_branch:non-fast-forward 113s # EOF 113s # else 113s # check_push 1 --all <<-\EOF 113s # bad_bmark1:non-fast-forward 113s # bad_bmark2:non-fast-forward 113s # branches/bad_branch:non-fast-forward 113s # EOF 113s # fi 113s # ) && 113s # 113s # if test "$CAPABILITY_PUSH" = "t" 113s # then 113s # # cap push handles refs one by one 113s # # so it will push all requested it can 113s # check_branch hgrepo default six && 113s # check_branch hgrepo good_branch eight && 113s # check_branch hgrepo bad_branch "bad branch" && 113s # check_branch hgrepo new_branch ten && 113s # check_bookmark hgrepo good_bmark three && 113s # check_bookmark hgrepo bad_bmark1 one && 113s # check_bookmark hgrepo bad_bmark2 one && 113s # check_bookmark hgrepo new_bmark six && 113s # check gitrepo origin/master two 113s # else 113s # check_branch hgrepo default one && 113s # check_branch hgrepo good_branch "good branch" && 113s # check_branch hgrepo bad_branch "bad branch" && 113s # check_branch hgrepo new_branch && 113s # check_bookmark hgrepo good_bmark one && 113s # check_bookmark hgrepo bad_bmark1 one && 113s # check_bookmark hgrepo bad_bmark2 one && 113s # check_bookmark hgrepo new_bmark && 113s # check gitrepo origin/master one 113s # fi 113s # 113s 113s expecting success: 113s test_when_finished "rm -rf hgrepo gitrepo*" && 113s 113s ( 113s hg init hgrepo && 113s cd hgrepo && 113s echo zero > content && 113s hg add content && 113s hg commit -m zero && 113s hg bookmark bad_bmark && 113s hg bookmark good_bmark && 113s hg bookmark -i good_bmark && 113s hg -q branch good_branch && 113s echo "good branch" > content && 113s hg commit -m "good branch" && 113s hg -q branch bad_branch && 113s echo "bad branch" > content && 113s hg commit -m "bad branch" 113s ) && 113s 113s git clone "hg::hgrepo" gitrepo && 113s 113s ( 113s cd hgrepo && 113s hg bookmark -f bad_bmark && 113s echo update_bmark > content && 113s hg commit -m "update bmark" 113s ) && 113s 113s ( 113s cd gitrepo && 113s echo two > content && 113s git commit -q -a -m two && 113s 113s git checkout -q good_bmark && 113s echo three > content && 113s git commit -q -a -m three && 113s 113s git checkout -q bad_bmark && 113s echo four > content && 113s git commit -q -a -m four && 113s 113s git checkout -q branches/bad_branch && 113s echo five > content && 113s git commit -q -a -m five && 113s 113s if test "$CAPABILITY_PUSH" = "t" 113s then 113s check_push 1 --all <<-\EOF 113s master 113s good_bmark 113s bad_bmark:non-fast-forward 113s branches/bad_branch:non-fast-forward 113s EOF 113s else 113s # cap export now only report error cases 113s check_push 1 --all <<-\EOF 113s bad_bmark:non-fast-forward 113s branches/bad_branch:non-fast-forward 113s EOF 113s fi && 113s 113s git fetch && 113s 113s if test "$CAPABILITY_PUSH" = "t" 113s then 113s # cap push handles refs one by one 113s # so it will already have pushed some above previously 113s # (and master is a fake one that jumps around a bit) 113s check_push 1 --all <<-\EOF 113s bad_bmark:non-fast-forward 113s branches/bad_branch:non-fast-forward 113s EOF 113s else 113s # cap export now only report error cases 113s check_push 1 --all <<-\EOF 113s bad_bmark:non-fast-forward 113s branches/bad_branch:non-fast-forward 113s EOF 113s fi 113s ) 113s 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 not ok 23 - remote big push non fast forward 117s # 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 bad_bmark && 117s # hg bookmark good_bmark && 117s # hg bookmark -i good_bmark && 117s # hg -q branch good_branch && 117s # echo "good branch" > content && 117s # hg commit -m "good branch" && 117s # hg -q branch bad_branch && 117s # echo "bad branch" > content && 117s # hg commit -m "bad branch" 117s # ) && 117s # 117s # git clone "hg::hgrepo" gitrepo && 117s # 117s # ( 117s # cd hgrepo && 117s # hg bookmark -f bad_bmark && 117s # echo update_bmark > content && 117s # hg commit -m "update bmark" 117s # ) && 117s # 117s # ( 117s # cd gitrepo && 117s # echo two > content && 117s # git commit -q -a -m two && 117s # 117s # git checkout -q good_bmark && 117s # echo three > content && 117s # git commit -q -a -m three && 117s # 117s # git checkout -q bad_bmark && 117s # echo four > content && 117s # git commit -q -a -m four && 117s # 117s # git checkout -q branches/bad_branch && 117s # echo five > content && 117s # git commit -q -a -m five && 117s # 117s # if test "$CAPABILITY_PUSH" = "t" 117s # then 117s # check_push 1 --all <<-\EOF 117s # master 117s # good_bmark 117s # bad_bmark:non-fast-forward 117s # branches/bad_branch:non-fast-forward 117s # EOF 117s # else 117s # # cap export now only report error cases 117s # check_push 1 --all <<-\EOF 117s # bad_bmark:non-fast-forward 117s # branches/bad_branch:non-fast-forward 117s # EOF 117s # fi && 117s # 117s # git fetch && 117s # 117s # if test "$CAPABILITY_PUSH" = "t" 117s # then 117s # # cap push handles refs one by one 117s # # so it will already have pushed some above previously 117s # # (and master is a fake one that jumps around a bit) 117s # check_push 1 --all <<-\EOF 117s # bad_bmark:non-fast-forward 117s # branches/bad_branch:non-fast-forward 117s # EOF 117s # else 117s # # cap export now only report error cases 117s # check_push 1 --all <<-\EOF 117s # bad_bmark:non-fast-forward 117s # branches/bad_branch:non-fast-forward 117s # EOF 117s # fi 117s # ) 117s # 117s 117s expecting success: 117s test_when_finished "rm -rf hgrepo gitrepo*" && 117s 117s setup_big_push 117s 117s ( 117s cd gitrepo && 117s 117s if test "$CAPABILITY_PUSH" = "t" 117s then 117s check_push 0 --force --all <<-\EOF 117s master:forced-update 117s good_bmark:forced-update 117s branches/good_branch:forced-update 117s new_bmark:new 117s branches/new_branch:new 117s bad_bmark1:forced-update 117s bad_bmark2:forced-update 117s branches/bad_branch:forced-update 117s EOF 117s else 117s check_push 0 --force --all <<-\EOF 117s master 117s good_bmark 117s branches/good_branch 117s new_bmark:new 117s branches/new_branch:new 117s bad_bmark1:forced-update 117s bad_bmark2:forced-update 117s branches/bad_branch:forced-update 117s EOF 117s fi 117s ) && 117s 117s check gitrepo origin/master two && 117s check_branch hgrepo good_branch eight && 117s check_branch hgrepo bad_branch nine && 117s check_branch hgrepo new_branch ten && 117s check_bookmark hgrepo good_bmark three && 117s check_bookmark hgrepo bad_bmark1 four && 117s check_bookmark hgrepo bad_bmark2 five && 117s check_bookmark hgrepo new_bmark six 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 119s Cloning into 'gitrepo'... 119s /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. 119s or locale.getdefaultlocale()[1] 119s WARNING: capability_push is disabled, only do so when really sure 119s 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 /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 120s not ok 24 - remote big push force 120s # 120s # test_when_finished "rm -rf hgrepo gitrepo*" && 120s # 120s # setup_big_push 120s # 120s # ( 120s # cd gitrepo && 120s # 120s # if test "$CAPABILITY_PUSH" = "t" 120s # then 120s # check_push 0 --force --all <<-\EOF 120s # master:forced-update 120s # good_bmark:forced-update 120s # branches/good_branch:forced-update 120s # new_bmark:new 120s # branches/new_branch:new 120s # bad_bmark1:forced-update 120s # bad_bmark2:forced-update 120s # branches/bad_branch:forced-update 120s # EOF 120s # else 120s # check_push 0 --force --all <<-\EOF 120s # master 120s # good_bmark 120s # branches/good_branch 120s # new_bmark:new 120s # branches/new_branch:new 120s # bad_bmark1:forced-update 120s # bad_bmark2:forced-update 120s # branches/bad_branch:forced-update 120s # EOF 120s # fi 120s # ) && 120s # 120s # check gitrepo origin/master two && 120s # check_branch hgrepo good_branch eight && 120s # check_branch hgrepo bad_branch nine && 120s # check_branch hgrepo new_branch ten && 120s # check_bookmark hgrepo good_bmark three && 120s # check_bookmark hgrepo bad_bmark1 four && 120s # check_bookmark hgrepo bad_bmark2 five && 120s # check_bookmark hgrepo new_bmark six 120s # 120s 120s expecting success: 120s test_when_finished "rm -rf hgrepo gitrepo*" && 120s 120s setup_big_push 120s 120s ( 120s cd gitrepo && 120s 120s if test "$CAPABILITY_PUSH" = "t" 120s then 120s # cap push handles refs one by one 120s # so it will still correctly report several ok 120s check_push 1 --dry-run --all <<-\EOF 120s master 120s good_bmark 120s branches/good_branch 120s new_bmark:new 120s branches/new_branch:new 120s bad_bmark1:non-fast-forward 120s bad_bmark2:non-fast-forward 120s branches/bad_branch:non-fast-forward 120s EOF 120s else 120s check_push 1 --dry-run --all <<-\EOF 120s bad_bmark1:non-fast-forward 120s bad_bmark2:non-fast-forward 120s branches/bad_branch:non-fast-forward 120s EOF 120s fi && 120s 120s check_push 0 --dry-run master good_bmark new_bmark branches/good_branch branches/new_branch <<-\EOF 120s master 120s good_bmark 120s branches/good_branch 120s new_bmark:new 120s branches/new_branch:new 120s EOF 120s ) && 120s 120s check gitrepo origin/master one && 120s check_branch hgrepo default one && 120s check_branch hgrepo good_branch "good branch" && 120s check_branch hgrepo bad_branch "bad branch" && 120s check_branch hgrepo new_branch && 120s check_bookmark hgrepo good_bmark one && 120s check_bookmark hgrepo bad_bmark1 one && 120s check_bookmark hgrepo bad_bmark2 one && 120s check_bookmark hgrepo new_bmark 120s 122s 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 123s Traceback (most recent call last): 123s File "/usr/bin/git-remote-hg", line 2013, in 123s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 123s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 123s File "/usr/bin/git-remote-hg", line 1975, in main 123s repo, branchmap = get_repo(url, alias) 123s ~~~~~~~~^^^^^^^^^^^^ 123s File "/usr/bin/git-remote-hg", line 666, in get_repo 123s for branch, branch_heads in compat.iteritems(branchmap): 123s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 123s File "/usr/bin/git-remote-hg", line 63, in iteritems 123s return d.items() 123s ^^^^^^^ 123s AttributeError: 'BranchCacheV2' object has no attribute 'items' 123s fatal: remote helper 'hg' aborted session 123s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 123s not ok 25 - remote big push dry-run 123s # 123s # test_when_finished "rm -rf hgrepo gitrepo*" && 123s # 123s # setup_big_push 123s # 123s # ( 123s # cd gitrepo && 123s # 123s # if test "$CAPABILITY_PUSH" = "t" 123s # then 123s # # cap push handles refs one by one 123s # # so it will still correctly report several ok 123s # check_push 1 --dry-run --all <<-\EOF 123s # master 123s # good_bmark 123s # branches/good_branch 123s # new_bmark:new 123s # branches/new_branch:new 123s # bad_bmark1:non-fast-forward 123s # bad_bmark2:non-fast-forward 123s # branches/bad_branch:non-fast-forward 123s # EOF 123s # else 123s # check_push 1 --dry-run --all <<-\EOF 123s # bad_bmark1:non-fast-forward 123s # bad_bmark2:non-fast-forward 123s # branches/bad_branch:non-fast-forward 123s # EOF 123s # fi && 123s # 123s # check_push 0 --dry-run master good_bmark new_bmark branches/good_branch branches/new_branch <<-\EOF 123s # master 123s # good_bmark 123s # branches/good_branch 123s # new_bmark:new 123s # branches/new_branch:new 123s # EOF 123s # ) && 123s # 123s # check gitrepo origin/master one && 123s # check_branch hgrepo default one && 123s # check_branch hgrepo good_branch "good branch" && 123s # check_branch hgrepo bad_branch "bad branch" && 123s # check_branch hgrepo new_branch && 123s # check_bookmark hgrepo good_bmark one && 123s # check_bookmark hgrepo bad_bmark1 one && 123s # check_bookmark hgrepo bad_bmark2 one && 123s # check_bookmark hgrepo new_bmark 123s # 123s 123s expecting success: 123s test_when_finished "rm -rf hgrepo gitrepo*" && 123s 123s setup_big_push 123s 123s ( 123s cd gitrepo && 123s 123s if test "$CAPABILITY_PUSH" = "t" 123s then 123s check_push 0 --force --dry-run --all <<-\EOF 123s master:forced-update 123s good_bmark:forced-update 123s branches/good_branch:forced-update 123s new_bmark:new 123s branches/new_branch:new 123s bad_bmark1:forced-update 123s bad_bmark2:forced-update 123s branches/bad_branch:forced-update 123s EOF 123s else 123s check_push 0 --force --dry-run --all <<-\EOF 123s master 123s good_bmark 123s branches/good_branch 123s new_bmark:new 123s branches/new_branch:new 123s bad_bmark1:forced-update 123s bad_bmark2:forced-update 123s branches/bad_branch:forced-update 123s EOF 123s fi 123s ) && 123s 123s check gitrepo origin/master one && 123s check_branch hgrepo default one && 123s check_branch hgrepo good_branch "good branch" && 123s check_branch hgrepo bad_branch "bad branch" && 123s check_branch hgrepo new_branch && 123s check_bookmark hgrepo good_bmark one && 123s check_bookmark hgrepo bad_bmark1 one && 123s check_bookmark hgrepo bad_bmark2 one && 123s check_bookmark hgrepo new_bmark 123s 126s Cloning into 'gitrepo'... 126s /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. 126s or locale.getdefaultlocale()[1] 126s WARNING: capability_push is disabled, only do so when really sure 126s 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 /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 127s not ok 26 - remote big push force dry-run 127s # 127s # test_when_finished "rm -rf hgrepo gitrepo*" && 127s # 127s # setup_big_push 127s # 127s # ( 127s # cd gitrepo && 127s # 127s # if test "$CAPABILITY_PUSH" = "t" 127s # then 127s # check_push 0 --force --dry-run --all <<-\EOF 127s # master:forced-update 127s # good_bmark:forced-update 127s # branches/good_branch:forced-update 127s # new_bmark:new 127s # branches/new_branch:new 127s # bad_bmark1:forced-update 127s # bad_bmark2:forced-update 127s # branches/bad_branch:forced-update 127s # EOF 127s # else 127s # check_push 0 --force --dry-run --all <<-\EOF 127s # master 127s # good_bmark 127s # branches/good_branch 127s # new_bmark:new 127s # branches/new_branch:new 127s # bad_bmark1:forced-update 127s # bad_bmark2:forced-update 127s # branches/bad_branch:forced-update 127s # EOF 127s # fi 127s # ) && 127s # 127s # check gitrepo origin/master one && 127s # check_branch hgrepo default one && 127s # check_branch hgrepo good_branch "good branch" && 127s # check_branch hgrepo bad_branch "bad branch" && 127s # check_branch hgrepo new_branch && 127s # check_bookmark hgrepo good_bmark one && 127s # check_bookmark hgrepo bad_bmark1 one && 127s # check_bookmark hgrepo bad_bmark2 one && 127s # check_bookmark hgrepo new_bmark 127s # 127s 127s expecting success: 127s test_when_finished "rm -rf hgrepo gitrepo*" && 127s 127s ( 127s hg init hgrepo && 127s cd hgrepo && 127s echo zero > content && 127s hg add content && 127s hg commit -m zero && 127s echo one > content && 127s hg commit -m one 127s ) && 127s 127s ( 127s git clone "hg::hgrepo" gitrepo && 127s cd gitrepo && 127s git reset --hard HEAD^ && 127s echo two > content && 127s git commit -a -m two && 127s test_expect_code 1 git push && 127s test_expect_code 1 git push 127s ) 127s 128s 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 27 - remote double failed push 129s # 129s # test_when_finished "rm -rf hgrepo gitrepo*" && 129s # 129s # ( 129s # hg init hgrepo && 129s # cd hgrepo && 129s # echo zero > content && 129s # hg add content && 129s # hg commit -m zero && 129s # echo one > content && 129s # hg commit -m one 129s # ) && 129s # 129s # ( 129s # git clone "hg::hgrepo" gitrepo && 129s # cd gitrepo && 129s # git reset --hard HEAD^ && 129s # echo two > content && 129s # git commit -a -m two && 129s # test_expect_code 1 git push && 129s # test_expect_code 1 git push 129s # ) 129s # 129s 129s expecting success: 129s test_when_finished "rm -rf gitrepo hgrepo" && 129s 129s ( 129s hg init hgrepo && 129s cd hgrepo && 129s echo zero > content && 129s hg add content && 129s hg commit -m zero && 129s echo feature-a > content && 129s hg commit -m feature-a 129s hg bookmark feature-a 129s ) && 129s 129s git clone "hg::hgrepo" gitrepo && 129s check gitrepo origin/feature-a feature-a && 129s 129s ( 129s cd hgrepo && 129s hg bookmark -d feature-a 129s ) && 129s 129s ( 129s cd gitrepo && 129s git fetch --prune origin 129s git branch -a > out && 129s ! grep feature-a out 129s ) 129s 130s Cloning into 'gitrepo'... 130s /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. 130s or locale.getdefaultlocale()[1] 130s WARNING: capability_push is disabled, only do so when really sure 130s 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 28 - fetch prune 131s # 131s # test_when_finished "rm -rf gitrepo hgrepo" && 131s # 131s # ( 131s # hg init hgrepo && 131s # cd hgrepo && 131s # echo zero > content && 131s # hg add content && 131s # hg commit -m zero && 131s # echo feature-a > content && 131s # hg commit -m feature-a 131s # hg bookmark feature-a 131s # ) && 131s # 131s # git clone "hg::hgrepo" gitrepo && 131s # check gitrepo origin/feature-a feature-a && 131s # 131s # ( 131s # cd hgrepo && 131s # hg bookmark -d feature-a 131s # ) && 131s # 131s # ( 131s # cd gitrepo && 131s # git fetch --prune origin 131s # git branch -a > out && 131s # ! grep feature-a out 131s # ) 131s # 131s 131s expecting success: 131s test_when_finished "rm -rf gitrepo hgrepo" && 131s 131s ( 131s hg init hgrepo && 131s cd hgrepo && 131s echo zero > content && 131s hg add content && 131s hg commit -m zero && 131s hg up -r null && 131s echo another > ocontent && 131s hg add ocontent && 131s hg commit -m one 131s ) && 131s 131s # -r 1 acts as master 131s ( 131s git init --bare gitrepo && cd gitrepo && 131s git remote add origin hg::../hgrepo && 131s git fetch origin refs/heads/*:refs/heads/* 131s ) && 131s 131s ( 131s cd hgrepo && 131s hg up 0 && 131s echo two > content && 131s hg commit -m two 131s ) && 131s 131s # now master already exists 131s # -r 2 becomes master head which has rev 0 as ancestor 131s # so when importing (parentless) rev 0, a reset is needed 131s # (to ensure rev 0 is not given a parent commit) 131s ( 131s cd gitrepo && 131s git fetch origin && 131s git log --format="%s" origin/master > ../actual 131s ) && 131s 131s hg -R hgrepo log -r . -f --template "{desc}\n" > expected && 131s test_cmp actual expected 131s 132s 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 132s created new head 132s Initialized empty Git repository in /tmp/autopkgtest.IJeKvO/build.VGb/src/test/trash directory.main/tmp/gitrepo/ 132s /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. 132s 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 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 29 - fetch multiple independent histories 133s # 133s # test_when_finished "rm -rf gitrepo hgrepo" && 133s # 133s # ( 133s # hg init hgrepo && 133s # cd hgrepo && 133s # echo zero > content && 133s # hg add content && 133s # hg commit -m zero && 133s # hg up -r null && 133s # echo another > ocontent && 133s # hg add ocontent && 133s # hg commit -m one 133s # ) && 133s # 133s # # -r 1 acts as master 133s # ( 133s # git init --bare gitrepo && cd gitrepo && 133s # git remote add origin hg::../hgrepo && 133s # git fetch origin refs/heads/*:refs/heads/* 133s # ) && 133s # 133s # ( 133s # cd hgrepo && 133s # hg up 0 && 133s # echo two > content && 133s # hg commit -m two 133s # ) && 133s # 133s # # now master already exists 133s # # -r 2 becomes master head which has rev 0 as ancestor 133s # # so when importing (parentless) rev 0, a reset is needed 133s # # (to ensure rev 0 is not given a parent commit) 133s # ( 133s # cd gitrepo && 133s # git fetch origin && 133s # git log --format="%s" origin/master > ../actual 133s # ) && 133s # 133s # hg -R hgrepo log -r . -f --template "{desc}\n" > expected && 133s # test_cmp actual expected 133s # 133s 133s expecting success: 133s test_when_finished "rm -rf gitrepo* hgrepo*" && 133s 133s ( 133s hg init hgrepo && 133s cd hgrepo && 133s echo a > a && 133s hg add a && 133s hg commit -m a && 133s hg bookmark -r null bookmark 133s ) && 133s 133s ( 133s git clone "hg::hgrepo" gitrepo && 133s check gitrepo HEAD a && 133s cd gitrepo && 133s git checkout --quiet -b bookmark && 133s git remote -v && 133s echo b > b && 133s git add b && 133s git commit -m b && 133s git push origin bookmark 133s ) 133s 134s Cloning into 'gitrepo'... 134s /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. 134s or locale.getdefaultlocale()[1] 134s WARNING: capability_push is disabled, only do so when really sure 134s 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 30 - clone remote with null bookmark, then push 135s # 135s # test_when_finished "rm -rf gitrepo* hgrepo*" && 135s # 135s # ( 135s # hg init hgrepo && 135s # cd hgrepo && 135s # echo a > a && 135s # hg add a && 135s # hg commit -m a && 135s # hg bookmark -r null bookmark 135s # ) && 135s # 135s # ( 135s # git clone "hg::hgrepo" gitrepo && 135s # check gitrepo HEAD a && 135s # cd gitrepo && 135s # git checkout --quiet -b bookmark && 135s # git remote -v && 135s # echo b > b && 135s # git add b && 135s # git commit -m b && 135s # git push origin bookmark 135s # ) 135s # 135s 135s expecting success: 135s test_when_finished "rm -rf hgrepo gitrepo" && 135s 135s ( 135s hg init hgrepo && 135s cd hgrepo && 135s echo one > content && 135s hg add content && 135s hg commit -m one && 135s echo two > content && 135s hg commit -m two 135s ) && 135s 135s git clone "hg::hgrepo" gitrepo && 135s hg -R hgrepo log --template "{node}\n\n" > expected && 135s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 135s test_cmp expected actual 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' 137s fatal: remote helper 'hg' aborted session 137s not ok 31 - notes 137s # 137s # test_when_finished "rm -rf hgrepo gitrepo" && 137s # 137s # ( 137s # hg init hgrepo && 137s # cd hgrepo && 137s # echo one > content && 137s # hg add content && 137s # hg commit -m one && 137s # echo two > content && 137s # hg commit -m two 137s # ) && 137s # 137s # git clone "hg::hgrepo" gitrepo && 137s # hg -R hgrepo log --template "{node}\n\n" > expected && 137s # git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 137s # test_cmp expected actual 137s # 137s 137s checking known breakage: 137s test_when_finished "rm -rf hgrepo gitrepo" && 137s 137s ( 137s hg init hgrepo && 137s cd hgrepo && 137s echo one > content && 137s hg add content && 137s hg commit -m one 137s ) && 137s 137s git clone "hg::hgrepo" gitrepo && 137s 137s ( 137s cd gitrepo && 137s echo two > content && 137s git commit -a -m two && 137s git push 137s ) && 137s 137s hg -R hgrepo log --template "{node}\n\n" > expected && 137s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 137s test_cmp expected actual 137s 138s Cloning into 'gitrepo'... 138s /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. 138s or locale.getdefaultlocale()[1] 138s WARNING: capability_push is disabled, only do so when really sure 138s WARNING: various enhanced features might fail in subtle ways 139s Traceback (most recent call last): 139s File "/usr/bin/git-remote-hg", line 2013, in 139s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 139s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 139s File "/usr/bin/git-remote-hg", line 1975, in main 139s repo, branchmap = get_repo(url, alias) 139s ~~~~~~~~^^^^^^^^^^^^ 139s File "/usr/bin/git-remote-hg", line 666, in get_repo 139s for branch, branch_heads in compat.iteritems(branchmap): 139s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 139s File "/usr/bin/git-remote-hg", line 63, in iteritems 139s return d.items() 139s ^^^^^^^ 139s AttributeError: 'BranchCacheV2' object has no attribute 'items' 139s fatal: remote helper 'hg' aborted session 139s not ok 32 - push updates notes # TODO known breakage 139s 139s expecting success: 139s test_when_finished "rm -rf hgrepo gitrepo" && 139s 139s ( 139s hg init hgrepo && 139s cd hgrepo && 139s echo one > content && 139s hg add content && 139s hg commit -m one 139s ) && 139s 139s git clone "hg::hgrepo" gitrepo && 139s 139s ( 139s cd gitrepo && 139s echo two > content && 139s git commit -a -m two && 139s git push origin master && 139s git branch feature-a && 139s git push origin feature-a 139s ) && 139s 139s check_bookmark hgrepo feature-a two 139s 139s Cloning into 'gitrepo'... 139s /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. 139s or locale.getdefaultlocale()[1] 139s WARNING: capability_push is disabled, only do so when really sure 139s WARNING: various enhanced features might fail in subtle ways 140s Traceback (most recent call last): 140s File "/usr/bin/git-remote-hg", line 2013, in 140s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 140s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 140s File "/usr/bin/git-remote-hg", line 1975, in main 140s repo, branchmap = get_repo(url, alias) 140s ~~~~~~~~^^^^^^^^^^^^ 140s File "/usr/bin/git-remote-hg", line 666, in get_repo 140s for branch, branch_heads in compat.iteritems(branchmap): 140s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 140s File "/usr/bin/git-remote-hg", line 63, in iteritems 140s return d.items() 140s ^^^^^^^ 140s AttributeError: 'BranchCacheV2' object has no attribute 'items' 140s fatal: remote helper 'hg' aborted session 140s not ok 33 - push bookmark without changesets 140s # 140s # test_when_finished "rm -rf hgrepo gitrepo" && 140s # 140s # ( 140s # hg init hgrepo && 140s # cd hgrepo && 140s # echo one > content && 140s # hg add content && 140s # hg commit -m one 140s # ) && 140s # 140s # git clone "hg::hgrepo" gitrepo && 140s # 140s # ( 140s # cd gitrepo && 140s # echo two > content && 140s # git commit -a -m two && 140s # git push origin master && 140s # git branch feature-a && 140s # git push origin feature-a 140s # ) && 140s # 140s # check_bookmark hgrepo feature-a two 140s # 140s 140s expecting success: 140s test_when_finished "rm -rf hgrepo gitrepo" && 140s 140s ( 140s hg init hgrepo && 140s cd hgrepo && 140s echo one > content && 140s hg add content && 140s hg commit -m one 140s ) && 140s 140s git clone "hg::hgrepo" gitrepo && 140s 140s (cd hgrepo && hg tag v1.0) && 140s (cd gitrepo && git pull) && 140s 140s echo "v1.0" > expected && 140s git --git-dir=gitrepo/.git tag > actual && 140s test_cmp expected actual 140s 141s Cloning into 'gitrepo'... 141s /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. 141s or locale.getdefaultlocale()[1] 141s WARNING: capability_push is disabled, only do so when really sure 141s 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 34 - pull tags 142s # 142s # test_when_finished "rm -rf hgrepo gitrepo" && 142s # 142s # ( 142s # hg init hgrepo && 142s # cd hgrepo && 142s # echo one > content && 142s # hg add content && 142s # hg commit -m one 142s # ) && 142s # 142s # git clone "hg::hgrepo" gitrepo && 142s # 142s # (cd hgrepo && hg tag v1.0) && 142s # (cd gitrepo && git pull) && 142s # 142s # echo "v1.0" > expected && 142s # git --git-dir=gitrepo/.git tag > actual && 142s # test_cmp expected actual 142s # 142s 142s expecting success: 142s test_when_finished "rm -rf hgrepo gitrepo" && 142s 142s ( 142s hg init hgrepo && 142s cd hgrepo && 142s echo one > content && 142s hg add content && 142s hg commit -m one && 142s hg branch feature && 142s echo two > content && 142s hg commit -m two && 142s hg update default && 142s echo three > content && 142s hg commit -m three 142s ) && 142s 142s ( 142s git clone "hg::hgrepo" gitrepo && 142s cd gitrepo && 142s git merge -m Merge -Xtheirs origin/branches/feature && 142s git push 142s ) && 142s 142s cat > expected <<-EOF && 142s Merge 142s three 142s two 142s one 142s EOF 142s hg -R hgrepo log --template "{desc}\n" > actual && 142s test_cmp expected actual 142s 143s marked working directory as branch feature 143s (branches are permanent and global, did you want a bookmark?) 143s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 143s Cloning into 'gitrepo'... 144s /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. 144s or locale.getdefaultlocale()[1] 144s WARNING: capability_push is disabled, only do so when really sure 144s WARNING: various enhanced features might fail in subtle ways 144s Traceback (most recent call last): 144s File "/usr/bin/git-remote-hg", line 2013, in 144s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 144s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 144s File "/usr/bin/git-remote-hg", line 1975, in main 144s repo, branchmap = get_repo(url, alias) 144s ~~~~~~~~^^^^^^^^^^^^ 144s File "/usr/bin/git-remote-hg", line 666, in get_repo 144s for branch, branch_heads in compat.iteritems(branchmap): 144s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 144s File "/usr/bin/git-remote-hg", line 63, in iteritems 144s return d.items() 144s ^^^^^^^ 144s AttributeError: 'BranchCacheV2' object has no attribute 'items' 144s fatal: remote helper 'hg' aborted session 144s not ok 35 - push merged named branch 144s # 144s # test_when_finished "rm -rf hgrepo gitrepo" && 144s # 144s # ( 144s # hg init hgrepo && 144s # cd hgrepo && 144s # echo one > content && 144s # hg add content && 144s # hg commit -m one && 144s # hg branch feature && 144s # echo two > content && 144s # hg commit -m two && 144s # hg update default && 144s # echo three > content && 144s # hg commit -m three 144s # ) && 144s # 144s # ( 144s # git clone "hg::hgrepo" gitrepo && 144s # cd gitrepo && 144s # git merge -m Merge -Xtheirs origin/branches/feature && 144s # git push 144s # ) && 144s # 144s # cat > expected <<-EOF && 144s # Merge 144s # three 144s # two 144s # one 144s # EOF 144s # hg -R hgrepo log --template "{desc}\n" > actual && 144s # test_cmp expected actual 144s # 144s 144s expecting success: 144s test_when_finished "rm -rf hgrepo gitrepo" && 144s 144s ( 144s hg init hgrepo && 144s cd hgrepo && 144s echo one > content && 144s hg add content && 144s hg commit -m one 144s ) && 144s 144s ( 144s git clone "hg::hgrepo" gitrepo && 144s cd gitrepo && 144s git tag v1.0 && 144s git push --tags 144s ) && 144s 144s echo "C O Mitter " > expected && 144s hg -R hgrepo log --template "{author}\n" -r tip > actual && 144s test_cmp expected actual 144s 145s Cloning into 'gitrepo'... 145s /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. 145s or locale.getdefaultlocale()[1] 145s WARNING: capability_push is disabled, only do so when really sure 145s WARNING: various enhanced features might fail in subtle ways 146s Traceback (most recent call last): 146s File "/usr/bin/git-remote-hg", line 2013, in 146s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 146s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 146s File "/usr/bin/git-remote-hg", line 1975, in main 146s repo, branchmap = get_repo(url, alias) 146s ~~~~~~~~^^^^^^^^^^^^ 146s File "/usr/bin/git-remote-hg", line 666, in get_repo 146s for branch, branch_heads in compat.iteritems(branchmap): 146s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 146s File "/usr/bin/git-remote-hg", line 63, in iteritems 146s return d.items() 146s ^^^^^^^ 146s AttributeError: 'BranchCacheV2' object has no attribute 'items' 146s fatal: remote helper 'hg' aborted session 146s not ok 36 - light tag sets author 146s # 146s # test_when_finished "rm -rf hgrepo gitrepo" && 146s # 146s # ( 146s # hg init hgrepo && 146s # cd hgrepo && 146s # echo one > content && 146s # hg add content && 146s # hg commit -m one 146s # ) && 146s # 146s # ( 146s # git clone "hg::hgrepo" gitrepo && 146s # cd gitrepo && 146s # git tag v1.0 && 146s # git push --tags 146s # ) && 146s # 146s # echo "C O Mitter " > expected && 146s # hg -R hgrepo log --template "{author}\n" -r tip > actual && 146s # test_cmp expected actual 146s # 146s 146s expecting success: 146s test_when_finished "rm -rf hgrepo gitrepo" && 146s 146s ( 146s hg init hgrepo && 146s cd hgrepo && 146s echo one > content && 146s hg add content && 146s hg commit -m one && 146s hg branch feature && 146s echo two > content && 146s hg commit -m two 146s ) && 146s 146s ( 146s git clone "hg::hgrepo" gitrepo && 146s cd gitrepo && 146s git branch && 146s git checkout branches/feature && 146s git tag v1.0 && 146s git push --tags 146s ) && 146s 146s echo feature > expected && 146s hg -R hgrepo log --template="{branch}\n" -r tip > actual && 146s test_cmp expected actual 146s 147s marked working directory as branch feature 147s (branches are permanent and global, did you want a bookmark?) 147s Cloning into 'gitrepo'... 147s /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. 147s or locale.getdefaultlocale()[1] 147s WARNING: capability_push is disabled, only do so when really sure 147s WARNING: various enhanced features might fail in subtle ways 148s Traceback (most recent call last): 148s File "/usr/bin/git-remote-hg", line 2013, in 148s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 148s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 148s File "/usr/bin/git-remote-hg", line 1975, in main 148s repo, branchmap = get_repo(url, alias) 148s ~~~~~~~~^^^^^^^^^^^^ 148s File "/usr/bin/git-remote-hg", line 666, in get_repo 148s for branch, branch_heads in compat.iteritems(branchmap): 148s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 148s File "/usr/bin/git-remote-hg", line 63, in iteritems 148s return d.items() 148s ^^^^^^^ 148s AttributeError: 'BranchCacheV2' object has no attribute 'items' 148s fatal: remote helper 'hg' aborted session 148s not ok 37 - push tag different branch 148s # 148s # test_when_finished "rm -rf hgrepo gitrepo" && 148s # 148s # ( 148s # hg init hgrepo && 148s # cd hgrepo && 148s # echo one > content && 148s # hg add content && 148s # hg commit -m one && 148s # hg branch feature && 148s # echo two > content && 148s # hg commit -m two 148s # ) && 148s # 148s # ( 148s # git clone "hg::hgrepo" gitrepo && 148s # cd gitrepo && 148s # git branch && 148s # git checkout branches/feature && 148s # git tag v1.0 && 148s # git push --tags 148s # ) && 148s # 148s # echo feature > expected && 148s # hg -R hgrepo log --template="{branch}\n" -r tip > actual && 148s # test_cmp expected actual 148s # 148s 148s expecting success: 148s test_when_finished "rm -rf hgrepo gitrepo" && 148s 148s ( 148s hg init hgrepo && 148s cd hgrepo && 148s 148s echo test > test_file && 148s hg add test_file && 148s hg commit -m add && 148s 148s hg rm test_file && 148s hg commit -m remove 148s ) && 148s 148s git clone "hg::hgrepo" gitrepo && 148s check_files gitrepo 148s 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 38 - cloning a removed file works 150s # 150s # test_when_finished "rm -rf hgrepo gitrepo" && 150s # 150s # ( 150s # hg init hgrepo && 150s # cd hgrepo && 150s # 150s # echo test > test_file && 150s # hg add test_file && 150s # hg commit -m add && 150s # 150s # hg rm test_file && 150s # hg commit -m remove 150s # ) && 150s # 150s # git clone "hg::hgrepo" gitrepo && 150s # check_files gitrepo 150s # 150s 150s expecting success: 150s test_when_finished "rm -rf hgrepo gitrepo" && 150s 150s ( 150s hg init hgrepo && 150s cd hgrepo && 150s 150s echo test > dir_or_file && 150s hg add dir_or_file && 150s hg commit -m add && 150s 150s hg rm dir_or_file && 150s mkdir dir_or_file && 150s echo test > dir_or_file/test_file && 150s hg add dir_or_file/test_file && 150s hg commit -m replase 150s ) && 150s 150s git clone "hg::hgrepo" gitrepo && 150s check_files gitrepo "dir_or_file/test_file" 150s 151s Cloning into 'gitrepo'... 152s /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. 152s or locale.getdefaultlocale()[1] 152s WARNING: capability_push is disabled, only do so when really sure 152s WARNING: various enhanced features might fail in subtle ways 152s Traceback (most recent call last): 152s File "/usr/bin/git-remote-hg", line 2013, in 152s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 152s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 152s File "/usr/bin/git-remote-hg", line 1975, in main 152s repo, branchmap = get_repo(url, alias) 152s ~~~~~~~~^^^^^^^^^^^^ 152s File "/usr/bin/git-remote-hg", line 666, in get_repo 152s for branch, branch_heads in compat.iteritems(branchmap): 152s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 152s File "/usr/bin/git-remote-hg", line 63, in iteritems 152s return d.items() 152s ^^^^^^^ 152s AttributeError: 'BranchCacheV2' object has no attribute 'items' 152s fatal: remote helper 'hg' aborted session 152s not ok 39 - cloning a file replaced with a directory 152s # 152s # test_when_finished "rm -rf hgrepo gitrepo" && 152s # 152s # ( 152s # hg init hgrepo && 152s # cd hgrepo && 152s # 152s # echo test > dir_or_file && 152s # hg add dir_or_file && 152s # hg commit -m add && 152s # 152s # hg rm dir_or_file && 152s # mkdir dir_or_file && 152s # echo test > dir_or_file/test_file && 152s # hg add dir_or_file/test_file && 152s # hg commit -m replase 152s # ) && 152s # 152s # git clone "hg::hgrepo" gitrepo && 152s # check_files gitrepo "dir_or_file/test_file" 152s # 152s 152s expecting success: 152s test_when_finished "rm -rf hgrepo gitrepo" && 152s 152s ( 152s hg init hgrepo && 152s cd hgrepo && 152s 152s mkdir dir_or_file && 152s echo test > dir_or_file/test_file && 152s hg add dir_or_file/test_file && 152s hg commit -m add && 152s 152s hg rm dir_or_file/test_file && 152s echo test > dir_or_file && 152s hg add dir_or_file && 152s hg commit -m add && 152s 152s hg rm dir_or_file 152s ) && 152s 152s git clone "hg::hgrepo" gitrepo && 152s check_files gitrepo "dir_or_file" 152s 154s Cloning into 'gitrepo'... 154s /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. 154s or locale.getdefaultlocale()[1] 154s WARNING: capability_push is disabled, only do so when really sure 154s 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 40 - clone replace directory with a file 155s # 155s # test_when_finished "rm -rf hgrepo gitrepo" && 155s # 155s # ( 155s # hg init hgrepo && 155s # cd hgrepo && 155s # 155s # mkdir dir_or_file && 155s # echo test > dir_or_file/test_file && 155s # hg add dir_or_file/test_file && 155s # hg commit -m add && 155s # 155s # hg rm dir_or_file/test_file && 155s # echo test > dir_or_file && 155s # hg add dir_or_file && 155s # hg commit -m add && 155s # 155s # hg rm dir_or_file 155s # ) && 155s # 155s # git clone "hg::hgrepo" gitrepo && 155s # check_files gitrepo "dir_or_file" 155s # 155s 155s expecting success: 155s test_when_finished "rm -rf hgrepo gitrepo" && 155s 155s ( 155s hg init hgrepo && 155s cd hgrepo && 155s 155s touch test.txt && 155s hg add test.txt && 155s hg commit -m master && 155s hg branch parent && 155s echo test >test.txt && 155s hg commit -m test && 155s hg branch parent/child && 155s echo test1 >test.txt && 155s hg commit -m test1 155s ) && 155s 155s git clone -c remote-hg.ignore-name=child "hg::hgrepo" gitrepo && 155s check_files gitrepo "test.txt" 155s 156s marked working directory as branch parent 156s (branches are permanent and global, did you want a bookmark?) 156s marked working directory as branch parent/child 156s Cloning into 'gitrepo'... 157s /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. 157s or locale.getdefaultlocale()[1] 157s WARNING: capability_push is disabled, only do so when really sure 157s WARNING: various enhanced features might fail in subtle ways 157s Traceback (most recent call last): 157s File "/usr/bin/git-remote-hg", line 2013, in 157s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 157s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/bin/git-remote-hg", line 1975, in main 157s repo, branchmap = get_repo(url, alias) 157s ~~~~~~~~^^^^^^^^^^^^ 157s File "/usr/bin/git-remote-hg", line 666, in get_repo 157s for branch, branch_heads in compat.iteritems(branchmap): 157s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 157s File "/usr/bin/git-remote-hg", line 63, in iteritems 157s return d.items() 157s ^^^^^^^ 157s AttributeError: 'BranchCacheV2' object has no attribute 'items' 157s fatal: remote helper 'hg' aborted session 157s not ok 41 - clone can ignore invalid refnames 157s # 157s # test_when_finished "rm -rf hgrepo gitrepo" && 157s # 157s # ( 157s # hg init hgrepo && 157s # cd hgrepo && 157s # 157s # touch test.txt && 157s # hg add test.txt && 157s # hg commit -m master && 157s # hg branch parent && 157s # echo test >test.txt && 157s # hg commit -m test && 157s # hg branch parent/child && 157s # echo test1 >test.txt && 157s # hg commit -m test1 157s # ) && 157s # 157s # git clone -c remote-hg.ignore-name=child "hg::hgrepo" gitrepo && 157s # check_files gitrepo "test.txt" 157s # 157s 157s expecting success: 157s test_when_finished "rm -rf hgrepo gitrepo" && 157s 157s ( 157s hg init hgrepo && 157s cd hgrepo && 157s echo one > content && 157s hg add content && 157s hg commit -m one 157s ) && 157s 157s ( 157s git clone "hg::hgrepo" gitrepo && 157s cd gitrepo && 157s git tag -m "Version 1.0" v1.0 && 157s git push --tags 157s ) && 157s 157s cat > expected <<-\EOF && 157s tip:Version 1.0:C O Mitter 157s v1.0:one:H G Wells 157s EOF 157s 157s hg -R hgrepo log --template "{tags}:{desc}:{author}\n" > actual && 157s 157s test_cmp expected actual 157s 158s Cloning into 'gitrepo'... 158s /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. 158s or locale.getdefaultlocale()[1] 158s WARNING: capability_push is disabled, only do so when really sure 158s WARNING: various enhanced features might fail in subtle ways 159s Traceback (most recent call last): 159s File "/usr/bin/git-remote-hg", line 2013, in 159s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 159s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 159s File "/usr/bin/git-remote-hg", line 1975, in main 159s repo, branchmap = get_repo(url, alias) 159s ~~~~~~~~^^^^^^^^^^^^ 159s File "/usr/bin/git-remote-hg", line 666, in get_repo 159s for branch, branch_heads in compat.iteritems(branchmap): 159s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 159s File "/usr/bin/git-remote-hg", line 63, in iteritems 159s return d.items() 159s ^^^^^^^ 159s AttributeError: 'BranchCacheV2' object has no attribute 'items' 159s fatal: remote helper 'hg' aborted session 159s not ok 42 - push annotated tag 159s # 159s # test_when_finished "rm -rf hgrepo gitrepo" && 159s # 159s # ( 159s # hg init hgrepo && 159s # cd hgrepo && 159s # echo one > content && 159s # hg add content && 159s # hg commit -m one 159s # ) && 159s # 159s # ( 159s # git clone "hg::hgrepo" gitrepo && 159s # cd gitrepo && 159s # git tag -m "Version 1.0" v1.0 && 159s # git push --tags 159s # ) && 159s # 159s # cat > expected <<-\EOF && 159s # tip:Version 1.0:C O Mitter 159s # v1.0:one:H G Wells 159s # EOF 159s # 159s # hg -R hgrepo log --template "{tags}:{desc}:{author}\n" > actual && 159s # 159s # test_cmp expected actual 159s # 159s 159s expecting success: 159s test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && 159s 159s hg init hgrepo && 159s 159s ( 159s git clone "hg::hgrepo" gitrepo1 && 159s cd gitrepo1 && 159s echo two >> content && 159s git add content && 159s git commit -m two --date="2016-09-26 00:00:00 -0230" && 159s git push 159s ) && 159s 159s git clone "hg::hgrepo" gitrepo2 && 159s 159s git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && 159s git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && 159s test_cmp expected actual 159s 159s Cloning into 'gitrepo1'... 160s /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. 160s or locale.getdefaultlocale()[1] 160s WARNING: capability_push is disabled, only do so when really sure 160s 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' 160s fatal: remote helper 'hg' aborted session 160s not ok 43 - timezone issues with negative offsets 160s # 160s # test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && 160s # 160s # hg init hgrepo && 160s # 160s # ( 160s # git clone "hg::hgrepo" gitrepo1 && 160s # cd gitrepo1 && 160s # echo two >> content && 160s # git add content && 160s # git commit -m two --date="2016-09-26 00:00:00 -0230" && 160s # git push 160s # ) && 160s # 160s # git clone "hg::hgrepo" gitrepo2 && 160s # 160s # git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && 160s # git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && 160s # test_cmp expected actual 160s # 160s 160s # still have 2 known breakage(s) 160s # failed 40 among remaining 41 test(s) 160s make: *** [Makefile:14: main.t] Error 1 160s 1..43 160s make: Leaving directory '/tmp/autopkgtest.IJeKvO/build.VGb/src/test' 161s autopkgtest [06:58:43]: test upstream-test-suite: -----------------------] 161s autopkgtest [06:58:43]: test upstream-test-suite: - - - - - - - - - - results - - - - - - - - - - 161s upstream-test-suite FAIL non-zero exit status 2 162s autopkgtest [06:58:44]: @@@@@@@@@@@@@@@@@@@@ summary 162s upstream-test-suite FAIL non-zero exit status 2