0s autopkgtest [06:56:00]: starting date and time: 2026-02-10 06:56:00+0000 0s autopkgtest [06:56:00]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [06:56:00]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.u1jm9g83/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --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' -- lxd -r lxd-armhf-10.145.243.46 lxd-armhf-10.145.243.46:autopkgtest/ubuntu/resolute/armhf 26s autopkgtest [06:56:26]: testbed dpkg architecture: armhf 28s autopkgtest [06:56:28]: testbed apt version: 3.1.15 33s autopkgtest [06:56:33]: @@@@@@@@@@@@@@@@@@@@ test bed setup 35s autopkgtest [06:56:35]: testbed release detected to be: None 43s autopkgtest [06:56:43]: updating testbed package index (apt update) 45s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 45s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [124 kB] 46s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 46s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 46s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [178 kB] 46s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1727 kB] 47s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.1 kB] 47s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [249 kB] 47s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [1556 kB] 48s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [8156 B] 48s Get:11 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 53s Get:12 http://ftpmaster.internal/ubuntu resolute/main Sources [1404 kB] 53s Get:13 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1386 kB] 54s Get:14 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.1 MB] 59s Fetched 43.2 MB in 14s (3071 kB/s) 60s Reading package lists... 66s autopkgtest [06:57:06]: upgrading testbed (apt dist-upgrade and autopurge) 68s Reading package lists... 68s Building dependency tree... 68s Reading state information... 69s Calculating upgrade... 69s The following packages will be upgraded: 69s libbrotli1 70s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 70s Need to get 318 kB of archives. 70s After this operation, 0 B of additional disk space will be used. 70s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libbrotli1 armhf 1.2.0-3 [318 kB] 70s Fetched 318 kB in 1s (441 kB/s) 71s (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 ... 68691 files and directories currently installed.) 71s Preparing to unpack .../libbrotli1_1.2.0-3_armhf.deb ... 71s Unpacking libbrotli1:armhf (1.2.0-3) over (1.1.0-2build6) ... 71s Setting up libbrotli1:armhf (1.2.0-3) ... 71s Processing triggers for libc-bin (2.42-2ubuntu4) ... 73s Reading package lists... 74s Building dependency tree... 74s Reading state information... 74s Solving dependencies... 74s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 77s autopkgtest [06:57:17]: rebooting testbed after setup commands that affected boot 124s autopkgtest [06:58:04]: testbed running kernel: Linux 6.8.0-87-generic #88~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Oct 14 14:00:09 UTC 2 150s autopkgtest [06:58:30]: @@@@@@@@@@@@@@@@@@@@ apt-source git-remote-hg 161s Get:1 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (dsc) [2129 B] 161s Get:2 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (tar) [56.1 kB] 161s Get:3 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.5~ds-1 (diff) [5272 B] 161s gpgv: Signature made Wed Sep 24 17:58:21 2025 UTC 161s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 161s gpgv: issuer "tchet@debian.org" 161s gpgv: Can't check signature: No public key 161s dpkg-source: warning: cannot verify inline signature for ./git-remote-hg_1.0.5~ds-1.dsc: no acceptable signature found 161s autopkgtest [06:58:41]: testing package git-remote-hg version 1.0.5~ds-1 163s autopkgtest [06:58:43]: build not needed 165s autopkgtest [06:58:45]: test upstream-test-suite: preparing testbed 167s Reading package lists... 167s Building dependency tree... 167s Reading state information... 167s Solving dependencies... 168s The following NEW packages will be installed: 168s git git-man git-remote-hg liberror-perl mercurial mercurial-common 168s mercurial-git python3-dulwich sharness 168s 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. 168s Need to get 9508 kB of archives. 168s After this operation, 50.6 MB of additional disk space will be used. 168s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf liberror-perl all 0.17030-1 [23.5 kB] 168s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf git-man all 1:2.51.0-1ubuntu1 [1179 kB] 169s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf git armhf 1:2.51.0-1ubuntu1 [4649 kB] 170s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf mercurial-common all 7.2-2 [2853 kB] 170s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf mercurial armhf 7.2-2 [492 kB] 170s Get:6 http://ftpmaster.internal/ubuntu resolute/universe armhf git-remote-hg all 1.0.5~ds-1 [41.6 kB] 171s Get:7 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-dulwich armhf 0.22.7-1 [183 kB] 171s Get:8 http://ftpmaster.internal/ubuntu resolute/universe armhf mercurial-git all 1.2.0-1 [60.9 kB] 171s Get:9 http://ftpmaster.internal/ubuntu resolute/universe armhf sharness all 1.0.0-1.1build1 [26.2 kB] 171s Fetched 9508 kB in 3s (3412 kB/s) 171s Selecting previously unselected package liberror-perl. 171s (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 ... 68691 files and directories currently installed.) 171s Preparing to unpack .../0-liberror-perl_0.17030-1_all.deb ... 171s Unpacking liberror-perl (0.17030-1) ... 171s Selecting previously unselected package git-man. 171s Preparing to unpack .../1-git-man_1%3a2.51.0-1ubuntu1_all.deb ... 171s Unpacking git-man (1:2.51.0-1ubuntu1) ... 171s Selecting previously unselected package git. 171s Preparing to unpack .../2-git_1%3a2.51.0-1ubuntu1_armhf.deb ... 171s Unpacking git (1:2.51.0-1ubuntu1) ... 171s Selecting previously unselected package mercurial-common. 171s Preparing to unpack .../3-mercurial-common_7.2-2_all.deb ... 171s Unpacking mercurial-common (7.2-2) ... 172s Selecting previously unselected package mercurial. 172s Preparing to unpack .../4-mercurial_7.2-2_armhf.deb ... 172s Unpacking mercurial (7.2-2) ... 172s Selecting previously unselected package git-remote-hg. 172s Preparing to unpack .../5-git-remote-hg_1.0.5~ds-1_all.deb ... 172s Unpacking git-remote-hg (1.0.5~ds-1) ... 172s Selecting previously unselected package python3-dulwich. 172s Preparing to unpack .../6-python3-dulwich_0.22.7-1_armhf.deb ... 172s Unpacking python3-dulwich (0.22.7-1) ... 172s Selecting previously unselected package mercurial-git. 172s Preparing to unpack .../7-mercurial-git_1.2.0-1_all.deb ... 172s Unpacking mercurial-git (1.2.0-1) ... 172s Selecting previously unselected package sharness. 172s Preparing to unpack .../8-sharness_1.0.0-1.1build1_all.deb ... 172s Unpacking sharness (1.0.0-1.1build1) ... 172s Setting up mercurial-common (7.2-2) ... 173s Setting up liberror-perl (0.17030-1) ... 173s Setting up sharness (1.0.0-1.1build1) ... 173s Setting up python3-dulwich (0.22.7-1) ... 174s Setting up git-man (1:2.51.0-1ubuntu1) ... 174s Setting up mercurial (7.2-2) ... 174s Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version 174s Setting up mercurial-git (1.2.0-1) ... 174s mercurial-git extension is disabled by default. 174s You can follow the instructions in /usr/share/doc/mercurial-git/README.Debian to enable it. 174s Setting up git (1:2.51.0-1ubuntu1) ... 174s Setting up git-remote-hg (1.0.5~ds-1) ... 174s Processing triggers for man-db (2.13.1-1build1) ... 183s autopkgtest [06:59:03]: test upstream-test-suite: make -C test TEST_INSTALLED_SCRIPTS=1 TEST_OPTS=--verbose 183s autopkgtest [06:59:03]: test upstream-test-suite: [----------------------- 185s make: Entering directory '/tmp/autopkgtest.oDh3wW/build.jsk/src/test' 185s ./main.t --verbose 185s expecting success: 185s ( 185s hg init hgrepo && 185s cd hgrepo && 185s echo zero > content && 185s hg add content && 185s hg commit -m zero 185s ) 185s 186s ok 1 - setup 186s 186s expecting success: 186s test_when_finished "rm -rf gitrepo*" && 186s git clone "hg::hgrepo" gitrepo && 186s check gitrepo HEAD zero 186s 186s Cloning into 'gitrepo'... 186s /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. 186s or locale.getdefaultlocale()[1] 186s WARNING: capability_push is disabled, only do so when really sure 186s WARNING: various enhanced features might fail in subtle ways 187s Traceback (most recent call last): 187s File "/usr/bin/git-remote-hg", line 2013, in 187s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 187s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 187s File "/usr/bin/git-remote-hg", line 1975, in main 187s repo, branchmap = get_repo(url, alias) 187s ~~~~~~~~^^^^^^^^^^^^ 187s File "/usr/bin/git-remote-hg", line 666, in get_repo 187s for branch, branch_heads in compat.iteritems(branchmap): 187s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 187s File "/usr/bin/git-remote-hg", line 63, in iteritems 187s return d.items() 187s ^^^^^^^ 187s AttributeError: 'BranchCacheV2' object has no attribute 'items' 187s fatal: remote helper 'hg' aborted session 187s not ok 2 - cloning 187s # 187s # test_when_finished "rm -rf gitrepo*" && 187s # git clone "hg::hgrepo" gitrepo && 187s # check gitrepo HEAD zero 187s # 187s 187s expecting success: 187s test_when_finished "rm -rf gitrepo*" && 187s 187s ( 187s cd hgrepo && 187s hg branch next && 187s echo next > content && 187s hg commit -m next 187s ) && 187s 187s git clone "hg::hgrepo" gitrepo && 187s check gitrepo origin/branches/next next 187s 188s marked working directory as branch next 188s (branches are permanent and global, did you want a bookmark?) 188s Cloning into 'gitrepo'... 188s /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. 188s or locale.getdefaultlocale()[1] 188s WARNING: capability_push is disabled, only do so when really sure 188s WARNING: various enhanced features might fail in subtle ways 189s Traceback (most recent call last): 189s File "/usr/bin/git-remote-hg", line 2013, in 189s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 189s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 189s File "/usr/bin/git-remote-hg", line 1975, in main 189s repo, branchmap = get_repo(url, alias) 189s ~~~~~~~~^^^^^^^^^^^^ 189s File "/usr/bin/git-remote-hg", line 666, in get_repo 189s for branch, branch_heads in compat.iteritems(branchmap): 189s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 189s File "/usr/bin/git-remote-hg", line 63, in iteritems 189s return d.items() 189s ^^^^^^^ 189s AttributeError: 'BranchCacheV2' object has no attribute 'items' 190s fatal: remote helper 'hg' aborted session 190s not ok 3 - cloning with branches 190s # 190s # test_when_finished "rm -rf gitrepo*" && 190s # 190s # ( 190s # cd hgrepo && 190s # hg branch next && 190s # echo next > content && 190s # hg commit -m next 190s # ) && 190s # 190s # git clone "hg::hgrepo" gitrepo && 190s # check gitrepo origin/branches/next next 190s # 190s 190s expecting success: 190s test_when_finished "rm -rf gitrepo*" && 190s 190s ( 190s cd hgrepo && 190s hg checkout default && 190s hg bookmark feature-a && 190s echo feature-a > content && 190s hg commit -m feature-a 190s ) && 190s 190s git clone "hg::hgrepo" gitrepo && 190s check gitrepo origin/feature-a feature-a 190s 190s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 190s Cloning into 'gitrepo'... 191s /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. 191s or locale.getdefaultlocale()[1] 191s WARNING: capability_push is disabled, only do so when really sure 191s WARNING: various enhanced features might fail in subtle ways 192s Traceback (most recent call last): 192s File "/usr/bin/git-remote-hg", line 2013, in 192s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 192s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 192s File "/usr/bin/git-remote-hg", line 1975, in main 192s repo, branchmap = get_repo(url, alias) 192s ~~~~~~~~^^^^^^^^^^^^ 192s File "/usr/bin/git-remote-hg", line 666, in get_repo 192s for branch, branch_heads in compat.iteritems(branchmap): 192s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 192s File "/usr/bin/git-remote-hg", line 63, in iteritems 192s return d.items() 192s ^^^^^^^ 192s AttributeError: 'BranchCacheV2' object has no attribute 'items' 192s fatal: remote helper 'hg' aborted session 192s not ok 4 - cloning with bookmarks 192s # 192s # test_when_finished "rm -rf gitrepo*" && 192s # 192s # ( 192s # cd hgrepo && 192s # hg checkout default && 192s # hg bookmark feature-a && 192s # echo feature-a > content && 192s # hg commit -m feature-a 192s # ) && 192s # 192s # git clone "hg::hgrepo" gitrepo && 192s # check gitrepo origin/feature-a feature-a 192s # 192s 192s expecting success: 192s test_when_finished "rm -rf gitrepo*" && 192s 192s ( 192s cd hgrepo && 192s hg bookmark devel 192s ) && 192s 192s ( 192s git clone "hg::hgrepo" gitrepo && 192s cd gitrepo && 192s git checkout --quiet devel && 192s echo devel > content && 192s git commit -a -m devel && 192s git push --quiet origin devel 192s ) && 192s 192s check_bookmark hgrepo devel devel 192s 192s Cloning into 'gitrepo'... 193s /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. 193s or locale.getdefaultlocale()[1] 193s WARNING: capability_push is disabled, only do so when really sure 193s WARNING: various enhanced features might fail in subtle ways 194s Traceback (most recent call last): 194s File "/usr/bin/git-remote-hg", line 2013, in 194s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 194s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194s File "/usr/bin/git-remote-hg", line 1975, in main 194s repo, branchmap = get_repo(url, alias) 194s ~~~~~~~~^^^^^^^^^^^^ 194s File "/usr/bin/git-remote-hg", line 666, in get_repo 194s for branch, branch_heads in compat.iteritems(branchmap): 194s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 194s File "/usr/bin/git-remote-hg", line 63, in iteritems 194s return d.items() 194s ^^^^^^^ 194s AttributeError: 'BranchCacheV2' object has no attribute 'items' 194s fatal: remote helper 'hg' aborted session 194s not ok 5 - update bookmark 194s # 194s # test_when_finished "rm -rf gitrepo*" && 194s # 194s # ( 194s # cd hgrepo && 194s # hg bookmark devel 194s # ) && 194s # 194s # ( 194s # git clone "hg::hgrepo" gitrepo && 194s # cd gitrepo && 194s # git checkout --quiet devel && 194s # echo devel > content && 194s # git commit -a -m devel && 194s # git push --quiet origin devel 194s # ) && 194s # 194s # check_bookmark hgrepo devel devel 194s # 194s 194s expecting success: 194s test_when_finished "rm -rf gitrepo*" && 194s 194s ( 194s git clone "hg::hgrepo" gitrepo && 194s cd gitrepo && 194s git checkout --quiet -b feature-b && 194s echo feature-b > content && 194s git commit -a -m feature-b && 194s git push --quiet origin feature-b 194s ) && 194s 194s check_bookmark hgrepo feature-b feature-b 194s 194s Cloning into 'gitrepo'... 194s /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. 194s or locale.getdefaultlocale()[1] 194s WARNING: capability_push is disabled, only do so when really sure 194s WARNING: various enhanced features might fail in subtle ways 195s Traceback (most recent call last): 195s File "/usr/bin/git-remote-hg", line 2013, in 195s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 195s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 195s File "/usr/bin/git-remote-hg", line 1975, in main 195s repo, branchmap = get_repo(url, alias) 195s ~~~~~~~~^^^^^^^^^^^^ 195s File "/usr/bin/git-remote-hg", line 666, in get_repo 195s for branch, branch_heads in compat.iteritems(branchmap): 195s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 195s File "/usr/bin/git-remote-hg", line 63, in iteritems 195s return d.items() 195s ^^^^^^^ 195s AttributeError: 'BranchCacheV2' object has no attribute 'items' 196s fatal: remote helper 'hg' aborted session 196s not ok 6 - new bookmark 196s # 196s # test_when_finished "rm -rf gitrepo*" && 196s # 196s # ( 196s # git clone "hg::hgrepo" gitrepo && 196s # cd gitrepo && 196s # git checkout --quiet -b feature-b && 196s # echo feature-b > content && 196s # git commit -a -m feature-b && 196s # git push --quiet origin feature-b 196s # ) && 196s # 196s # check_bookmark hgrepo feature-b feature-b 196s # 196s 196s expecting success: 196s test_when_finished "rm -rf hgrepo gitrepo" && 196s 196s ( 196s hg init hgrepo && 196s cd hgrepo && 196s 196s touch content && 196s hg add content && 196s 196s > ../expected && 196s author_test alpha "" "H G Wells " && 196s author_test beta "beta" "beta " && 196s author_test gamma "gamma (comment)" "gamma " && 196s author_test delta "" "Unknown " && 196s author_test epsilon "epsilon" "epsilon " && 196s author_test zeta "zeta " && 196s author_test eta " eta " "eta " && 196s author_test theta "theta < test@example.com >" "theta " && 196s author_test iota "iota >test@example.com>" "iota " && 196s author_test kappa "kappa < test example com>" "kappa " && 196s author_test lambda "lambda@example.com" "Unknown " && 196s author_test mu "mu.mu@example.com" "Unknown " 196s ) && 196s 196s git clone "hg::hgrepo" gitrepo && 196s git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual && 196s 196s test_cmp expected actual 196s 199s Cloning into 'gitrepo'... 200s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 200s or locale.getdefaultlocale()[1] 200s WARNING: capability_push is disabled, only do so when really sure 200s WARNING: various enhanced features might fail in subtle ways 201s Traceback (most recent call last): 201s File "/usr/bin/git-remote-hg", line 2013, in 201s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 201s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 201s File "/usr/bin/git-remote-hg", line 1975, in main 201s repo, branchmap = get_repo(url, alias) 201s ~~~~~~~~^^^^^^^^^^^^ 201s File "/usr/bin/git-remote-hg", line 666, in get_repo 201s for branch, branch_heads in compat.iteritems(branchmap): 201s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 201s File "/usr/bin/git-remote-hg", line 63, in iteritems 201s return d.items() 201s ^^^^^^^ 201s AttributeError: 'BranchCacheV2' object has no attribute 'items' 201s fatal: remote helper 'hg' aborted session 201s not ok 7 - authors 201s # 201s # test_when_finished "rm -rf hgrepo gitrepo" && 201s # 201s # ( 201s # hg init hgrepo && 201s # cd hgrepo && 201s # 201s # touch content && 201s # hg add content && 201s # 201s # > ../expected && 201s # author_test alpha "" "H G Wells " && 201s # author_test beta "beta" "beta " && 201s # author_test gamma "gamma (comment)" "gamma " && 201s # author_test delta "" "Unknown " && 201s # author_test epsilon "epsilon" "epsilon " && 201s # author_test zeta "zeta " && 201s # author_test eta " eta " "eta " && 201s # author_test theta "theta < test@example.com >" "theta " && 201s # author_test iota "iota >test@example.com>" "iota " && 201s # author_test kappa "kappa < test example com>" "kappa " && 201s # author_test lambda "lambda@example.com" "Unknown " && 201s # author_test mu "mu.mu@example.com" "Unknown " 201s # ) && 201s # 201s # git clone "hg::hgrepo" gitrepo && 201s # git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual && 201s # 201s # test_cmp expected actual 201s # 201s 201s expecting success: 201s test_when_finished "rm -rf hgrepo gitrepo" && 201s 201s ( 201s hg init hgrepo && 201s cd hgrepo && 201s 201s echo one >> content && 201s hg add content && 201s hg commit -m one && 201s 201s echo two >> content && 201s hg commit -m two 201s ) && 201s 201s git clone "hg::hgrepo" gitrepo && 201s 201s ( 201s cd hgrepo && 201s hg strip 1 && 201s 201s echo three >> content && 201s hg commit -m three && 201s 201s echo four >> content && 201s hg commit -m four 201s ) && 201s 201s ( 201s cd gitrepo && 201s git fetch && 201s git log --format="%s" origin/master > ../actual 201s ) && 201s 201s hg -R hgrepo log --template "{desc}\n" > expected && 201s test_cmp actual expected 201s 202s Cloning into 'gitrepo'... 202s /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. 202s or locale.getdefaultlocale()[1] 202s WARNING: capability_push is disabled, only do so when really sure 202s WARNING: various enhanced features might fail in subtle ways 204s Traceback (most recent call last): 204s File "/usr/bin/git-remote-hg", line 2013, in 204s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 204s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 204s File "/usr/bin/git-remote-hg", line 1975, in main 204s repo, branchmap = get_repo(url, alias) 204s ~~~~~~~~^^^^^^^^^^^^ 204s File "/usr/bin/git-remote-hg", line 666, in get_repo 204s for branch, branch_heads in compat.iteritems(branchmap): 204s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 204s File "/usr/bin/git-remote-hg", line 63, in iteritems 204s return d.items() 204s ^^^^^^^ 204s AttributeError: 'BranchCacheV2' object has no attribute 'items' 204s fatal: remote helper 'hg' aborted session 204s not ok 8 - strip 204s # 204s # test_when_finished "rm -rf hgrepo gitrepo" && 204s # 204s # ( 204s # hg init hgrepo && 204s # cd hgrepo && 204s # 204s # echo one >> content && 204s # hg add content && 204s # hg commit -m one && 204s # 204s # echo two >> content && 204s # hg commit -m two 204s # ) && 204s # 204s # git clone "hg::hgrepo" gitrepo && 204s # 204s # ( 204s # cd hgrepo && 204s # hg strip 1 && 204s # 204s # echo three >> content && 204s # hg commit -m three && 204s # 204s # echo four >> content && 204s # hg commit -m four 204s # ) && 204s # 204s # ( 204s # cd gitrepo && 204s # git fetch && 204s # git log --format="%s" origin/master > ../actual 204s # ) && 204s # 204s # hg -R hgrepo log --template "{desc}\n" > expected && 204s # test_cmp actual expected 204s # 204s 204s expecting success: 204s test_when_finished "rm -rf hgrepo gitrepo" && 204s 204s ( 204s hg init hgrepo && 204s cd hgrepo && 204s 204s echo one >.git && 204s echo ONE >.GIT && 204s mkdir a && echo two > a/.gitmodules && 204s hg add .git .GIT a/.gitmodules && 204s hg commit -m zero 204s ) && 204s 204s git clone "hg::hgrepo" gitrepo && 204s test_cmp gitrepo/.git_ hgrepo/.git && 204s test_cmp gitrepo/.GIT_ hgrepo/.GIT && 204s test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules && 204s 204s ( 204s cd gitrepo && 204s echo three >.git_ && 204s echo THREE >.GIT && 204s echo four >a/.gitmodules_ && 204s git add .git_ .GIT_ a/.gitmodules_ && 204s git commit -m one && 204s git push 204s ) && 204s 204s hg -R hgrepo update && 204s test_cmp gitrepo/.git_ hgrepo/.git && 204s test_cmp gitrepo/.GIT_ hgrepo/.GIT && 204s test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules 204s 204s warning: possible case-folding collision for .git 204s Cloning into 'gitrepo'... 205s /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. 205s or locale.getdefaultlocale()[1] 205s WARNING: capability_push is disabled, only do so when really sure 205s WARNING: various enhanced features might fail in subtle ways 206s Traceback (most recent call last): 206s File "/usr/bin/git-remote-hg", line 2013, in 206s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 206s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 206s File "/usr/bin/git-remote-hg", line 1975, in main 206s repo, branchmap = get_repo(url, alias) 206s ~~~~~~~~^^^^^^^^^^^^ 206s File "/usr/bin/git-remote-hg", line 666, in get_repo 206s for branch, branch_heads in compat.iteritems(branchmap): 206s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 206s File "/usr/bin/git-remote-hg", line 63, in iteritems 206s return d.items() 206s ^^^^^^^ 206s AttributeError: 'BranchCacheV2' object has no attribute 'items' 206s fatal: remote helper 'hg' aborted session 206s not ok 9 - dotfiles 206s # 206s # test_when_finished "rm -rf hgrepo gitrepo" && 206s # 206s # ( 206s # hg init hgrepo && 206s # cd hgrepo && 206s # 206s # echo one >.git && 206s # echo ONE >.GIT && 206s # mkdir a && echo two > a/.gitmodules && 206s # hg add .git .GIT a/.gitmodules && 206s # hg commit -m zero 206s # ) && 206s # 206s # git clone "hg::hgrepo" gitrepo && 206s # test_cmp gitrepo/.git_ hgrepo/.git && 206s # test_cmp gitrepo/.GIT_ hgrepo/.GIT && 206s # test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules && 206s # 206s # ( 206s # cd gitrepo && 206s # echo three >.git_ && 206s # echo THREE >.GIT && 206s # echo four >a/.gitmodules_ && 206s # git add .git_ .GIT_ a/.gitmodules_ && 206s # git commit -m one && 206s # git push 206s # ) && 206s # 206s # hg -R hgrepo update && 206s # test_cmp gitrepo/.git_ hgrepo/.git && 206s # test_cmp gitrepo/.GIT_ hgrepo/.GIT && 206s # test_cmp gitrepo/a/.gitmodules_ hgrepo/a/.gitmodules 206s # 206s 206s expecting success: 206s test_when_finished "rm -rf hgrepo gitrepo*" && 206s 206s ( 206s hg init hgrepo && 206s cd hgrepo && 206s echo zero > content && 206s hg add content && 206s hg commit -m zero && 206s hg bookmark master && 206s echo one > content && 206s hg commit -m one 206s ) && 206s 206s ( 206s git clone "hg::hgrepo" gitrepo && 206s cd gitrepo && 206s echo two > content && 206s git commit -a -m two && 206s git push 206s ) && 206s 206s check_branch hgrepo default two 206s 209s Cloning into 'gitrepo'... 209s /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. 209s or locale.getdefaultlocale()[1] 209s WARNING: capability_push is disabled, only do so when really sure 209s WARNING: various enhanced features might fail in subtle ways 209s Traceback (most recent call last): 209s File "/usr/bin/git-remote-hg", line 2013, in 209s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 209s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 209s File "/usr/bin/git-remote-hg", line 1975, in main 209s repo, branchmap = get_repo(url, alias) 209s ~~~~~~~~^^^^^^^^^^^^ 209s File "/usr/bin/git-remote-hg", line 666, in get_repo 209s for branch, branch_heads in compat.iteritems(branchmap): 209s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 209s File "/usr/bin/git-remote-hg", line 63, in iteritems 209s return d.items() 209s ^^^^^^^ 209s AttributeError: 'BranchCacheV2' object has no attribute 'items' 209s fatal: remote helper 'hg' aborted session 209s not ok 10 - remote push with master bookmark 209s # 209s # test_when_finished "rm -rf hgrepo gitrepo*" && 209s # 209s # ( 209s # hg init hgrepo && 209s # cd hgrepo && 209s # echo zero > content && 209s # hg add content && 209s # hg commit -m zero && 209s # hg bookmark master && 209s # echo one > content && 209s # hg commit -m one 209s # ) && 209s # 209s # ( 209s # git clone "hg::hgrepo" gitrepo && 209s # cd gitrepo && 209s # echo two > content && 209s # git commit -a -m two && 209s # git push 209s # ) && 209s # 209s # check_branch hgrepo default two 209s # 209s 209s expecting success: 209s test_when_finished "rm -rf hgrepo gitrepo*" && 209s 209s hg init hgrepo && 209s 209s ( 209s git init gitrepo && 209s cd gitrepo && 209s git remote add origin "hg::../hgrepo" && 209s echo one > content && 209s git add content && 209s git commit -a -m one && 209s git push origin master 209s ) && 209s 209s hg -R hgrepo log > actual && 209s cat actual && 209s test_cmp expected actual && 209s 209s check_branch hgrepo default one 209s 209s Initialized empty Git repository in /tmp/autopkgtest.oDh3wW/build.jsk/src/test/trash directory.main/gitrepo/.git/ 209s [master (root-commit) 64caca5] one 209s Author: A U Thor 209s 1 file changed, 1 insertion(+) 209s create mode 100644 content 210s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 210s or locale.getdefaultlocale()[1] 210s WARNING: capability_push is disabled, only do so when really sure 210s WARNING: various enhanced features might fail in subtle ways 211s Traceback (most recent call last): 211s File "/usr/bin/git-remote-hg", line 2013, in 211s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 211s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 211s File "/usr/bin/git-remote-hg", line 1975, in main 211s repo, branchmap = get_repo(url, alias) 211s ~~~~~~~~^^^^^^^^^^^^ 211s File "/usr/bin/git-remote-hg", line 666, in get_repo 211s for branch, branch_heads in compat.iteritems(branchmap): 211s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 211s File "/usr/bin/git-remote-hg", line 63, in iteritems 211s return d.items() 211s ^^^^^^^ 211s AttributeError: 'BranchCacheV2' object has no attribute 'items' 211s fatal: remote helper 'hg' aborted session 211s not ok 11 - remote push from master branch 211s # 211s # test_when_finished "rm -rf hgrepo gitrepo*" && 211s # 211s # hg init hgrepo && 211s # 211s # ( 211s # git init gitrepo && 211s # cd gitrepo && 211s # git remote add origin "hg::../hgrepo" && 211s # echo one > content && 211s # git add content && 211s # git commit -a -m one && 211s # git push origin master 211s # ) && 211s # 211s # hg -R hgrepo log > actual && 211s # cat actual && 211s # test_cmp expected actual && 211s # 211s # check_branch hgrepo default one 211s # 211s 211s expecting success: 211s test_when_finished "rm -rf gitrepo*" && 211s 211s ( 211s hg init hgrepo && 211s cd hgrepo && 211s echo zero > content && 211s hg add content && 211s hg commit -m zero 211s ) && 211s 211s git clone "hg::hgrepo" gitrepo && 211s check gitrepo HEAD zero 211s 212s Cloning into 'gitrepo'... 212s /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. 212s or locale.getdefaultlocale()[1] 212s WARNING: capability_push is disabled, only do so when really sure 212s WARNING: various enhanced features might fail in subtle ways 213s Traceback (most recent call last): 213s File "/usr/bin/git-remote-hg", line 2013, in 213s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 213s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 213s File "/usr/bin/git-remote-hg", line 1975, in main 213s repo, branchmap = get_repo(url, alias) 213s ~~~~~~~~^^^^^^^^^^^^ 213s File "/usr/bin/git-remote-hg", line 666, in get_repo 213s for branch, branch_heads in compat.iteritems(branchmap): 213s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 213s File "/usr/bin/git-remote-hg", line 63, in iteritems 213s return d.items() 213s ^^^^^^^ 213s AttributeError: 'BranchCacheV2' object has no attribute 'items' 213s fatal: remote helper 'hg' aborted session 213s not ok 12 - remote cloning 213s # 213s # test_when_finished "rm -rf gitrepo*" && 213s # 213s # ( 213s # hg init hgrepo && 213s # cd hgrepo && 213s # echo zero > content && 213s # hg add content && 213s # hg commit -m zero 213s # ) && 213s # 213s # git clone "hg::hgrepo" gitrepo && 213s # check gitrepo HEAD zero 213s # 213s Cloning into 'gitrepo'... 213s 213s expecting success: 213s test_when_finished "rm -rf gitrepo*" && 213s 213s ( 213s git clone "hg::hgrepo" gitrepo && 213s mv gitrepo gitrepo2 && 213s cd gitrepo2 && 213s git fetch 213s ) 213s 214s /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. 214s or locale.getdefaultlocale()[1] 214s WARNING: capability_push is disabled, only do so when really sure 214s WARNING: various enhanced features might fail in subtle ways 215s Traceback (most recent call last): 215s File "/usr/bin/git-remote-hg", line 2013, in 215s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 215s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 215s File "/usr/bin/git-remote-hg", line 1975, in main 215s repo, branchmap = get_repo(url, alias) 215s ~~~~~~~~^^^^^^^^^^^^ 215s File "/usr/bin/git-remote-hg", line 666, in get_repo 215s for branch, branch_heads in compat.iteritems(branchmap): 215s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 215s File "/usr/bin/git-remote-hg", line 63, in iteritems 215s return d.items() 215s ^^^^^^^ 215s AttributeError: 'BranchCacheV2' object has no attribute 'items' 215s fatal: remote helper 'hg' aborted session 215s not ok 13 - moving remote clone 215s # 215s # test_when_finished "rm -rf gitrepo*" && 215s # 215s # ( 215s # git clone "hg::hgrepo" gitrepo && 215s # mv gitrepo gitrepo2 && 215s # cd gitrepo2 && 215s # git fetch 215s # ) 215s # 215s 215s expecting success: 215s test_when_finished "rm -rf gitrepo*" && 215s 215s ( 215s cd hgrepo && 215s hg bookmark devel 215s ) && 215s 215s ( 215s git clone "hg::hgrepo" gitrepo && 215s cd gitrepo && 215s git checkout --quiet devel && 215s echo devel > content && 215s git commit -a -m devel && 215s git push --quiet 215s ) && 215s 215s check_bookmark hgrepo devel devel 215s 215s Cloning into 'gitrepo'... 216s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 216s or locale.getdefaultlocale()[1] 216s WARNING: capability_push is disabled, only do so when really sure 216s WARNING: various enhanced features might fail in subtle ways 217s Traceback (most recent call last): 217s File "/usr/bin/git-remote-hg", line 2013, in 217s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 217s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 217s File "/usr/bin/git-remote-hg", line 1975, in main 217s repo, branchmap = get_repo(url, alias) 217s ~~~~~~~~^^^^^^^^^^^^ 217s File "/usr/bin/git-remote-hg", line 666, in get_repo 217s for branch, branch_heads in compat.iteritems(branchmap): 217s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 217s File "/usr/bin/git-remote-hg", line 63, in iteritems 217s return d.items() 217s ^^^^^^^ 217s AttributeError: 'BranchCacheV2' object has no attribute 'items' 217s fatal: remote helper 'hg' aborted session 217s not ok 14 - remote update bookmark 217s # 217s # test_when_finished "rm -rf gitrepo*" && 217s # 217s # ( 217s # cd hgrepo && 217s # hg bookmark devel 217s # ) && 217s # 217s # ( 217s # git clone "hg::hgrepo" gitrepo && 217s # cd gitrepo && 217s # git checkout --quiet devel && 217s # echo devel > content && 217s # git commit -a -m devel && 217s # git push --quiet 217s # ) && 217s # 217s # check_bookmark hgrepo devel devel 217s # 217s 217s expecting success: 217s test_when_finished "rm -rf gitrepo*" && 217s 217s ( 217s git clone "hg::hgrepo" gitrepo && 217s cd gitrepo && 217s git checkout --quiet -b feature-b && 217s echo feature-b > content && 217s git commit -a -m feature-b && 217s git push --quiet origin feature-b 217s ) && 217s 217s check_bookmark hgrepo feature-b feature-b 217s 217s Cloning into 'gitrepo'... 217s /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. 217s or locale.getdefaultlocale()[1] 217s WARNING: capability_push is disabled, only do so when really sure 217s WARNING: various enhanced features might fail in subtle ways 218s Traceback (most recent call last): 218s File "/usr/bin/git-remote-hg", line 2013, in 218s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 218s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 218s File "/usr/bin/git-remote-hg", line 1975, in main 218s repo, branchmap = get_repo(url, alias) 218s ~~~~~~~~^^^^^^^^^^^^ 218s File "/usr/bin/git-remote-hg", line 666, in get_repo 218s for branch, branch_heads in compat.iteritems(branchmap): 218s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 218s File "/usr/bin/git-remote-hg", line 63, in iteritems 218s return d.items() 218s ^^^^^^^ 218s AttributeError: 'BranchCacheV2' object has no attribute 'items' 218s fatal: remote helper 'hg' aborted session 219s not ok 15 - remote new bookmark 219s # 219s # test_when_finished "rm -rf gitrepo*" && 219s # 219s # ( 219s # git clone "hg::hgrepo" gitrepo && 219s # cd gitrepo && 219s # git checkout --quiet -b feature-b && 219s # echo feature-b > content && 219s # git commit -a -m feature-b && 219s # git push --quiet origin feature-b 219s # ) && 219s # 219s # check_bookmark hgrepo feature-b feature-b 219s # 219s 219s expecting success: 219s test_when_finished "rm -rf gitrepo*" && 219s 219s git clone "hg::hgrepo" gitrepo && 219s 219s ( 219s cd hgrepo && 219s hg checkout default && 219s echo bump > content && 219s hg commit -m bump 219s ) && 219s 219s ( 219s cd gitrepo && 219s echo diverge > content && 219s git commit -a -m diverged && 219s check_push 1 <<-\EOF 219s master:non-fast-forward 219s EOF 219s ) && 219s 219s check_branch hgrepo default bump 219s 219s Cloning into 'gitrepo'... 219s /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. 219s or locale.getdefaultlocale()[1] 219s WARNING: capability_push is disabled, only do so when really sure 219s WARNING: various enhanced features might fail in subtle ways 220s Traceback (most recent call last): 220s File "/usr/bin/git-remote-hg", line 2013, in 220s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 220s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 220s File "/usr/bin/git-remote-hg", line 1975, in main 220s repo, branchmap = get_repo(url, alias) 220s ~~~~~~~~^^^^^^^^^^^^ 220s File "/usr/bin/git-remote-hg", line 666, in get_repo 220s for branch, branch_heads in compat.iteritems(branchmap): 220s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 220s File "/usr/bin/git-remote-hg", line 63, in iteritems 220s return d.items() 220s ^^^^^^^ 220s AttributeError: 'BranchCacheV2' object has no attribute 'items' 220s fatal: remote helper 'hg' aborted session 220s not ok 16 - remote push diverged 220s # 220s # test_when_finished "rm -rf gitrepo*" && 220s # 220s # git clone "hg::hgrepo" gitrepo && 220s # 220s # ( 220s # cd hgrepo && 220s # hg checkout default && 220s # echo bump > content && 220s # hg commit -m bump 220s # ) && 220s # 220s # ( 220s # cd gitrepo && 220s # echo diverge > content && 220s # git commit -a -m diverged && 220s # check_push 1 <<-\EOF 220s # master:non-fast-forward 220s # EOF 220s # ) && 220s # 220s # check_branch hgrepo default bump 220s # 220s 220s expecting success: 220s test_when_finished "rm -rf gitrepo*" && 220s 220s ( 220s cd hgrepo && 220s hg checkout tip^ && 220s hg bookmark diverge 220s ) && 220s 220s git clone "hg::hgrepo" gitrepo && 220s 220s ( 220s cd hgrepo && 220s echo "bump bookmark" > content && 220s hg commit -m "bump bookmark" 220s ) && 220s 220s ( 220s cd gitrepo && 220s git checkout --quiet diverge && 220s echo diverge > content && 220s git commit -a -m diverge && 220s check_push 1 <<-\EOF 220s diverge:non-fast-forward 220s EOF 220s ) && 220s 220s check_bookmark hgrepo diverge "bump bookmark" 220s 220s abort: empty revision set 220s not ok 17 - remote update bookmark diverge 220s # 220s # test_when_finished "rm -rf gitrepo*" && 220s # 220s # ( 220s # cd hgrepo && 220s # hg checkout tip^ && 220s # hg bookmark diverge 220s # ) && 220s # 220s # git clone "hg::hgrepo" gitrepo && 220s # 220s # ( 220s # cd hgrepo && 220s # echo "bump bookmark" > content && 220s # hg commit -m "bump bookmark" 220s # ) && 220s # 220s # ( 220s # cd gitrepo && 220s # git checkout --quiet diverge && 220s # echo diverge > content && 220s # git commit -a -m diverge && 220s # check_push 1 <<-\EOF 220s # diverge:non-fast-forward 220s # EOF 220s # ) && 220s # 220s # check_bookmark hgrepo diverge "bump bookmark" 220s # 220s 220s expecting success: 220s test_when_finished "rm -rf gitrepo*" && 220s 220s ( 220s git clone "hg::hgrepo" gitrepo && 220s cd gitrepo && 220s git checkout --quiet -b feature-c HEAD^ && 220s echo feature-c > content && 220s git commit -a -m feature-c && 220s git push --quiet origin feature-c 220s ) && 220s 220s check_bookmark hgrepo feature-c feature-c 220s 220s Cloning into 'gitrepo'... 221s /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. 221s or locale.getdefaultlocale()[1] 221s WARNING: capability_push is disabled, only do so when really sure 221s WARNING: various enhanced features might fail in subtle ways 222s Traceback (most recent call last): 222s File "/usr/bin/git-remote-hg", line 2013, in 222s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 222s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 222s File "/usr/bin/git-remote-hg", line 1975, in main 222s repo, branchmap = get_repo(url, alias) 222s ~~~~~~~~^^^^^^^^^^^^ 222s File "/usr/bin/git-remote-hg", line 666, in get_repo 222s for branch, branch_heads in compat.iteritems(branchmap): 222s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 222s File "/usr/bin/git-remote-hg", line 63, in iteritems 222s return d.items() 222s ^^^^^^^ 222s AttributeError: 'BranchCacheV2' object has no attribute 'items' 222s fatal: remote helper 'hg' aborted session 222s not ok 18 - remote new bookmark multiple branch head 222s # 222s # test_when_finished "rm -rf gitrepo*" && 222s # 222s # ( 222s # git clone "hg::hgrepo" gitrepo && 222s # cd gitrepo && 222s # git checkout --quiet -b feature-c HEAD^ && 222s # echo feature-c > content && 222s # git commit -a -m feature-c && 222s # git push --quiet origin feature-c 222s # ) && 222s # 222s # check_bookmark hgrepo feature-c feature-c 222s # 222s 222s checking known breakage: 222s test_when_finished "rm -rf gitrepo hgrepo" && 222s 222s ( 222s hg init hgrepo && 222s cd hgrepo && 222s echo zero > content && 222s hg add content && 222s hg commit -m zero 222s ) && 222s 222s git clone "hg::hgrepo" gitrepo && 222s 222s ( 222s cd gitrepo && 222s cp content content-copy && 222s # recent git-fast-export is (too) picky in recognizing copies 222s # although git-log is not as picky; 222s # since https://github.com/git/git/commit/8096e1d385660c159d9d47e69b2be63cf22e4f31 222s # a copy is only marked if source filed not modified as well 222s # (though destination file can be modified) 222s echo one >> content-copy && 222s git add content content-copy && 222s git commit -m copy && 222s git mv content-copy content-moved 222s git commit -m moved && 222s git push origin master 222s ) && 222s 222s ( 222s hg -R hgrepo update && 222s test_cmp gitrepo/content hgrepo/content 222s test_cmp gitrepo/content-moved hgrepo/content-moved 222s cd hgrepo && 222s test `hg log -f content-moved | grep -c changeset` -eq 3 222s ) 222s 223s Cloning into 'gitrepo'... 223s /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. 223s or locale.getdefaultlocale()[1] 223s WARNING: capability_push is disabled, only do so when really sure 223s WARNING: various enhanced features might fail in subtle ways 224s Traceback (most recent call last): 224s File "/usr/bin/git-remote-hg", line 2013, in 224s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 224s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 224s File "/usr/bin/git-remote-hg", line 1975, in main 224s repo, branchmap = get_repo(url, alias) 224s ~~~~~~~~^^^^^^^^^^^^ 224s File "/usr/bin/git-remote-hg", line 666, in get_repo 224s for branch, branch_heads in compat.iteritems(branchmap): 224s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 224s File "/usr/bin/git-remote-hg", line 63, in iteritems 224s return d.items() 224s ^^^^^^^ 224s AttributeError: 'BranchCacheV2' object has no attribute 'items' 225s fatal: remote helper 'hg' aborted session 225s not ok 19 - push commits with copy and rename # TODO known breakage 225s 225s expecting success: 225s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 225s 225s LC_ALL=C.UTF-8 225s export LC_ALL 225s 225s ( 225s hg init hgrepo && 225s cd hgrepo && 225s 225s echo test >> "æ rø" && 225s hg add "æ rø" && 225s echo test >> "ø~?" && 225s hg add "ø~?" && 225s hg commit -m add-utf-8 && 225s echo test >> "æ rø" && 225s hg commit -m test-utf-8 && 225s hg rm "ø~?" && 225s hg mv "æ rø" "ø~?" && 225s hg commit -m hg-mv-utf-8 225s ) && 225s 225s ( 225s git clone "hg::hgrepo" gitrepo && 225s cd gitrepo && 225s git -c core.quotepath=false ls-files > ../actual 225s ) && 225s echo "ø~?" > expected && 225s test_cmp expected actual 225s 225s warning: filename contains '?', which is reserved on Windows: 'ø~?' 226s warning: filename contains '?', which is reserved on Windows: 'ø~?' 227s Cloning into 'gitrepo'... 227s WARNING: capability_push is disabled, only do so when really sure 227s WARNING: various enhanced features might fail in subtle ways 228s Traceback (most recent call last): 228s File "/usr/bin/git-remote-hg", line 2013, in 228s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 228s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 228s File "/usr/bin/git-remote-hg", line 1975, in main 228s repo, branchmap = get_repo(url, alias) 228s ~~~~~~~~^^^^^^^^^^^^ 228s File "/usr/bin/git-remote-hg", line 666, in get_repo 228s for branch, branch_heads in compat.iteritems(branchmap): 228s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 228s File "/usr/bin/git-remote-hg", line 63, in iteritems 228s return d.items() 228s ^^^^^^^ 228s AttributeError: 'BranchCacheV2' object has no attribute 'items' 228s fatal: remote helper 'hg' aborted session 229s not ok 20 - fetch special filenames 229s # 229s # test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 229s # 229s # LC_ALL=C.UTF-8 229s # export LC_ALL 229s # 229s # ( 229s # hg init hgrepo && 229s # cd hgrepo && 229s # 229s # echo test >> "æ rø" && 229s # hg add "æ rø" && 229s # echo test >> "ø~?" && 229s # hg add "ø~?" && 229s # hg commit -m add-utf-8 && 229s # echo test >> "æ rø" && 229s # hg commit -m test-utf-8 && 229s # hg rm "ø~?" && 229s # hg mv "æ rø" "ø~?" && 229s # hg commit -m hg-mv-utf-8 229s # ) && 229s # 229s # ( 229s # git clone "hg::hgrepo" gitrepo && 229s # cd gitrepo && 229s # git -c core.quotepath=false ls-files > ../actual 229s # ) && 229s # echo "ø~?" > expected && 229s # test_cmp expected actual 229s # 229s 229s expecting success: 229s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 229s 229s mkdir -p tmp && cd tmp && 229s 229s LC_ALL=C.UTF-8 229s export LC_ALL 229s 229s ( 229s hg init hgrepo && 229s cd hgrepo && 229s 229s echo one >> content && 229s hg add content && 229s hg commit -m one 229s ) && 229s 229s ( 229s git clone "hg::hgrepo" gitrepo && 229s cd gitrepo && 229s 229s echo test >> "æ rø" && 229s git add "æ rø" && 229s git commit -m utf-8 && 229s 229s git push 229s ) && 229s 229s (cd hgrepo && 229s hg update && 229s hg manifest > ../actual 229s ) && 229s 229s printf "content\næ rø\n" > expected && 229s test_cmp expected actual 229s 229s Cloning into 'gitrepo'... 230s WARNING: capability_push is disabled, only do so when really sure 230s WARNING: various enhanced features might fail in subtle ways 231s Traceback (most recent call last): 231s File "/usr/bin/git-remote-hg", line 2013, in 231s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 231s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 231s File "/usr/bin/git-remote-hg", line 1975, in main 231s repo, branchmap = get_repo(url, alias) 231s ~~~~~~~~^^^^^^^^^^^^ 231s File "/usr/bin/git-remote-hg", line 666, in get_repo 231s for branch, branch_heads in compat.iteritems(branchmap): 231s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 231s File "/usr/bin/git-remote-hg", line 63, in iteritems 231s return d.items() 231s ^^^^^^^ 231s AttributeError: 'BranchCacheV2' object has no attribute 'items' 231s fatal: remote helper 'hg' aborted session 231s not ok 21 - push special filenames 231s # 231s # test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 231s # 231s # mkdir -p tmp && cd tmp && 231s # 231s # LC_ALL=C.UTF-8 231s # export LC_ALL 231s # 231s # ( 231s # hg init hgrepo && 231s # cd hgrepo && 231s # 231s # echo one >> content && 231s # hg add content && 231s # hg commit -m one 231s # ) && 231s # 231s # ( 231s # git clone "hg::hgrepo" gitrepo && 231s # cd gitrepo && 231s # 231s # echo test >> "æ rø" && 231s # git add "æ rø" && 231s # git commit -m utf-8 && 231s # 231s # git push 231s # ) && 231s # 231s # (cd hgrepo && 231s # hg update && 231s # hg manifest > ../actual 231s # ) && 231s # 231s # printf "content\næ rø\n" > expected && 231s # test_cmp expected actual 231s # 231s 231s expecting success: 231s test_when_finished "rm -rf hgrepo gitrepo*" && 231s 231s setup_big_push 231s 231s ( 231s cd gitrepo && 231s 231s if test "$CAPABILITY_PUSH" = "t" 231s then 231s # cap push handles refs one by one 231s # so it will still correctly report several ok 231s check_push 1 --all <<-\EOF 231s master 231s good_bmark 231s branches/good_branch 231s new_bmark:new 231s branches/new_branch:new 231s bad_bmark1:non-fast-forward 231s bad_bmark2:non-fast-forward 231s branches/bad_branch:non-fast-forward 231s EOF 231s else 231s check_push 1 --all <<-\EOF 231s bad_bmark1:non-fast-forward 231s bad_bmark2:non-fast-forward 231s branches/bad_branch:non-fast-forward 231s EOF 231s fi 231s ) && 231s 231s if test "$CAPABILITY_PUSH" = "t" 231s then 231s # cap push handles refs one by one 231s # so it will push all requested it can 231s check_branch hgrepo default six && 231s check_branch hgrepo good_branch eight && 231s check_branch hgrepo bad_branch "bad branch" && 231s check_branch hgrepo new_branch ten && 231s check_bookmark hgrepo good_bmark three && 231s check_bookmark hgrepo bad_bmark1 one && 231s check_bookmark hgrepo bad_bmark2 one && 231s check_bookmark hgrepo new_bmark six && 231s check gitrepo origin/master two 231s else 231s check_branch hgrepo default one && 231s check_branch hgrepo good_branch "good branch" && 231s check_branch hgrepo bad_branch "bad branch" && 231s check_branch hgrepo new_branch && 231s check_bookmark hgrepo good_bmark one && 231s check_bookmark hgrepo bad_bmark1 one && 231s check_bookmark hgrepo bad_bmark2 one && 231s check_bookmark hgrepo new_bmark && 231s check gitrepo origin/master one 231s fi 231s 234s Cloning into 'gitrepo'... 235s /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. 235s or locale.getdefaultlocale()[1] 235s WARNING: capability_push is disabled, only do so when really sure 235s WARNING: various enhanced features might fail in subtle ways 236s Traceback (most recent call last): 236s File "/usr/bin/git-remote-hg", line 2013, in 236s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 236s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 236s File "/usr/bin/git-remote-hg", line 1975, in main 236s repo, branchmap = get_repo(url, alias) 236s ~~~~~~~~^^^^^^^^^^^^ 236s File "/usr/bin/git-remote-hg", line 666, in get_repo 236s for branch, branch_heads in compat.iteritems(branchmap): 236s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 236s File "/usr/bin/git-remote-hg", line 63, in iteritems 236s return d.items() 236s ^^^^^^^ 236s AttributeError: 'BranchCacheV2' object has no attribute 'items' 236s not ok 22 - remote big push 236s # 236s # test_when_finished "rm -rf hgrepo gitrepo*" && 236s # 236s # setup_big_push 236s # 236s # ( 236s # cd gitrepo && 236s # 236s # if test "$CAPABILITY_PUSH" = "t" 236s # then 236s # # cap push handles refs one by one 236s # # so it will still correctly report several ok 236s # check_push 1 --all <<-\EOF 236s # master 236s # good_bmark 236s # branches/good_branch 236s # new_bmark:new 236s # branches/new_branch:new 236s # bad_bmark1:non-fast-forward 236s # bad_bmark2:non-fast-forward 236s # branches/bad_branch:non-fast-forward 236s # EOF 236s # else 236s # check_push 1 --all <<-\EOF 236s # bad_bmark1:non-fast-forward 236s # bad_bmark2:non-fast-forward 236s # branches/bad_branch:non-fast-forward 236s # EOF 236s # fi 236s # ) && 236s # 236s # if test "$CAPABILITY_PUSH" = "t" 236s # then 236s # # cap push handles refs one by one 236s # # so it will push all requested it can 236s # check_branch hgrepo default six && 236s # check_branch hgrepo good_branch eight && 236s # check_branch hgrepo bad_branch "bad branch" && 236s # check_branch hgrepo new_branch ten && 236s # check_bookmark hgrepo good_bmark three && 236s # check_bookmark hgrepo bad_bmark1 one && 236s # check_bookmark hgrepo bad_bmark2 one && 236s # check_bookmark hgrepo new_bmark six && 236s # check gitrepo origin/master two 236s # else 236s # check_branch hgrepo default one && 236s # check_branch hgrepo good_branch "good branch" && 236s # check_branch hgrepo bad_branch "bad branch" && 236s # check_branch hgrepo new_branch && 236s # check_bookmark hgrepo good_bmark one && 236s # check_bookmark hgrepo bad_bmark1 one && 236s # check_bookmark hgrepo bad_bmark2 one && 236s # check_bookmark hgrepo new_bmark && 236s # check gitrepo origin/master one 236s # fi 236s # 236s 236s expecting success: 236s test_when_finished "rm -rf hgrepo gitrepo*" && 236s 236s ( 236s hg init hgrepo && 236s cd hgrepo && 236s echo zero > content && 236s hg add content && 236s hg commit -m zero && 236s hg bookmark bad_bmark && 236s hg bookmark good_bmark && 236s hg bookmark -i good_bmark && 236s hg -q branch good_branch && 236s echo "good branch" > content && 236s hg commit -m "good branch" && 236s hg -q branch bad_branch && 236s echo "bad branch" > content && 236s hg commit -m "bad branch" 236s ) && 236s 236s git clone "hg::hgrepo" gitrepo && 236s 236s ( 236s cd hgrepo && 236s hg bookmark -f bad_bmark && 236s echo update_bmark > content && 236s hg commit -m "update bmark" 236s ) && 236s 236s ( 236s cd gitrepo && 236s echo two > content && 236s git commit -q -a -m two && 236s 236s git checkout -q good_bmark && 236s echo three > content && 236s git commit -q -a -m three && 236s 236s git checkout -q bad_bmark && 236s echo four > content && 236s git commit -q -a -m four && 236s 236s git checkout -q branches/bad_branch && 236s echo five > content && 236s git commit -q -a -m five && 236s 236s if test "$CAPABILITY_PUSH" = "t" 236s then 236s check_push 1 --all <<-\EOF 236s master 236s good_bmark 236s bad_bmark:non-fast-forward 236s branches/bad_branch:non-fast-forward 236s EOF 236s else 236s # cap export now only report error cases 236s check_push 1 --all <<-\EOF 236s bad_bmark:non-fast-forward 236s branches/bad_branch:non-fast-forward 236s EOF 236s fi && 236s 236s git fetch && 236s 236s if test "$CAPABILITY_PUSH" = "t" 236s then 236s # cap push handles refs one by one 236s # so it will already have pushed some above previously 236s # (and master is a fake one that jumps around a bit) 236s check_push 1 --all <<-\EOF 236s bad_bmark:non-fast-forward 236s branches/bad_branch:non-fast-forward 236s EOF 236s else 236s # cap export now only report error cases 236s check_push 1 --all <<-\EOF 236s bad_bmark:non-fast-forward 236s branches/bad_branch:non-fast-forward 236s EOF 236s fi 236s ) 236s 236s fatal: remote helper 'hg' aborted session 236s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 239s Cloning into 'gitrepo'... 239s /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. 239s or locale.getdefaultlocale()[1] 239s WARNING: capability_push is disabled, only do so when really sure 239s WARNING: various enhanced features might fail in subtle ways 240s Traceback (most recent call last): 240s File "/usr/bin/git-remote-hg", line 2013, in 240s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 240s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 240s File "/usr/bin/git-remote-hg", line 1975, in main 240s repo, branchmap = get_repo(url, alias) 240s ~~~~~~~~^^^^^^^^^^^^ 240s File "/usr/bin/git-remote-hg", line 666, in get_repo 240s for branch, branch_heads in compat.iteritems(branchmap): 240s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 240s File "/usr/bin/git-remote-hg", line 63, in iteritems 240s return d.items() 240s ^^^^^^^ 240s AttributeError: 'BranchCacheV2' object has no attribute 'items' 240s fatal: remote helper 'hg' aborted session 240s not ok 23 - remote big push non fast forward 240s # 240s # test_when_finished "rm -rf hgrepo gitrepo*" && 240s # 240s # ( 240s # hg init hgrepo && 240s # cd hgrepo && 240s # echo zero > content && 240s # hg add content && 240s # hg commit -m zero && 240s # hg bookmark bad_bmark && 240s # hg bookmark good_bmark && 240s # hg bookmark -i good_bmark && 240s # hg -q branch good_branch && 240s # echo "good branch" > content && 240s # hg commit -m "good branch" && 240s # hg -q branch bad_branch && 240s # echo "bad branch" > content && 240s # hg commit -m "bad branch" 240s # ) && 240s # 240s # git clone "hg::hgrepo" gitrepo && 240s # 240s # ( 240s # cd hgrepo && 240s # hg bookmark -f bad_bmark && 240s # echo update_bmark > content && 240s # hg commit -m "update bmark" 240s # ) && 240s # 240s # ( 240s # cd gitrepo && 240s # echo two > content && 240s # git commit -q -a -m two && 240s # 240s # git checkout -q good_bmark && 240s # echo three > content && 240s # git commit -q -a -m three && 240s # 240s # git checkout -q bad_bmark && 240s # echo four > content && 240s # git commit -q -a -m four && 240s # 240s # git checkout -q branches/bad_branch && 240s # echo five > content && 240s # git commit -q -a -m five && 240s # 240s # if test "$CAPABILITY_PUSH" = "t" 240s # then 240s # check_push 1 --all <<-\EOF 240s # master 240s # good_bmark 240s # bad_bmark:non-fast-forward 240s # branches/bad_branch:non-fast-forward 240s # EOF 240s # else 240s # # cap export now only report error cases 240s # check_push 1 --all <<-\EOF 240s # bad_bmark:non-fast-forward 240s # branches/bad_branch:non-fast-forward 240s # EOF 240s # fi && 240s # 240s # git fetch && 240s # 240s # if test "$CAPABILITY_PUSH" = "t" 240s # then 240s # # cap push handles refs one by one 240s # # so it will already have pushed some above previously 240s # # (and master is a fake one that jumps around a bit) 240s # check_push 1 --all <<-\EOF 240s # bad_bmark:non-fast-forward 240s # branches/bad_branch:non-fast-forward 240s # EOF 240s # else 240s # # cap export now only report error cases 240s # check_push 1 --all <<-\EOF 240s # bad_bmark:non-fast-forward 240s # branches/bad_branch:non-fast-forward 240s # EOF 240s # fi 240s # ) 240s # 240s 240s expecting success: 240s test_when_finished "rm -rf hgrepo gitrepo*" && 240s 240s setup_big_push 240s 240s ( 240s cd gitrepo && 240s 240s if test "$CAPABILITY_PUSH" = "t" 240s then 240s check_push 0 --force --all <<-\EOF 240s master:forced-update 240s good_bmark:forced-update 240s branches/good_branch:forced-update 240s new_bmark:new 240s branches/new_branch:new 240s bad_bmark1:forced-update 240s bad_bmark2:forced-update 240s branches/bad_branch:forced-update 240s EOF 240s else 240s check_push 0 --force --all <<-\EOF 240s master 240s good_bmark 240s branches/good_branch 240s new_bmark:new 240s branches/new_branch:new 240s bad_bmark1:forced-update 240s bad_bmark2:forced-update 240s branches/bad_branch:forced-update 240s EOF 240s fi 240s ) && 240s 240s check gitrepo origin/master two && 240s check_branch hgrepo good_branch eight && 240s check_branch hgrepo bad_branch nine && 240s check_branch hgrepo new_branch ten && 240s check_bookmark hgrepo good_bmark three && 240s check_bookmark hgrepo bad_bmark1 four && 240s check_bookmark hgrepo bad_bmark2 five && 240s check_bookmark hgrepo new_bmark six 240s 243s Cloning into 'gitrepo'... 244s /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. 244s or locale.getdefaultlocale()[1] 244s WARNING: capability_push is disabled, only do so when really sure 244s WARNING: various enhanced features might fail in subtle ways 245s Traceback (most recent call last): 245s File "/usr/bin/git-remote-hg", line 2013, in 245s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 245s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 245s File "/usr/bin/git-remote-hg", line 1975, in main 245s repo, branchmap = get_repo(url, alias) 245s ~~~~~~~~^^^^^^^^^^^^ 245s File "/usr/bin/git-remote-hg", line 666, in get_repo 245s for branch, branch_heads in compat.iteritems(branchmap): 245s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 245s File "/usr/bin/git-remote-hg", line 63, in iteritems 245s return d.items() 245s ^^^^^^^ 245s AttributeError: 'BranchCacheV2' object has no attribute 'items' 245s fatal: remote helper 'hg' aborted session 245s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 245s not ok 24 - remote big push force 245s # 245s # test_when_finished "rm -rf hgrepo gitrepo*" && 245s # 245s # setup_big_push 245s # 245s # ( 245s # cd gitrepo && 245s # 245s # if test "$CAPABILITY_PUSH" = "t" 245s # then 245s # check_push 0 --force --all <<-\EOF 245s # master:forced-update 245s # good_bmark:forced-update 245s # branches/good_branch:forced-update 245s # new_bmark:new 245s # branches/new_branch:new 245s # bad_bmark1:forced-update 245s # bad_bmark2:forced-update 245s # branches/bad_branch:forced-update 245s # EOF 245s # else 245s # check_push 0 --force --all <<-\EOF 245s # master 245s # good_bmark 245s # branches/good_branch 245s # new_bmark:new 245s # branches/new_branch:new 245s # bad_bmark1:forced-update 245s # bad_bmark2:forced-update 245s # branches/bad_branch:forced-update 245s # EOF 245s # fi 245s # ) && 245s # 245s # check gitrepo origin/master two && 245s # check_branch hgrepo good_branch eight && 245s # check_branch hgrepo bad_branch nine && 245s # check_branch hgrepo new_branch ten && 245s # check_bookmark hgrepo good_bmark three && 245s # check_bookmark hgrepo bad_bmark1 four && 245s # check_bookmark hgrepo bad_bmark2 five && 245s # check_bookmark hgrepo new_bmark six 245s # 245s 245s expecting success: 245s test_when_finished "rm -rf hgrepo gitrepo*" && 245s 245s setup_big_push 245s 245s ( 245s cd gitrepo && 245s 245s if test "$CAPABILITY_PUSH" = "t" 245s then 245s # cap push handles refs one by one 245s # so it will still correctly report several ok 245s check_push 1 --dry-run --all <<-\EOF 245s master 245s good_bmark 245s branches/good_branch 245s new_bmark:new 245s branches/new_branch:new 245s bad_bmark1:non-fast-forward 245s bad_bmark2:non-fast-forward 245s branches/bad_branch:non-fast-forward 245s EOF 245s else 245s check_push 1 --dry-run --all <<-\EOF 245s bad_bmark1:non-fast-forward 245s bad_bmark2:non-fast-forward 245s branches/bad_branch:non-fast-forward 245s EOF 245s fi && 245s 245s check_push 0 --dry-run master good_bmark new_bmark branches/good_branch branches/new_branch <<-\EOF 245s master 245s good_bmark 245s branches/good_branch 245s new_bmark:new 245s branches/new_branch:new 245s EOF 245s ) && 245s 245s check gitrepo origin/master one && 245s check_branch hgrepo default one && 245s check_branch hgrepo good_branch "good branch" && 245s check_branch hgrepo bad_branch "bad branch" && 245s check_branch hgrepo new_branch && 245s check_bookmark hgrepo good_bmark one && 245s check_bookmark hgrepo bad_bmark1 one && 245s check_bookmark hgrepo bad_bmark2 one && 245s check_bookmark hgrepo new_bmark 245s 248s Cloning into 'gitrepo'... 249s /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. 249s or locale.getdefaultlocale()[1] 249s WARNING: capability_push is disabled, only do so when really sure 249s WARNING: various enhanced features might fail in subtle ways 250s Traceback (most recent call last): 250s File "/usr/bin/git-remote-hg", line 2013, in 250s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 250s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 250s File "/usr/bin/git-remote-hg", line 1975, in main 250s repo, branchmap = get_repo(url, alias) 250s ~~~~~~~~^^^^^^^^^^^^ 250s File "/usr/bin/git-remote-hg", line 666, in get_repo 250s for branch, branch_heads in compat.iteritems(branchmap): 250s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 250s File "/usr/bin/git-remote-hg", line 63, in iteritems 250s return d.items() 250s ^^^^^^^ 250s AttributeError: 'BranchCacheV2' object has no attribute 'items' 250s fatal: remote helper 'hg' aborted session 250s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 250s not ok 25 - remote big push dry-run 250s # 250s # test_when_finished "rm -rf hgrepo gitrepo*" && 250s # 250s # setup_big_push 250s # 250s # ( 250s # cd gitrepo && 250s # 250s # if test "$CAPABILITY_PUSH" = "t" 250s # then 250s # # cap push handles refs one by one 250s # # so it will still correctly report several ok 250s # check_push 1 --dry-run --all <<-\EOF 250s # master 250s # good_bmark 250s # branches/good_branch 250s # new_bmark:new 250s # branches/new_branch:new 250s # bad_bmark1:non-fast-forward 250s # bad_bmark2:non-fast-forward 250s # branches/bad_branch:non-fast-forward 250s # EOF 250s # else 250s # check_push 1 --dry-run --all <<-\EOF 250s # bad_bmark1:non-fast-forward 250s # bad_bmark2:non-fast-forward 250s # branches/bad_branch:non-fast-forward 250s # EOF 250s # fi && 250s # 250s # check_push 0 --dry-run master good_bmark new_bmark branches/good_branch branches/new_branch <<-\EOF 250s # master 250s # good_bmark 250s # branches/good_branch 250s # new_bmark:new 250s # branches/new_branch:new 250s # EOF 250s # ) && 250s # 250s # check gitrepo origin/master one && 250s # check_branch hgrepo default one && 250s # check_branch hgrepo good_branch "good branch" && 250s # check_branch hgrepo bad_branch "bad branch" && 250s # check_branch hgrepo new_branch && 250s # check_bookmark hgrepo good_bmark one && 250s # check_bookmark hgrepo bad_bmark1 one && 250s # check_bookmark hgrepo bad_bmark2 one && 250s # check_bookmark hgrepo new_bmark 250s # 250s 250s expecting success: 250s test_when_finished "rm -rf hgrepo gitrepo*" && 250s 250s setup_big_push 250s 250s ( 250s cd gitrepo && 250s 250s if test "$CAPABILITY_PUSH" = "t" 250s then 250s check_push 0 --force --dry-run --all <<-\EOF 250s master:forced-update 250s good_bmark:forced-update 250s branches/good_branch:forced-update 250s new_bmark:new 250s branches/new_branch:new 250s bad_bmark1:forced-update 250s bad_bmark2:forced-update 250s branches/bad_branch:forced-update 250s EOF 250s else 250s check_push 0 --force --dry-run --all <<-\EOF 250s master 250s good_bmark 250s branches/good_branch 250s new_bmark:new 250s branches/new_branch:new 250s bad_bmark1:forced-update 250s bad_bmark2:forced-update 250s branches/bad_branch:forced-update 250s EOF 250s fi 250s ) && 250s 250s check gitrepo origin/master one && 250s check_branch hgrepo default one && 250s check_branch hgrepo good_branch "good branch" && 250s check_branch hgrepo bad_branch "bad branch" && 250s check_branch hgrepo new_branch && 250s check_bookmark hgrepo good_bmark one && 250s check_bookmark hgrepo bad_bmark1 one && 250s check_bookmark hgrepo bad_bmark2 one && 250s check_bookmark hgrepo new_bmark 250s 254s Cloning into 'gitrepo'... 254s /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. 254s or locale.getdefaultlocale()[1] 254s WARNING: capability_push is disabled, only do so when really sure 254s WARNING: various enhanced features might fail in subtle ways 255s Traceback (most recent call last): 255s File "/usr/bin/git-remote-hg", line 2013, in 255s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 255s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 255s File "/usr/bin/git-remote-hg", line 1975, in main 255s repo, branchmap = get_repo(url, alias) 255s ~~~~~~~~^^^^^^^^^^^^ 255s File "/usr/bin/git-remote-hg", line 666, in get_repo 255s for branch, branch_heads in compat.iteritems(branchmap): 255s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 255s File "/usr/bin/git-remote-hg", line 63, in iteritems 255s return d.items() 255s ^^^^^^^ 255s AttributeError: 'BranchCacheV2' object has no attribute 'items' 255s fatal: remote helper 'hg' aborted session 255s /usr/share/sharness/sharness.sh: line 332: cd: gitrepo: No such file or directory 255s not ok 26 - remote big push force dry-run 255s # 255s # test_when_finished "rm -rf hgrepo gitrepo*" && 255s # 255s # setup_big_push 255s # 255s # ( 255s # cd gitrepo && 255s # 255s # if test "$CAPABILITY_PUSH" = "t" 255s # then 255s # check_push 0 --force --dry-run --all <<-\EOF 255s # master:forced-update 255s # good_bmark:forced-update 255s # branches/good_branch:forced-update 255s # new_bmark:new 255s # branches/new_branch:new 255s # bad_bmark1:forced-update 255s # bad_bmark2:forced-update 255s # branches/bad_branch:forced-update 255s # EOF 255s # else 255s # check_push 0 --force --dry-run --all <<-\EOF 255s # master 255s # good_bmark 255s # branches/good_branch 255s # new_bmark:new 255s # branches/new_branch:new 255s # bad_bmark1:forced-update 255s # bad_bmark2:forced-update 255s # branches/bad_branch:forced-update 255s # EOF 255s # fi 255s # ) && 255s # 255s # check gitrepo origin/master one && 255s # check_branch hgrepo default one && 255s # check_branch hgrepo good_branch "good branch" && 255s # check_branch hgrepo bad_branch "bad branch" && 255s # check_branch hgrepo new_branch && 255s # check_bookmark hgrepo good_bmark one && 255s # check_bookmark hgrepo bad_bmark1 one && 255s # check_bookmark hgrepo bad_bmark2 one && 255s # check_bookmark hgrepo new_bmark 255s # 255s 255s expecting success: 255s test_when_finished "rm -rf hgrepo gitrepo*" && 255s 255s ( 255s hg init hgrepo && 255s cd hgrepo && 255s echo zero > content && 255s hg add content && 255s hg commit -m zero && 255s echo one > content && 255s hg commit -m one 255s ) && 255s 255s ( 255s git clone "hg::hgrepo" gitrepo && 255s cd gitrepo && 255s git reset --hard HEAD^ && 255s echo two > content && 255s git commit -a -m two && 255s test_expect_code 1 git push && 255s test_expect_code 1 git push 255s ) 255s 256s Cloning into 'gitrepo'... 257s /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. 257s or locale.getdefaultlocale()[1] 257s WARNING: capability_push is disabled, only do so when really sure 257s WARNING: various enhanced features might fail in subtle ways 258s Traceback (most recent call last): 258s File "/usr/bin/git-remote-hg", line 2013, in 258s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 258s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 258s File "/usr/bin/git-remote-hg", line 1975, in main 258s repo, branchmap = get_repo(url, alias) 258s ~~~~~~~~^^^^^^^^^^^^ 258s File "/usr/bin/git-remote-hg", line 666, in get_repo 258s for branch, branch_heads in compat.iteritems(branchmap): 258s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 258s File "/usr/bin/git-remote-hg", line 63, in iteritems 258s return d.items() 258s ^^^^^^^ 258s AttributeError: 'BranchCacheV2' object has no attribute 'items' 258s fatal: remote helper 'hg' aborted session 258s not ok 27 - remote double failed push 258s # 258s # test_when_finished "rm -rf hgrepo gitrepo*" && 258s # 258s # ( 258s # hg init hgrepo && 258s # cd hgrepo && 258s # echo zero > content && 258s # hg add content && 258s # hg commit -m zero && 258s # echo one > content && 258s # hg commit -m one 258s # ) && 258s # 258s # ( 258s # git clone "hg::hgrepo" gitrepo && 258s # cd gitrepo && 258s # git reset --hard HEAD^ && 258s # echo two > content && 258s # git commit -a -m two && 258s # test_expect_code 1 git push && 258s # test_expect_code 1 git push 258s # ) 258s # 258s 258s expecting success: 258s test_when_finished "rm -rf gitrepo hgrepo" && 258s 258s ( 258s hg init hgrepo && 258s cd hgrepo && 258s echo zero > content && 258s hg add content && 258s hg commit -m zero && 258s echo feature-a > content && 258s hg commit -m feature-a 258s hg bookmark feature-a 258s ) && 258s 258s git clone "hg::hgrepo" gitrepo && 258s check gitrepo origin/feature-a feature-a && 258s 258s ( 258s cd hgrepo && 258s hg bookmark -d feature-a 258s ) && 258s 258s ( 258s cd gitrepo && 258s git fetch --prune origin 258s git branch -a > out && 258s ! grep feature-a out 258s ) 258s 259s Cloning into 'gitrepo'... 260s /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. 260s or locale.getdefaultlocale()[1] 260s WARNING: capability_push is disabled, only do so when really sure 260s WARNING: various enhanced features might fail in subtle ways 261s Traceback (most recent call last): 261s File "/usr/bin/git-remote-hg", line 2013, in 261s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 261s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 261s File "/usr/bin/git-remote-hg", line 1975, in main 261s repo, branchmap = get_repo(url, alias) 261s ~~~~~~~~^^^^^^^^^^^^ 261s File "/usr/bin/git-remote-hg", line 666, in get_repo 261s for branch, branch_heads in compat.iteritems(branchmap): 261s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 261s File "/usr/bin/git-remote-hg", line 63, in iteritems 261s return d.items() 261s ^^^^^^^ 261s AttributeError: 'BranchCacheV2' object has no attribute 'items' 261s fatal: remote helper 'hg' aborted session 261s not ok 28 - fetch prune 261s # 261s # test_when_finished "rm -rf gitrepo hgrepo" && 261s # 261s # ( 261s # hg init hgrepo && 261s # cd hgrepo && 261s # echo zero > content && 261s # hg add content && 261s # hg commit -m zero && 261s # echo feature-a > content && 261s # hg commit -m feature-a 261s # hg bookmark feature-a 261s # ) && 261s # 261s # git clone "hg::hgrepo" gitrepo && 261s # check gitrepo origin/feature-a feature-a && 261s # 261s # ( 261s # cd hgrepo && 261s # hg bookmark -d feature-a 261s # ) && 261s # 261s # ( 261s # cd gitrepo && 261s # git fetch --prune origin 261s # git branch -a > out && 261s # ! grep feature-a out 261s # ) 261s # 261s 261s expecting success: 261s test_when_finished "rm -rf gitrepo hgrepo" && 261s 261s ( 261s hg init hgrepo && 261s cd hgrepo && 261s echo zero > content && 261s hg add content && 261s hg commit -m zero && 261s hg up -r null && 261s echo another > ocontent && 261s hg add ocontent && 261s hg commit -m one 261s ) && 261s 261s # -r 1 acts as master 261s ( 261s git init --bare gitrepo && cd gitrepo && 261s git remote add origin hg::../hgrepo && 261s git fetch origin refs/heads/*:refs/heads/* 261s ) && 261s 261s ( 261s cd hgrepo && 261s hg up 0 && 261s echo two > content && 261s hg commit -m two 261s ) && 261s 261s # now master already exists 261s # -r 2 becomes master head which has rev 0 as ancestor 261s # so when importing (parentless) rev 0, a reset is needed 261s # (to ensure rev 0 is not given a parent commit) 261s ( 261s cd gitrepo && 261s git fetch origin && 261s git log --format="%s" origin/master > ../actual 261s ) && 261s 261s hg -R hgrepo log -r . -f --template "{desc}\n" > expected && 261s test_cmp actual expected 261s 262s 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 263s created new head 263s Initialized empty Git repository in /tmp/autopkgtest.oDh3wW/build.jsk/src/test/trash directory.main/tmp/gitrepo/ 263s /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. 263s or locale.getdefaultlocale()[1] 263s WARNING: capability_push is disabled, only do so when really sure 263s WARNING: various enhanced features might fail in subtle ways 264s Traceback (most recent call last): 264s File "/usr/bin/git-remote-hg", line 2013, in 264s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 264s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 264s File "/usr/bin/git-remote-hg", line 1975, in main 264s repo, branchmap = get_repo(url, alias) 264s ~~~~~~~~^^^^^^^^^^^^ 264s File "/usr/bin/git-remote-hg", line 666, in get_repo 264s for branch, branch_heads in compat.iteritems(branchmap): 264s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 264s File "/usr/bin/git-remote-hg", line 63, in iteritems 264s return d.items() 264s ^^^^^^^ 264s AttributeError: 'BranchCacheV2' object has no attribute 'items' 265s fatal: remote helper 'hg' aborted session 265s not ok 29 - fetch multiple independent histories 265s # 265s # test_when_finished "rm -rf gitrepo hgrepo" && 265s # 265s # ( 265s # hg init hgrepo && 265s # cd hgrepo && 265s # echo zero > content && 265s # hg add content && 265s # hg commit -m zero && 265s # hg up -r null && 265s # echo another > ocontent && 265s # hg add ocontent && 265s # hg commit -m one 265s # ) && 265s # 265s # # -r 1 acts as master 265s # ( 265s # git init --bare gitrepo && cd gitrepo && 265s # git remote add origin hg::../hgrepo && 265s # git fetch origin refs/heads/*:refs/heads/* 265s # ) && 265s # 265s # ( 265s # cd hgrepo && 265s # hg up 0 && 265s # echo two > content && 265s # hg commit -m two 265s # ) && 265s # 265s # # now master already exists 265s # # -r 2 becomes master head which has rev 0 as ancestor 265s # # so when importing (parentless) rev 0, a reset is needed 265s # # (to ensure rev 0 is not given a parent commit) 265s # ( 265s # cd gitrepo && 265s # git fetch origin && 265s # git log --format="%s" origin/master > ../actual 265s # ) && 265s # 265s # hg -R hgrepo log -r . -f --template "{desc}\n" > expected && 265s # test_cmp actual expected 265s # 265s 265s expecting success: 265s test_when_finished "rm -rf gitrepo* hgrepo*" && 265s 265s ( 265s hg init hgrepo && 265s cd hgrepo && 265s echo a > a && 265s hg add a && 265s hg commit -m a && 265s hg bookmark -r null bookmark 265s ) && 265s 265s ( 265s git clone "hg::hgrepo" gitrepo && 265s check gitrepo HEAD a && 265s cd gitrepo && 265s git checkout --quiet -b bookmark && 265s git remote -v && 265s echo b > b && 265s git add b && 265s git commit -m b && 265s git push origin bookmark 265s ) 265s 266s Cloning into 'gitrepo'... 266s /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. 266s or locale.getdefaultlocale()[1] 266s WARNING: capability_push is disabled, only do so when really sure 266s WARNING: various enhanced features might fail in subtle ways 267s Traceback (most recent call last): 267s File "/usr/bin/git-remote-hg", line 2013, in 267s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 267s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 267s File "/usr/bin/git-remote-hg", line 1975, in main 267s repo, branchmap = get_repo(url, alias) 267s ~~~~~~~~^^^^^^^^^^^^ 267s File "/usr/bin/git-remote-hg", line 666, in get_repo 267s for branch, branch_heads in compat.iteritems(branchmap): 267s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 267s File "/usr/bin/git-remote-hg", line 63, in iteritems 267s return d.items() 267s ^^^^^^^ 267s AttributeError: 'BranchCacheV2' object has no attribute 'items' 268s not ok 30 - clone remote with null bookmark, then push 268s # 268s # test_when_finished "rm -rf gitrepo* hgrepo*" && 268s # 268s # ( 268s # hg init hgrepo && 268s # cd hgrepo && 268s # echo a > a && 268s # hg add a && 268s # hg commit -m a && 268s # hg bookmark -r null bookmark 268s # ) && 268s # 268s # ( 268s # git clone "hg::hgrepo" gitrepo && 268s # check gitrepo HEAD a && 268s # cd gitrepo && 268s # git checkout --quiet -b bookmark && 268s # git remote -v && 268s # echo b > b && 268s # git add b && 268s # git commit -m b && 268s # git push origin bookmark 268s # ) 268s # 268s 268s expecting success: 268s test_when_finished "rm -rf hgrepo gitrepo" && 268s 268s ( 268s hg init hgrepo && 268s cd hgrepo && 268s echo one > content && 268s hg add content && 268s hg commit -m one && 268s echo two > content && 268s hg commit -m two 268s ) && 268s 268s git clone "hg::hgrepo" gitrepo && 268s hg -R hgrepo log --template "{node}\n\n" > expected && 268s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 268s test_cmp expected actual 268s 268s fatal: remote helper 'hg' aborted session 269s Cloning into 'gitrepo'... 269s /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. 269s or locale.getdefaultlocale()[1] 269s WARNING: capability_push is disabled, only do so when really sure 269s WARNING: various enhanced features might fail in subtle ways 270s Traceback (most recent call last): 270s File "/usr/bin/git-remote-hg", line 2013, in 270s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 270s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 270s File "/usr/bin/git-remote-hg", line 1975, in main 270s repo, branchmap = get_repo(url, alias) 270s ~~~~~~~~^^^^^^^^^^^^ 270s File "/usr/bin/git-remote-hg", line 666, in get_repo 270s for branch, branch_heads in compat.iteritems(branchmap): 270s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 270s File "/usr/bin/git-remote-hg", line 63, in iteritems 270s return d.items() 270s ^^^^^^^ 270s AttributeError: 'BranchCacheV2' object has no attribute 'items' 270s fatal: remote helper 'hg' aborted session 270s not ok 31 - notes 270s # 270s # test_when_finished "rm -rf hgrepo gitrepo" && 270s # 270s # ( 270s # hg init hgrepo && 270s # cd hgrepo && 270s # echo one > content && 270s # hg add content && 270s # hg commit -m one && 270s # echo two > content && 270s # hg commit -m two 270s # ) && 270s # 270s # git clone "hg::hgrepo" gitrepo && 270s # hg -R hgrepo log --template "{node}\n\n" > expected && 270s # git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 270s # test_cmp expected actual 270s # 270s 270s checking known breakage: 270s test_when_finished "rm -rf hgrepo gitrepo" && 270s 270s ( 270s hg init hgrepo && 270s cd hgrepo && 270s echo one > content && 270s hg add content && 270s hg commit -m one 270s ) && 270s 270s git clone "hg::hgrepo" gitrepo && 270s 270s ( 270s cd gitrepo && 270s echo two > content && 270s git commit -a -m two && 270s git push 270s ) && 270s 270s hg -R hgrepo log --template "{node}\n\n" > expected && 270s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 270s test_cmp expected actual 270s 271s Cloning into 'gitrepo'... 271s /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. 271s or locale.getdefaultlocale()[1] 271s WARNING: capability_push is disabled, only do so when really sure 271s WARNING: various enhanced features might fail in subtle ways 273s Traceback (most recent call last): 273s File "/usr/bin/git-remote-hg", line 2013, in 273s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 273s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 273s File "/usr/bin/git-remote-hg", line 1975, in main 273s repo, branchmap = get_repo(url, alias) 273s ~~~~~~~~^^^^^^^^^^^^ 273s File "/usr/bin/git-remote-hg", line 666, in get_repo 273s for branch, branch_heads in compat.iteritems(branchmap): 273s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 273s File "/usr/bin/git-remote-hg", line 63, in iteritems 273s return d.items() 273s ^^^^^^^ 273s AttributeError: 'BranchCacheV2' object has no attribute 'items' 273s fatal: remote helper 'hg' aborted session 273s not ok 32 - push updates notes # TODO known breakage 273s 273s expecting success: 273s test_when_finished "rm -rf hgrepo gitrepo" && 273s 273s ( 273s hg init hgrepo && 273s cd hgrepo && 273s echo one > content && 273s hg add content && 273s hg commit -m one 273s ) && 273s 273s git clone "hg::hgrepo" gitrepo && 273s 273s ( 273s cd gitrepo && 273s echo two > content && 273s git commit -a -m two && 273s git push origin master && 273s git branch feature-a && 273s git push origin feature-a 273s ) && 273s 273s check_bookmark hgrepo feature-a two 273s 274s Cloning into 'gitrepo'... 274s /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. 274s or locale.getdefaultlocale()[1] 274s WARNING: capability_push is disabled, only do so when really sure 274s WARNING: various enhanced features might fail in subtle ways 275s Traceback (most recent call last): 275s File "/usr/bin/git-remote-hg", line 2013, in 275s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 275s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 275s File "/usr/bin/git-remote-hg", line 1975, in main 275s repo, branchmap = get_repo(url, alias) 275s ~~~~~~~~^^^^^^^^^^^^ 275s File "/usr/bin/git-remote-hg", line 666, in get_repo 275s for branch, branch_heads in compat.iteritems(branchmap): 275s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 275s File "/usr/bin/git-remote-hg", line 63, in iteritems 275s return d.items() 275s ^^^^^^^ 275s AttributeError: 'BranchCacheV2' object has no attribute 'items' 275s fatal: remote helper 'hg' aborted session 275s not ok 33 - push bookmark without changesets 275s # 275s # test_when_finished "rm -rf hgrepo gitrepo" && 275s # 275s # ( 275s # hg init hgrepo && 275s # cd hgrepo && 275s # echo one > content && 275s # hg add content && 275s # hg commit -m one 275s # ) && 275s # 275s # git clone "hg::hgrepo" gitrepo && 275s # 275s # ( 275s # cd gitrepo && 275s # echo two > content && 275s # git commit -a -m two && 275s # git push origin master && 275s # git branch feature-a && 275s # git push origin feature-a 275s # ) && 275s # 275s # check_bookmark hgrepo feature-a two 275s # 275s 275s expecting success: 275s test_when_finished "rm -rf hgrepo gitrepo" && 275s 275s ( 275s hg init hgrepo && 275s cd hgrepo && 275s echo one > content && 275s hg add content && 275s hg commit -m one 275s ) && 275s 275s git clone "hg::hgrepo" gitrepo && 275s 275s (cd hgrepo && hg tag v1.0) && 275s (cd gitrepo && git pull) && 275s 275s echo "v1.0" > expected && 275s git --git-dir=gitrepo/.git tag > actual && 275s test_cmp expected actual 275s 276s Cloning into 'gitrepo'... 276s /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. 276s or locale.getdefaultlocale()[1] 276s WARNING: capability_push is disabled, only do so when really sure 276s WARNING: various enhanced features might fail in subtle ways 278s Traceback (most recent call last): 278s File "/usr/bin/git-remote-hg", line 2013, in 278s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 278s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 278s File "/usr/bin/git-remote-hg", line 1975, in main 278s repo, branchmap = get_repo(url, alias) 278s ~~~~~~~~^^^^^^^^^^^^ 278s File "/usr/bin/git-remote-hg", line 666, in get_repo 278s for branch, branch_heads in compat.iteritems(branchmap): 278s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 278s File "/usr/bin/git-remote-hg", line 63, in iteritems 278s return d.items() 278s ^^^^^^^ 278s AttributeError: 'BranchCacheV2' object has no attribute 'items' 278s not ok 34 - pull tags 278s fatal: remote helper 'hg' aborted session 278s # 278s # test_when_finished "rm -rf hgrepo gitrepo" && 278s # 278s # ( 278s # hg init hgrepo && 278s # cd hgrepo && 278s # echo one > content && 278s # hg add content && 278s # hg commit -m one 278s # ) && 278s # 278s # git clone "hg::hgrepo" gitrepo && 278s # 278s # (cd hgrepo && hg tag v1.0) && 278s # (cd gitrepo && git pull) && 278s # 278s # echo "v1.0" > expected && 278s # git --git-dir=gitrepo/.git tag > actual && 278s # test_cmp expected actual 278s # 278s 278s expecting success: 278s test_when_finished "rm -rf hgrepo gitrepo" && 278s 278s ( 278s hg init hgrepo && 278s cd hgrepo && 278s echo one > content && 278s hg add content && 278s hg commit -m one && 278s hg branch feature && 278s echo two > content && 278s hg commit -m two && 278s hg update default && 278s echo three > content && 278s hg commit -m three 278s ) && 278s 278s ( 278s git clone "hg::hgrepo" gitrepo && 278s cd gitrepo && 278s git merge -m Merge -Xtheirs origin/branches/feature && 278s git push 278s ) && 278s 278s cat > expected <<-EOF && 278s Merge 278s three 278s two 278s one 278s EOF 278s hg -R hgrepo log --template "{desc}\n" > actual && 278s test_cmp expected actual 278s 279s marked working directory as branch feature 279s (branches are permanent and global, did you want a bookmark?) 279s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 280s Cloning into 'gitrepo'... 281s /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. 281s or locale.getdefaultlocale()[1] 281s WARNING: capability_push is disabled, only do so when really sure 281s WARNING: various enhanced features might fail in subtle ways 282s Traceback (most recent call last): 282s File "/usr/bin/git-remote-hg", line 2013, in 282s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 282s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 282s File "/usr/bin/git-remote-hg", line 1975, in main 282s repo, branchmap = get_repo(url, alias) 282s ~~~~~~~~^^^^^^^^^^^^ 282s File "/usr/bin/git-remote-hg", line 666, in get_repo 282s for branch, branch_heads in compat.iteritems(branchmap): 282s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 282s File "/usr/bin/git-remote-hg", line 63, in iteritems 282s return d.items() 282s ^^^^^^^ 282s AttributeError: 'BranchCacheV2' object has no attribute 'items' 282s fatal: remote helper 'hg' aborted session 282s not ok 35 - push merged named branch 282s # 282s # test_when_finished "rm -rf hgrepo gitrepo" && 282s # 282s # ( 282s # hg init hgrepo && 282s # cd hgrepo && 282s # echo one > content && 282s # hg add content && 282s # hg commit -m one && 282s # hg branch feature && 282s # echo two > content && 282s # hg commit -m two && 282s # hg update default && 282s # echo three > content && 282s # hg commit -m three 282s # ) && 282s # 282s # ( 282s # git clone "hg::hgrepo" gitrepo && 282s # cd gitrepo && 282s # git merge -m Merge -Xtheirs origin/branches/feature && 282s # git push 282s # ) && 282s # 282s # cat > expected <<-EOF && 282s # Merge 282s # three 282s # two 282s # one 282s # EOF 282s # hg -R hgrepo log --template "{desc}\n" > actual && 282s # test_cmp expected actual 282s # 282s 282s expecting success: 282s test_when_finished "rm -rf hgrepo gitrepo" && 282s 282s ( 282s hg init hgrepo && 282s cd hgrepo && 282s echo one > content && 282s hg add content && 282s hg commit -m one 282s ) && 282s 282s ( 282s git clone "hg::hgrepo" gitrepo && 282s cd gitrepo && 282s git tag v1.0 && 282s git push --tags 282s ) && 282s 282s echo "C O Mitter " > expected && 282s hg -R hgrepo log --template "{author}\n" -r tip > actual && 282s test_cmp expected actual 282s 283s Cloning into 'gitrepo'... 283s /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. 283s or locale.getdefaultlocale()[1] 283s WARNING: capability_push is disabled, only do so when really sure 283s WARNING: various enhanced features might fail in subtle ways 284s Traceback (most recent call last): 284s File "/usr/bin/git-remote-hg", line 2013, in 284s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 284s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 284s File "/usr/bin/git-remote-hg", line 1975, in main 284s repo, branchmap = get_repo(url, alias) 284s ~~~~~~~~^^^^^^^^^^^^ 284s File "/usr/bin/git-remote-hg", line 666, in get_repo 284s for branch, branch_heads in compat.iteritems(branchmap): 284s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 284s File "/usr/bin/git-remote-hg", line 63, in iteritems 284s return d.items() 284s ^^^^^^^ 284s AttributeError: 'BranchCacheV2' object has no attribute 'items' 284s fatal: remote helper 'hg' aborted session 284s not ok 36 - light tag sets author 284s # 284s # test_when_finished "rm -rf hgrepo gitrepo" && 284s # 284s # ( 284s # hg init hgrepo && 284s # cd hgrepo && 284s # echo one > content && 284s # hg add content && 284s # hg commit -m one 284s # ) && 284s # 284s # ( 284s # git clone "hg::hgrepo" gitrepo && 284s # cd gitrepo && 284s # git tag v1.0 && 284s # git push --tags 284s # ) && 284s # 284s # echo "C O Mitter " > expected && 284s # hg -R hgrepo log --template "{author}\n" -r tip > actual && 284s # test_cmp expected actual 284s # 284s 284s expecting success: 284s test_when_finished "rm -rf hgrepo gitrepo" && 284s 284s ( 284s hg init hgrepo && 284s cd hgrepo && 284s echo one > content && 284s hg add content && 284s hg commit -m one && 284s hg branch feature && 284s echo two > content && 284s hg commit -m two 284s ) && 284s 284s ( 284s git clone "hg::hgrepo" gitrepo && 284s cd gitrepo && 284s git branch && 284s git checkout branches/feature && 284s git tag v1.0 && 284s git push --tags 284s ) && 284s 284s echo feature > expected && 284s hg -R hgrepo log --template="{branch}\n" -r tip > actual && 284s test_cmp expected actual 284s 286s marked working directory as branch feature 286s (branches are permanent and global, did you want a bookmark?) 286s Cloning into 'gitrepo'... 286s /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. 286s or locale.getdefaultlocale()[1] 286s WARNING: capability_push is disabled, only do so when really sure 286s WARNING: various enhanced features might fail in subtle ways 288s Traceback (most recent call last): 288s File "/usr/bin/git-remote-hg", line 2013, in 288s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 288s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 288s File "/usr/bin/git-remote-hg", line 1975, in main 288s repo, branchmap = get_repo(url, alias) 288s ~~~~~~~~^^^^^^^^^^^^ 288s File "/usr/bin/git-remote-hg", line 666, in get_repo 288s for branch, branch_heads in compat.iteritems(branchmap): 288s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 288s File "/usr/bin/git-remote-hg", line 63, in iteritems 288s return d.items() 288s ^^^^^^^ 288s AttributeError: 'BranchCacheV2' object has no attribute 'items' 288s fatal: remote helper 'hg' aborted session 288s not ok 37 - push tag different branch 288s # 288s # test_when_finished "rm -rf hgrepo gitrepo" && 288s # 288s # ( 288s # hg init hgrepo && 288s # cd hgrepo && 288s # echo one > content && 288s # hg add content && 288s # hg commit -m one && 288s # hg branch feature && 288s # echo two > content && 288s # hg commit -m two 288s # ) && 288s # 288s # ( 288s # git clone "hg::hgrepo" gitrepo && 288s # cd gitrepo && 288s # git branch && 288s # git checkout branches/feature && 288s # git tag v1.0 && 288s # git push --tags 288s # ) && 288s # 288s # echo feature > expected && 288s # hg -R hgrepo log --template="{branch}\n" -r tip > actual && 288s # test_cmp expected actual 288s # 288s 288s expecting success: 288s test_when_finished "rm -rf hgrepo gitrepo" && 288s 288s ( 288s hg init hgrepo && 288s cd hgrepo && 288s 288s echo test > test_file && 288s hg add test_file && 288s hg commit -m add && 288s 288s hg rm test_file && 288s hg commit -m remove 288s ) && 288s 288s git clone "hg::hgrepo" gitrepo && 288s check_files gitrepo 288s 289s Cloning into 'gitrepo'... 289s /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. 289s or locale.getdefaultlocale()[1] 289s WARNING: capability_push is disabled, only do so when really sure 289s WARNING: various enhanced features might fail in subtle ways 291s Traceback (most recent call last): 291s File "/usr/bin/git-remote-hg", line 2013, in 291s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 291s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 291s File "/usr/bin/git-remote-hg", line 1975, in main 291s repo, branchmap = get_repo(url, alias) 291s ~~~~~~~~^^^^^^^^^^^^ 291s File "/usr/bin/git-remote-hg", line 666, in get_repo 291s for branch, branch_heads in compat.iteritems(branchmap): 291s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 291s File "/usr/bin/git-remote-hg", line 63, in iteritems 291s return d.items() 291s ^^^^^^^ 291s AttributeError: 'BranchCacheV2' object has no attribute 'items' 291s fatal: remote helper 'hg' aborted session 291s not ok 38 - cloning a removed file works 291s # 291s # test_when_finished "rm -rf hgrepo gitrepo" && 291s # 291s # ( 291s # hg init hgrepo && 291s # cd hgrepo && 291s # 291s # echo test > test_file && 291s # hg add test_file && 291s # hg commit -m add && 291s # 291s # hg rm test_file && 291s # hg commit -m remove 291s # ) && 291s # 291s # git clone "hg::hgrepo" gitrepo && 291s # check_files gitrepo 291s # 291s 291s expecting success: 291s test_when_finished "rm -rf hgrepo gitrepo" && 291s 291s ( 291s hg init hgrepo && 291s cd hgrepo && 291s 291s echo test > dir_or_file && 291s hg add dir_or_file && 291s hg commit -m add && 291s 291s hg rm dir_or_file && 291s mkdir dir_or_file && 291s echo test > dir_or_file/test_file && 291s hg add dir_or_file/test_file && 291s hg commit -m replase 291s ) && 291s 291s git clone "hg::hgrepo" gitrepo && 291s check_files gitrepo "dir_or_file/test_file" 291s 293s Cloning into 'gitrepo'... 293s /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. 293s or locale.getdefaultlocale()[1] 293s WARNING: capability_push is disabled, only do so when really sure 293s WARNING: various enhanced features might fail in subtle ways 294s Traceback (most recent call last): 294s File "/usr/bin/git-remote-hg", line 2013, in 294s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 294s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 294s File "/usr/bin/git-remote-hg", line 1975, in main 294s repo, branchmap = get_repo(url, alias) 294s ~~~~~~~~^^^^^^^^^^^^ 294s File "/usr/bin/git-remote-hg", line 666, in get_repo 294s for branch, branch_heads in compat.iteritems(branchmap): 294s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 294s File "/usr/bin/git-remote-hg", line 63, in iteritems 294s return d.items() 294s ^^^^^^^ 294s AttributeError: 'BranchCacheV2' object has no attribute 'items' 294s fatal: remote helper 'hg' aborted session 294s not ok 39 - cloning a file replaced with a directory 294s # 294s # test_when_finished "rm -rf hgrepo gitrepo" && 294s # 294s # ( 294s # hg init hgrepo && 294s # cd hgrepo && 294s # 294s # echo test > dir_or_file && 294s # hg add dir_or_file && 294s # hg commit -m add && 294s # 294s # hg rm dir_or_file && 294s # mkdir dir_or_file && 294s # echo test > dir_or_file/test_file && 294s # hg add dir_or_file/test_file && 294s # hg commit -m replase 294s # ) && 294s # 294s # git clone "hg::hgrepo" gitrepo && 294s # check_files gitrepo "dir_or_file/test_file" 294s # 294s 294s expecting success: 294s test_when_finished "rm -rf hgrepo gitrepo" && 294s 294s ( 294s hg init hgrepo && 294s cd hgrepo && 294s 294s mkdir dir_or_file && 294s echo test > dir_or_file/test_file && 294s hg add dir_or_file/test_file && 294s hg commit -m add && 294s 294s hg rm dir_or_file/test_file && 294s echo test > dir_or_file && 294s hg add dir_or_file && 294s hg commit -m add && 294s 294s hg rm dir_or_file 294s ) && 294s 294s git clone "hg::hgrepo" gitrepo && 294s check_files gitrepo "dir_or_file" 294s 296s Cloning into 'gitrepo'... 297s /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. 297s or locale.getdefaultlocale()[1] 297s WARNING: capability_push is disabled, only do so when really sure 297s WARNING: various enhanced features might fail in subtle ways 298s Traceback (most recent call last): 298s File "/usr/bin/git-remote-hg", line 2013, in 298s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 298s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 298s File "/usr/bin/git-remote-hg", line 1975, in main 298s repo, branchmap = get_repo(url, alias) 298s ~~~~~~~~^^^^^^^^^^^^ 298s File "/usr/bin/git-remote-hg", line 666, in get_repo 298s for branch, branch_heads in compat.iteritems(branchmap): 298s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 298s File "/usr/bin/git-remote-hg", line 63, in iteritems 298s return d.items() 298s ^^^^^^^ 298s AttributeError: 'BranchCacheV2' object has no attribute 'items' 298s fatal: remote helper 'hg' aborted session 298s not ok 40 - clone replace directory with a file 298s # 298s # test_when_finished "rm -rf hgrepo gitrepo" && 298s # 298s # ( 298s # hg init hgrepo && 298s # cd hgrepo && 298s # 298s # mkdir dir_or_file && 298s # echo test > dir_or_file/test_file && 298s # hg add dir_or_file/test_file && 298s # hg commit -m add && 298s # 298s # hg rm dir_or_file/test_file && 298s # echo test > dir_or_file && 298s # hg add dir_or_file && 298s # hg commit -m add && 298s # 298s # hg rm dir_or_file 298s # ) && 298s # 298s # git clone "hg::hgrepo" gitrepo && 298s # check_files gitrepo "dir_or_file" 298s # 298s 298s expecting success: 298s test_when_finished "rm -rf hgrepo gitrepo" && 298s 298s ( 298s hg init hgrepo && 298s cd hgrepo && 298s 298s touch test.txt && 298s hg add test.txt && 298s hg commit -m master && 298s hg branch parent && 298s echo test >test.txt && 298s hg commit -m test && 298s hg branch parent/child && 298s echo test1 >test.txt && 298s hg commit -m test1 298s ) && 298s 298s git clone -c remote-hg.ignore-name=child "hg::hgrepo" gitrepo && 298s check_files gitrepo "test.txt" 298s 299s marked working directory as branch parent 299s (branches are permanent and global, did you want a bookmark?) 299s marked working directory as branch parent/child 300s Cloning into 'gitrepo'... 300s /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. 300s or locale.getdefaultlocale()[1] 300s WARNING: capability_push is disabled, only do so when really sure 300s WARNING: various enhanced features might fail in subtle ways 301s Traceback (most recent call last): 301s File "/usr/bin/git-remote-hg", line 2013, in 301s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 301s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 301s File "/usr/bin/git-remote-hg", line 1975, in main 301s repo, branchmap = get_repo(url, alias) 301s ~~~~~~~~^^^^^^^^^^^^ 301s File "/usr/bin/git-remote-hg", line 666, in get_repo 301s for branch, branch_heads in compat.iteritems(branchmap): 301s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 301s File "/usr/bin/git-remote-hg", line 63, in iteritems 301s return d.items() 301s ^^^^^^^ 301s AttributeError: 'BranchCacheV2' object has no attribute 'items' 301s fatal: remote helper 'hg' aborted session 301s not ok 41 - clone can ignore invalid refnames 301s # 301s # test_when_finished "rm -rf hgrepo gitrepo" && 301s # 301s # ( 301s # hg init hgrepo && 301s # cd hgrepo && 301s # 301s # touch test.txt && 301s # hg add test.txt && 301s # hg commit -m master && 301s # hg branch parent && 301s # echo test >test.txt && 301s # hg commit -m test && 301s # hg branch parent/child && 301s # echo test1 >test.txt && 301s # hg commit -m test1 301s # ) && 301s # 301s # git clone -c remote-hg.ignore-name=child "hg::hgrepo" gitrepo && 301s # check_files gitrepo "test.txt" 301s # 301s 301s expecting success: 301s test_when_finished "rm -rf hgrepo gitrepo" && 301s 301s ( 301s hg init hgrepo && 301s cd hgrepo && 301s echo one > content && 301s hg add content && 301s hg commit -m one 301s ) && 301s 301s ( 301s git clone "hg::hgrepo" gitrepo && 301s cd gitrepo && 301s git tag -m "Version 1.0" v1.0 && 301s git push --tags 301s ) && 301s 301s cat > expected <<-\EOF && 301s tip:Version 1.0:C O Mitter 301s v1.0:one:H G Wells 301s EOF 301s 301s hg -R hgrepo log --template "{tags}:{desc}:{author}\n" > actual && 301s 301s test_cmp expected actual 301s 302s Cloning into 'gitrepo'... 302s /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. 302s or locale.getdefaultlocale()[1] 302s WARNING: capability_push is disabled, only do so when really sure 302s WARNING: various enhanced features might fail in subtle ways 304s Traceback (most recent call last): 304s File "/usr/bin/git-remote-hg", line 2013, in 304s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 304s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 304s File "/usr/bin/git-remote-hg", line 1975, in main 304s repo, branchmap = get_repo(url, alias) 304s ~~~~~~~~^^^^^^^^^^^^ 304s File "/usr/bin/git-remote-hg", line 666, in get_repo 304s for branch, branch_heads in compat.iteritems(branchmap): 304s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 304s File "/usr/bin/git-remote-hg", line 63, in iteritems 304s return d.items() 304s ^^^^^^^ 304s AttributeError: 'BranchCacheV2' object has no attribute 'items' 304s fatal: remote helper 'hg' aborted session 304s not ok 42 - push annotated tag 304s # 304s # test_when_finished "rm -rf hgrepo gitrepo" && 304s # 304s # ( 304s # hg init hgrepo && 304s # cd hgrepo && 304s # echo one > content && 304s # hg add content && 304s # hg commit -m one 304s # ) && 304s # 304s # ( 304s # git clone "hg::hgrepo" gitrepo && 304s # cd gitrepo && 304s # git tag -m "Version 1.0" v1.0 && 304s # git push --tags 304s # ) && 304s # 304s # cat > expected <<-\EOF && 304s # tip:Version 1.0:C O Mitter 304s # v1.0:one:H G Wells 304s # EOF 304s # 304s # hg -R hgrepo log --template "{tags}:{desc}:{author}\n" > actual && 304s # 304s # test_cmp expected actual 304s # 304s 304s expecting success: 304s test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && 304s 304s hg init hgrepo && 304s 304s ( 304s git clone "hg::hgrepo" gitrepo1 && 304s cd gitrepo1 && 304s echo two >> content && 304s git add content && 304s git commit -m two --date="2016-09-26 00:00:00 -0230" && 304s git push 304s ) && 304s 304s git clone "hg::hgrepo" gitrepo2 && 304s 304s git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && 304s git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && 304s test_cmp expected actual 304s 304s Cloning into 'gitrepo1'... 304s /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. 304s or locale.getdefaultlocale()[1] 304s WARNING: capability_push is disabled, only do so when really sure 304s WARNING: various enhanced features might fail in subtle ways 305s Traceback (most recent call last): 305s File "/usr/bin/git-remote-hg", line 2013, in 305s sys.exit(main([compat.decode_sysarg(a) for a in sys.argv])) 305s ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 305s File "/usr/bin/git-remote-hg", line 1975, in main 305s repo, branchmap = get_repo(url, alias) 305s ~~~~~~~~^^^^^^^^^^^^ 305s File "/usr/bin/git-remote-hg", line 666, in get_repo 305s for branch, branch_heads in compat.iteritems(branchmap): 305s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 305s File "/usr/bin/git-remote-hg", line 63, in iteritems 305s return d.items() 305s ^^^^^^^ 305s AttributeError: 'BranchCacheV2' object has no attribute 'items' 306s fatal: remote helper 'hg' aborted session 306s not ok 43 - timezone issues with negative offsets 306s # 306s # test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && 306s # 306s # hg init hgrepo && 306s # 306s # ( 306s # git clone "hg::hgrepo" gitrepo1 && 306s # cd gitrepo1 && 306s # echo two >> content && 306s # git add content && 306s # git commit -m two --date="2016-09-26 00:00:00 -0230" && 306s # git push 306s # ) && 306s # 306s # git clone "hg::hgrepo" gitrepo2 && 306s # 306s # git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && 306s # git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && 306s # test_cmp expected actual 306s # 306s 306s # still have 2 known breakage(s) 306s # failed 40 among remaining 41 test(s) 306s 1..43 306s make: *** [Makefile:14: main.t] Error 1 306s make: Leaving directory '/tmp/autopkgtest.oDh3wW/build.jsk/src/test' 306s autopkgtest [07:01:06]: test upstream-test-suite: -----------------------] 310s autopkgtest [07:01:10]: test upstream-test-suite: - - - - - - - - - - results - - - - - - - - - - 310s upstream-test-suite FAIL non-zero exit status 2 314s autopkgtest [07:01:14]: @@@@@@@@@@@@@@@@@@@@ summary 314s upstream-test-suite FAIL non-zero exit status 2