0s autopkgtest [18:25:25]: starting date and time: 2025-10-18 18:25:25+0000 0s autopkgtest [18:25:25]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [18:25:25]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.we2pv1g3/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade git-remote-hg --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-s390x-13.secgroup --name adt-resolute-s390x-git-remote-hg-20251018-182525-juju-7f2275-prod-proposed-migration-environment-2-ef1b25df-80cb-4d22-98ad-9b41338fbe08 --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-s390x-git-remote-hg-20251018-182525-juju-7f2275-prod-proposed-migration-environment-2-ef1b25df-80cb-4d22-98ad-9b41338fbe08 from image adt/ubuntu-resolute-s390x-server-20251018.img (UUID c47ab411-f9be-46ce-b861-20d934d06dba)... 56s autopkgtest [18:26:21]: testbed dpkg architecture: s390x 56s autopkgtest [18:26:21]: testbed apt version: 3.1.6ubuntu2 56s autopkgtest [18:26:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 57s autopkgtest [18:26:22]: testbed release detected to be: None 57s autopkgtest [18:26:22]: updating testbed package index (apt update) 58s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [83.3 kB] 58s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 58s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 58s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 58s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [456 kB] 59s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5028 B] 59s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [50.7 kB] 59s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [16.7 kB] 59s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [92.8 kB] 59s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted s390x Packages [940 B] 59s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [314 kB] 59s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [4660 B] 59s Fetched 1023 kB in 1s (746 kB/s) 59s Reading package lists... 60s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 60s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 60s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 60s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 61s Reading package lists... 61s Reading package lists... 61s Building dependency tree... 61s Reading state information... 61s Calculating upgrade... 61s The following packages will be upgraded: 61s apt gir1.2-girepository-2.0 libapt-pkg7.0 libgirepository-1.0-1 61s libpython3-stdlib lto-disabled-list python3 python3-minimal 61s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 61s Need to get 2763 kB of archives. 61s After this operation, 14.3 kB of additional disk space will be used. 61s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3-minimal s390x 3.13.7-2 [27.8 kB] 62s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3 s390x 3.13.7-2 [23.9 kB] 62s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpython3-stdlib s390x 3.13.7-2 [10.6 kB] 62s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x libapt-pkg7.0 s390x 3.1.8ubuntu1 [1144 kB] 62s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x apt s390x 3.1.8ubuntu1 [1432 kB] 63s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x libgirepository-1.0-1 s390x 1.86.0-6 [86.9 kB] 63s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x gir1.2-girepository-2.0 s390x 1.86.0-6 [25.1 kB] 63s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x lto-disabled-list all 71 [12.5 kB] 63s dpkg-preconfigure: unable to re-open stdin: No such file or directory 63s Fetched 2763 kB in 1s (1913 kB/s) 63s (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 ... 56852 files and directories currently installed.) 63s Preparing to unpack .../python3-minimal_3.13.7-2_s390x.deb ... 63s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 63s Setting up python3-minimal (3.13.7-2) ... 63s (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 ... 56852 files and directories currently installed.) 63s Preparing to unpack .../0-python3_3.13.7-2_s390x.deb ... 63s running python pre-rtupdate hooks for python3.13... 63s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 63s Preparing to unpack .../1-libpython3-stdlib_3.13.7-2_s390x.deb ... 63s Unpacking libpython3-stdlib:s390x (3.13.7-2) over (3.13.7-1) ... 63s Preparing to unpack .../2-libapt-pkg7.0_3.1.8ubuntu1_s390x.deb ... 63s Unpacking libapt-pkg7.0:s390x (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 63s Preparing to unpack .../3-apt_3.1.8ubuntu1_s390x.deb ... 63s Unpacking apt (3.1.8ubuntu1) over (3.1.6ubuntu2) ... 64s Preparing to unpack .../4-libgirepository-1.0-1_1.86.0-6_s390x.deb ... 64s Unpacking libgirepository-1.0-1:s390x (1.86.0-6) over (1.84.0-1) ... 64s Preparing to unpack .../5-gir1.2-girepository-2.0_1.86.0-6_s390x.deb ... 64s Unpacking gir1.2-girepository-2.0:s390x (1.86.0-6) over (1.84.0-1) ... 64s Preparing to unpack .../6-lto-disabled-list_71_all.deb ... 64s Unpacking lto-disabled-list (71) over (69) ... 64s Setting up lto-disabled-list (71) ... 64s Setting up libgirepository-1.0-1:s390x (1.86.0-6) ... 64s Setting up libapt-pkg7.0:s390x (3.1.8ubuntu1) ... 64s Setting up libpython3-stdlib:s390x (3.13.7-2) ... 64s Setting up apt (3.1.8ubuntu1) ... 64s Setting up python3 (3.13.7-2) ... 64s running python rtupdate hooks for python3.13... 64s running python post-rtupdate hooks for python3.13... 64s Setting up gir1.2-girepository-2.0:s390x (1.86.0-6) ... 64s Processing triggers for man-db (2.13.1-1) ... 65s Processing triggers for libc-bin (2.42-0ubuntu3) ... 65s autopkgtest [18:26:30]: upgrading testbed (apt dist-upgrade and autopurge) 66s Reading package lists... 66s Building dependency tree... 66s Reading state information... 66s Calculating upgrade... 67s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 67s Reading package lists... 67s Building dependency tree... 67s Reading state information... 67s Solving dependencies... 67s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 68s autopkgtest [18:26:33]: rebooting testbed after setup commands that affected boot 82s autopkgtest [18:26:47]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP Mon Sep 22 08:56:47 UTC 2025 84s autopkgtest [18:26:49]: @@@@@@@@@@@@@@@@@@@@ apt-source git-remote-hg 85s Get:1 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.4~ds-3 (dsc) [2146 B] 85s Get:2 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.4~ds-3 (tar) [51.2 kB] 85s Get:3 http://ftpmaster.internal/ubuntu resolute/universe git-remote-hg 1.0.4~ds-3 (diff) [6096 B] 86s gpgv: Signature made Fri Feb 21 20:16:13 2025 UTC 86s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 86s gpgv: issuer "tchet@debian.org" 86s gpgv: Can't check signature: No public key 86s dpkg-source: warning: cannot verify inline signature for ./git-remote-hg_1.0.4~ds-3.dsc: no acceptable signature found 86s autopkgtest [18:26:51]: testing package git-remote-hg version 1.0.4~ds-3 86s autopkgtest [18:26:51]: build not needed 86s autopkgtest [18:26:51]: test upstream-test-suite: preparing testbed 86s Reading package lists... 87s Building dependency tree... 87s Reading state information... 87s Solving dependencies... 87s The following NEW packages will be installed: 87s git git-man git-remote-hg liberror-perl mercurial mercurial-common 87s mercurial-git python3-dulwich python3-zombie-imp sharness 87s 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded. 87s Need to get 9054 kB of archives. 87s After this operation, 46.7 MB of additional disk space will be used. 87s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x liberror-perl all 0.17030-1 [23.5 kB] 87s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x git-man all 1:2.51.0-1ubuntu1 [1179 kB] 88s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x git s390x 1:2.51.0-1ubuntu1 [4290 kB] 89s Get:4 http://ftpmaster.internal/ubuntu resolute/universe s390x mercurial-common all 7.0.1-2 [2783 kB] 89s Get:5 http://ftpmaster.internal/ubuntu resolute/universe s390x mercurial s390x 7.0.1-2 [457 kB] 89s Get:6 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-zombie-imp all 0.0.3-1 [12.1 kB] 89s Get:7 http://ftpmaster.internal/ubuntu resolute/universe s390x git-remote-hg all 1.0.4~ds-3 [39.5 kB] 89s Get:8 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-dulwich s390x 0.22.7-1 [183 kB] 89s Get:9 http://ftpmaster.internal/ubuntu resolute/universe s390x mercurial-git all 1.2.0-1 [60.9 kB] 89s Get:10 http://ftpmaster.internal/ubuntu resolute/universe s390x sharness all 1.0.0-1.1 [25.7 kB] 89s Fetched 9054 kB in 3s (3574 kB/s) 89s Selecting previously unselected package liberror-perl. 90s (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 ... 56852 files and directories currently installed.) 90s Preparing to unpack .../0-liberror-perl_0.17030-1_all.deb ... 90s Unpacking liberror-perl (0.17030-1) ... 90s Selecting previously unselected package git-man. 90s Preparing to unpack .../1-git-man_1%3a2.51.0-1ubuntu1_all.deb ... 90s Unpacking git-man (1:2.51.0-1ubuntu1) ... 90s Selecting previously unselected package git. 90s Preparing to unpack .../2-git_1%3a2.51.0-1ubuntu1_s390x.deb ... 90s Unpacking git (1:2.51.0-1ubuntu1) ... 90s Selecting previously unselected package mercurial-common. 90s Preparing to unpack .../3-mercurial-common_7.0.1-2_all.deb ... 90s Unpacking mercurial-common (7.0.1-2) ... 90s Selecting previously unselected package mercurial. 90s Preparing to unpack .../4-mercurial_7.0.1-2_s390x.deb ... 90s Unpacking mercurial (7.0.1-2) ... 90s Selecting previously unselected package python3-zombie-imp. 90s Preparing to unpack .../5-python3-zombie-imp_0.0.3-1_all.deb ... 90s Unpacking python3-zombie-imp (0.0.3-1) ... 90s Selecting previously unselected package git-remote-hg. 90s Preparing to unpack .../6-git-remote-hg_1.0.4~ds-3_all.deb ... 90s Unpacking git-remote-hg (1.0.4~ds-3) ... 90s Selecting previously unselected package python3-dulwich. 90s Preparing to unpack .../7-python3-dulwich_0.22.7-1_s390x.deb ... 90s Unpacking python3-dulwich (0.22.7-1) ... 90s Selecting previously unselected package mercurial-git. 90s Preparing to unpack .../8-mercurial-git_1.2.0-1_all.deb ... 90s Unpacking mercurial-git (1.2.0-1) ... 90s Selecting previously unselected package sharness. 90s Preparing to unpack .../9-sharness_1.0.0-1.1_all.deb ... 90s Unpacking sharness (1.0.0-1.1) ... 90s Setting up python3-zombie-imp (0.0.3-1) ... 90s Setting up mercurial-common (7.0.1-2) ... 91s Setting up liberror-perl (0.17030-1) ... 91s Setting up sharness (1.0.0-1.1) ... 91s Setting up python3-dulwich (0.22.7-1) ... 91s Setting up git-man (1:2.51.0-1ubuntu1) ... 91s Setting up mercurial (7.0.1-2) ... 91s Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version 91s Setting up mercurial-git (1.2.0-1) ... 91s mercurial-git extension is disabled by default. 91s You can follow the instructions in /usr/share/doc/mercurial-git/README.Debian to enable it. 92s Setting up git (1:2.51.0-1ubuntu1) ... 92s Setting up git-remote-hg (1.0.4~ds-3) ... 92s Processing triggers for man-db (2.13.1-1) ... 93s autopkgtest [18:26:58]: test upstream-test-suite: make -C test TEST_INSTALLED_SCRIPTS=1 TEST_OPTS=--verbose 93s autopkgtest [18:26:58]: test upstream-test-suite: [----------------------- 93s make: Entering directory '/tmp/autopkgtest.kbTVqf/build.imm/src/test' 93s /bin/sh main.t --verbose 93s expecting success: 93s ( 93s hg init hgrepo && 93s cd hgrepo && 93s echo zero > content && 93s hg add content && 93s hg commit -m zero 93s ) 93s 94s ok 1 - setup 94s Cloning into 'gitrepo'... 94s 94s expecting success: 94s test_when_finished "rm -rf gitrepo*" && 94s git clone "hg::hgrepo" gitrepo && 94s check gitrepo HEAD zero 94s 94s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 94s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 94s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 94s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 94s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 94s or locale.getdefaultlocale()[1] 94s WARNING: capability_push is disabled, only do so when really sure 94s WARNING: various enhanced features might fail in subtle ways 94s adding changesets 94s adding manifests 94s adding file changes 94s added 1 changesets with 1 changes to 1 files 94s new changesets ad9372c0d745 94s progress revision walk 'bookmarks/master' (0/0) 94s progress revision 0 'master' (0/1) 94s ok 2 - cloning 94s 94s expecting success: 94s test_when_finished "rm -rf gitrepo*" && 94s 94s ( 94s cd hgrepo && 94s hg branch next && 94s echo next > content && 94s hg commit -m next 94s ) && 94s 94s git clone "hg::hgrepo" gitrepo && 94s check gitrepo origin/branches/next next 94s 94s marked working directory as branch next 94s (branches are permanent and global, did you want a bookmark?) 94s Cloning into 'gitrepo'... 94s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 94s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 94s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 94s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 95s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 95s or locale.getdefaultlocale()[1] 95s WARNING: capability_push is disabled, only do so when really sure 95s WARNING: various enhanced features might fail in subtle ways 95s adding changesets 95s adding manifests 95s adding file changes 95s added 2 changesets with 2 changes to 1 files 95s new changesets ad9372c0d745:0d3784618a55 95s progress revision walk 'bookmarks/master' (0/0) 95s progress revision 0 'master' (0/1) 95s progress revision 1 'next' (0/1) 95s ok 3 - cloning with branches 95s 95s expecting success: 95s test_when_finished "rm -rf gitrepo*" && 95s 95s ( 95s cd hgrepo && 95s hg checkout default && 95s hg bookmark feature-a && 95s echo feature-a > content && 95s hg commit -m feature-a 95s ) && 95s 95s git clone "hg::hgrepo" gitrepo && 95s check gitrepo origin/feature-a feature-a 95s 95s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 95s Cloning into 'gitrepo'... 95s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 95s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 95s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 95s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 95s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 95s or locale.getdefaultlocale()[1] 95s WARNING: capability_push is disabled, only do so when really sure 95s WARNING: various enhanced features might fail in subtle ways 95s adding changesets 95s adding manifests 95s adding file changes 95s adding remote bookmark feature-a 95s added 3 changesets with 3 changes to 1 files (+1 heads) 95s new changesets ad9372c0d745:d8f312e823e4 95s progress revision walk 'bookmarks/master' (2/2) 95s progress revision 0 'master' (0/2) 95s progress revision 1 'next' (0/1) 95s ok 4 - cloning with bookmarks 95s 95s expecting success: 95s test_when_finished "rm -rf gitrepo*" && 95s 95s ( 95s cd hgrepo && 95s hg bookmark devel 95s ) && 95s 95s ( 95s git clone "hg::hgrepo" gitrepo && 95s cd gitrepo && 95s git checkout --quiet devel && 95s echo devel > content && 95s git commit -a -m devel && 95s git push --quiet origin devel 95s ) && 95s 95s check_bookmark hgrepo devel devel 95s 95s Cloning into 'gitrepo'... 96s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 96s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 96s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 96s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 96s /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. 96s or locale.getdefaultlocale()[1] 96s WARNING: capability_push is disabled, only do so when really sure 96s WARNING: various enhanced features might fail in subtle ways 96s adding changesets 96s adding manifests 96s adding file changes 96s adding remote bookmark devel 96s adding remote bookmark feature-a 96s added 3 changesets with 3 changes to 1 files (+1 heads) 96s new changesets ad9372c0d745:d8f312e823e4 96s progress revision walk 'bookmarks/master' (2/2) 96s progress revision 0 'master' (0/2) 96s progress revision 1 'next' (0/1) 96s [devel b9233d6] devel 96s Author: A U Thor 96s 1 file changed, 1 insertion(+), 1 deletion(-) 96s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 96s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 96s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 96s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 96s /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. 96s or locale.getdefaultlocale()[1] 96s WARNING: capability_push is disabled, only do so when really sure 96s WARNING: various enhanced features might fail in subtle ways 96s no changes found 96s searching for changes 96s adding changesets 96s adding manifests 96s adding file changes 96s added 1 changesets with 1 changes to 1 files 96s ok 5 - update bookmark 96s 96s expecting success: 96s test_when_finished "rm -rf gitrepo*" && 96s 96s ( 96s git clone "hg::hgrepo" gitrepo && 96s cd gitrepo && 96s git checkout --quiet -b feature-b && 96s echo feature-b > content && 96s git commit -a -m feature-b && 96s git push --quiet origin feature-b 96s ) && 96s 96s check_bookmark hgrepo feature-b feature-b 96s 96s Cloning into 'gitrepo'... 96s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 96s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 96s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 96s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 96s /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. 96s or locale.getdefaultlocale()[1] 96s WARNING: capability_push is disabled, only do so when really sure 96s WARNING: various enhanced features might fail in subtle ways 96s adding changesets 96s adding manifests 96s adding file changes 96s adding remote bookmark devel 96s adding remote bookmark feature-a 96s added 4 changesets with 4 changes to 1 files (+1 heads) 96s new changesets ad9372c0d745:3e0710d507d1 96s progress revision walk 'bookmarks/master' (3/3) 96s progress revision 0 'master' (0/3) 96s progress revision 1 'next' (0/1) 97s [feature-b 9cb818b] feature-b 97s Author: A U Thor 97s 1 file changed, 1 insertion(+), 1 deletion(-) 97s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 97s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 97s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 97s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 97s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 97s or locale.getdefaultlocale()[1] 97s WARNING: capability_push is disabled, only do so when really sure 97s WARNING: various enhanced features might fail in subtle ways 97s no changes found 97s searching for changes 97s adding changesets 97s adding manifests 97s adding file changes 97s added 1 changesets with 1 changes to 1 files 97s ok 6 - new bookmark 97s 97s expecting success: 97s test_when_finished "rm -rf hgrepo gitrepo" && 97s 97s ( 97s hg init hgrepo && 97s cd hgrepo && 97s 97s touch content && 97s hg add content && 97s 97s > ../expected && 97s author_test alpha "" "H G Wells " && 97s author_test beta "beta" "beta " && 97s author_test gamma "gamma (comment)" "gamma " && 97s author_test delta "" "Unknown " && 97s author_test epsilon "epsilon" "epsilon " && 97s author_test zeta "zeta " && 97s author_test eta " eta " "eta " && 97s author_test theta "theta < test@example.com >" "theta " && 97s author_test iota "iota >test@example.com>" "iota " && 97s author_test kappa "kappa < test example com>" "kappa " && 97s author_test lambda "lambda@example.com" "Unknown " && 97s author_test mu "mu.mu@example.com" "Unknown " 97s ) && 97s 97s git clone "hg::hgrepo" gitrepo && 97s git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual && 97s 97s test_cmp expected actual 97s 99s Cloning into 'gitrepo'... 99s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 99s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 99s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 99s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 99s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 99s or locale.getdefaultlocale()[1] 99s WARNING: capability_push is disabled, only do so when really sure 99s WARNING: various enhanced features might fail in subtle ways 100s adding changesets 100s adding manifests 100s adding file changes 100s added 12 changesets with 12 changes to 1 files 100s new changesets 030b7fb3b1bd:1f164d5667a9 100s progress revision walk 'bookmarks/master' (11/11) 100s progress revision 0 'master' (0/12) 100s ok 7 - authors 100s 100s expecting success: 100s test_when_finished "rm -rf hgrepo gitrepo" && 100s 100s ( 100s hg init hgrepo && 100s cd hgrepo && 100s 100s echo one >> content && 100s hg add content && 100s hg commit -m one && 100s 100s echo two >> content && 100s hg commit -m two 100s ) && 100s 100s git clone "hg::hgrepo" gitrepo && 100s 100s ( 100s cd hgrepo && 100s hg strip 1 && 100s 100s echo three >> content && 100s hg commit -m three && 100s 100s echo four >> content && 100s hg commit -m four 100s ) && 100s 100s ( 100s cd gitrepo && 100s git fetch && 100s git log --format="%s" origin/master > ../actual 100s ) && 100s 100s hg -R hgrepo log --template "{desc}\n" > expected && 100s test_cmp actual expected 100s 100s Cloning into 'gitrepo'... 100s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 100s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 100s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 100s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 100s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 100s or locale.getdefaultlocale()[1] 100s WARNING: capability_push is disabled, only do so when really sure 100s WARNING: various enhanced features might fail in subtle ways 100s adding changesets 100s adding manifests 100s adding file changes 100s added 2 changesets with 2 changes to 1 files 100s new changesets a79e27b35707:d5beba385151 100s progress revision walk 'bookmarks/master' (1/1) 100s progress revision 0 'master' (0/2) 101s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 101s saved backup bundle to /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/hgrepo/.hg/strip-backup/d5beba385151-eab19bf7-backup.hg 101s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 101s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 101s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 101s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 101s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 101s or locale.getdefaultlocale()[1] 101s WARNING: capability_push is disabled, only do so when really sure 101s WARNING: various enhanced features might fail in subtle ways 101s searching for changes 101s adding changesets 101s adding manifests 101s adding file changes 101s added 2 changesets with 2 changes to 1 files (+1 heads) 101s new changesets 6d3b0e307689:e9e96f59d393 101s progress revision 2 'default' (0/2) 101s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/hgrepo 101s + 0a3d856...90f27f9 master -> origin/master (forced update) 101s + 0a3d856...90f27f9 branches/default -> origin/branches/default (forced update) 101s ok 8 - strip 101s 101s expecting success: 101s test_when_finished "rm -rf hgrepo gitrepo*" && 101s 101s ( 101s hg init hgrepo && 101s cd hgrepo && 101s echo zero > content && 101s hg add content && 101s hg commit -m zero && 101s hg bookmark master && 101s echo one > content && 101s hg commit -m one 101s ) && 101s 101s ( 101s git clone "hg::hgrepo" gitrepo && 101s cd gitrepo && 101s echo two > content && 101s git commit -a -m two && 101s git push 101s ) && 101s 101s check_branch hgrepo default two 101s 102s Cloning into 'gitrepo'... 102s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 102s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 102s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 102s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 102s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 102s or locale.getdefaultlocale()[1] 102s WARNING: capability_push is disabled, only do so when really sure 102s WARNING: various enhanced features might fail in subtle ways 102s adding changesets 102s adding manifests 102s adding file changes 102s adding remote bookmark master 102s added 2 changesets with 2 changes to 1 files 102s new changesets 59476e58e5ce:208d7844865f 102s progress revision walk 'bookmarks/default' (1/1) 102s progress revision 0 'default' (0/2) 102s [default fe93cdd] two 102s Author: A U Thor 102s 1 file changed, 1 insertion(+), 1 deletion(-) 102s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 102s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 102s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 102s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 103s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 103s or locale.getdefaultlocale()[1] 103s WARNING: capability_push is disabled, only do so when really sure 103s WARNING: various enhanced features might fail in subtle ways 103s no changes found 103s searching for changes 103s adding changesets 103s adding manifests 103s adding file changes 103s added 1 changesets with 1 changes to 1 files 103s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/hgrepo 103s e1bcb4c..fe93cdd default -> default 103s ok 9 - remote push with master bookmark 103s 103s expecting success: 103s test_when_finished "rm -rf hgrepo gitrepo*" && 103s 103s hg init hgrepo && 103s 103s ( 103s git init gitrepo && 103s cd gitrepo && 103s git remote add origin "hg::../hgrepo" && 103s echo one > content && 103s git add content && 103s git commit -a -m one && 103s git push origin master 103s ) && 103s 103s hg -R hgrepo log > actual && 103s cat actual && 103s test_cmp expected actual && 103s 103s check_branch hgrepo default one 103s 103s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/gitrepo/.git/ 103s [master (root-commit) 64caca5] one 103s Author: A U Thor 103s 1 file changed, 1 insertion(+) 103s create mode 100644 content 103s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 103s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 103s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 103s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 103s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 103s or locale.getdefaultlocale()[1] 103s WARNING: capability_push is disabled, only do so when really sure 103s WARNING: various enhanced features might fail in subtle ways 103s no changes found 103s searching for changes 103s adding changesets 103s adding manifests 103s adding file changes 103s added 1 changesets with 1 changes to 1 files 103s To hg::../hgrepo 103s * [new branch] master -> master 103s changeset: 0:6e2126489d3d 103s tag: tip 103s user: A U Thor 103s date: Mon Jan 01 00:00:00 2007 +0230 103s summary: one 103s 104s ok 10 - remote push from master branch 104s 104s expecting success: 104s test_when_finished "rm -rf gitrepo*" && 104s 104s ( 104s hg init hgrepo && 104s cd hgrepo && 104s echo zero > content && 104s hg add content && 104s hg commit -m zero 104s ) && 104s 104s git clone "hg::hgrepo" gitrepo && 104s check gitrepo HEAD zero 104s 104s Cloning into 'gitrepo'... 104s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 104s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 104s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 104s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 104s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 104s or locale.getdefaultlocale()[1] 104s WARNING: capability_push is disabled, only do so when really sure 104s WARNING: various enhanced features might fail in subtle ways 104s progress revision walk 'bookmarks/master' (0/0) 104s progress revision 0 'master' (0/1) 104s adding changesets 104s adding manifests 104s adding file changes 104s added 1 changesets with 1 changes to 1 files 104s new changesets b6e343e61b14 104s ok 11 - remote cloning 104s 104s expecting success: 104s test_when_finished "rm -rf gitrepo*" && 104s 104s ( 104s git clone "hg::hgrepo" gitrepo && 104s mv gitrepo gitrepo2 && 104s cd gitrepo2 && 104s git fetch 104s ) 104s 104s Cloning into 'gitrepo'... 104s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 104s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 104s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 104s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 104s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 104s or locale.getdefaultlocale()[1] 104s WARNING: capability_push is disabled, only do so when really sure 104s WARNING: various enhanced features might fail in subtle ways 104s adding changesets 104s adding manifests 104s adding file changes 104s added 1 changesets with 1 changes to 1 files 104s new changesets b6e343e61b14 105s progress revision walk 'bookmarks/master' (0/0) 105s progress revision 0 'master' (0/1) 105s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 105s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 105s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 105s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 105s /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. 105s or locale.getdefaultlocale()[1] 105s WARNING: capability_push is disabled, only do so when really sure 105s WARNING: various enhanced features might fail in subtle ways 105s no changes found 105s ok 12 - moving remote clone 105s 105s expecting success: 105s test_when_finished "rm -rf gitrepo*" && 105s 105s ( 105s cd hgrepo && 105s hg bookmark devel 105s ) && 105s 105s ( 105s git clone "hg::hgrepo" gitrepo && 105s cd gitrepo && 105s git checkout --quiet devel && 105s echo devel > content && 105s git commit -a -m devel && 105s git push --quiet 105s ) && 105s 105s check_bookmark hgrepo devel devel 105s 105s Cloning into 'gitrepo'... 105s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 105s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 105s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 105s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 105s /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. 105s or locale.getdefaultlocale()[1] 105s WARNING: capability_push is disabled, only do so when really sure 105s WARNING: various enhanced features might fail in subtle ways 105s adding changesets 105s progress revision walk 'bookmarks/master' (0/0) 105s progress revision 0 'master' (0/1) 105s adding manifests 105s adding file changes 105s adding remote bookmark devel 105s added 1 changesets with 1 changes to 1 files 105s new changesets b6e343e61b14 105s [devel be712f1] devel 105s Author: A U Thor 105s 1 file changed, 1 insertion(+), 1 deletion(-) 105s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 105s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 105s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 105s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 105s /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. 105s or locale.getdefaultlocale()[1] 105s WARNING: capability_push is disabled, only do so when really sure 105s WARNING: various enhanced features might fail in subtle ways 105s no changes found 105s searching for changes 105s adding changesets 105s adding manifests 105s adding file changes 105s added 1 changesets with 1 changes to 1 files 106s ok 13 - remote update bookmark 106s 106s expecting success: 106s test_when_finished "rm -rf gitrepo*" && 106s 106s ( 106s git clone "hg::hgrepo" gitrepo && 106s cd gitrepo && 106s git checkout --quiet -b feature-b && 106s echo feature-b > content && 106s git commit -a -m feature-b && 106s git push --quiet origin feature-b 106s ) && 106s 106s check_bookmark hgrepo feature-b feature-b 106s 106s Cloning into 'gitrepo'... 106s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 106s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 106s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 106s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 106s /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. 106s or locale.getdefaultlocale()[1] 106s WARNING: capability_push is disabled, only do so when really sure 106s WARNING: various enhanced features might fail in subtle ways 106s adding changesets 106s adding manifests 106s adding file changes 106s adding remote bookmark devel 106s added 2 changesets with 2 changes to 1 files 106s new changesets b6e343e61b14:5a037cad7bc2 106s progress revision walk 'bookmarks/master' (1/1) 106s progress revision 0 'master' (0/2) 106s [feature-b 14d5f89] feature-b 106s Author: A U Thor 106s 1 file changed, 1 insertion(+), 1 deletion(-) 106s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 106s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 106s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 106s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 106s /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. 106s or locale.getdefaultlocale()[1] 106s WARNING: capability_push is disabled, only do so when really sure 106s WARNING: various enhanced features might fail in subtle ways 106s no changes found 106s searching for changes 106s adding changesets 106s adding manifests 106s adding file changes 106s added 1 changesets with 1 changes to 1 files 107s ok 14 - remote new bookmark 107s 107s expecting success: 107s test_when_finished "rm -rf gitrepo*" && 107s 107s git clone "hg::hgrepo" gitrepo && 107s 107s ( 107s cd hgrepo && 107s hg checkout default && 107s echo bump > content && 107s hg commit -m bump 107s ) && 107s 107s ( 107s cd gitrepo && 107s echo diverge > content && 107s git commit -a -m diverged && 107s check_push 1 <<-\EOF 107s master:non-fast-forward 107s EOF 107s ) && 107s 107s check_branch hgrepo default bump 107s 107s Cloning into 'gitrepo'... 107s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 107s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 107s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 107s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 107s /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. 107s or locale.getdefaultlocale()[1] 107s WARNING: capability_push is disabled, only do so when really sure 107s WARNING: various enhanced features might fail in subtle ways 107s adding changesets 107s adding manifests 107s adding file changes 107s adding remote bookmark devel 107s adding remote bookmark feature-b 107s added 3 changesets with 3 changes to 1 files 107s new changesets b6e343e61b14:492f0cae2912 107s progress revision walk 'bookmarks/master' (2/2) 107s progress revision 0 'master' (0/3) 107s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 107s (leaving bookmark devel) 107s [master 0c3f1c7] diverged 107s Author: A U Thor 107s 1 file changed, 1 insertion(+), 1 deletion(-) 107s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 107s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 107s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 107s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 107s /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. 107s or locale.getdefaultlocale()[1] 107s WARNING: capability_push is disabled, only do so when really sure 107s WARNING: various enhanced features might fail in subtle ways 107s searching for changes 107s adding changesets 107s adding manifests 107s adding file changes 107s added 1 changesets with 1 changes to 1 files 107s new changesets e464a7786a0d 107s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/hgrepo 107s ! [rejected] master -> master (non-fast-forward) 107s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/hgrepo' 107s hint: Updates were rejected because the tip of your current branch is behind 107s hint: its remote counterpart. If you want to integrate the remote changes, 107s hint: use 'git pull' before pushing again. 107s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 107s ! [rejected] master -> master (non-fast-forward) 108s ok 15 - remote push diverged 108s 108s expecting success: 108s test_when_finished "rm -rf gitrepo*" && 108s 108s ( 108s cd hgrepo && 108s hg checkout tip^ && 108s hg bookmark diverge 108s ) && 108s 108s git clone "hg::hgrepo" gitrepo && 108s 108s ( 108s cd hgrepo && 108s echo "bump bookmark" > content && 108s hg commit -m "bump bookmark" 108s ) && 108s 108s ( 108s cd gitrepo && 108s git checkout --quiet diverge && 108s echo diverge > content && 108s git commit -a -m diverge && 108s check_push 1 <<-\EOF 108s diverge:non-fast-forward 108s EOF 108s ) && 108s 108s check_bookmark hgrepo diverge "bump bookmark" 108s 108s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 108s Cloning into 'gitrepo'... 108s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 108s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 108s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 108s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 108s /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. 108s or locale.getdefaultlocale()[1] 108s WARNING: capability_push is disabled, only do so when really sure 108s WARNING: various enhanced features might fail in subtle ways 108s adding changesets 108s adding manifests 108s adding file changes 108s adding remote bookmark devel 108s adding remote bookmark diverge 108s adding remote bookmark feature-b 108s added 4 changesets with 4 changes to 1 files 108s new changesets b6e343e61b14:e464a7786a0d 108s progress revision walk 'bookmarks/master' (3/3) 108s progress revision 0 'master' (0/4) 108s created new head 108s [diverge 4d5ef26] diverge 108s Author: A U Thor 108s 1 file changed, 1 insertion(+), 1 deletion(-) 109s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 109s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 109s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 109s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 109s /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. 109s or locale.getdefaultlocale()[1] 109s WARNING: capability_push is disabled, only do so when really sure 109s WARNING: various enhanced features might fail in subtle ways 109s searching for changes 109s adding changesets 109s adding manifests 109s adding file changes 109s updating bookmark diverge 109s added 1 changesets with 1 changes to 1 files (+1 heads) 109s new changesets b84dde891081 109s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/hgrepo 109s ! [rejected] diverge -> diverge (non-fast-forward) 109s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/hgrepo' 109s hint: Updates were rejected because the tip of your current branch is behind 109s hint: its remote counterpart. If you want to integrate the remote changes, 109s hint: use 'git pull' before pushing again. 109s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 109s ! [rejected] diverge -> diverge (non-fast-forward) 109s Cloning into 'gitrepo'... 109s ok 16 - remote update bookmark diverge 109s 109s expecting success: 109s test_when_finished "rm -rf gitrepo*" && 109s 109s ( 109s git clone "hg::hgrepo" gitrepo && 109s cd gitrepo && 109s git checkout --quiet -b feature-c HEAD^ && 109s echo feature-c > content && 109s git commit -a -m feature-c && 109s git push --quiet origin feature-c 109s ) && 109s 109s check_bookmark hgrepo feature-c feature-c 109s 109s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 109s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 109s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 109s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 109s /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. 109s or locale.getdefaultlocale()[1] 109s WARNING: capability_push is disabled, only do so when really sure 109s WARNING: various enhanced features might fail in subtle ways 109s adding changesets 109s adding manifests 109s adding file changes 109s adding remote bookmark devel 109s adding remote bookmark diverge 109s adding remote bookmark feature-b 109s added 5 changesets with 5 changes to 1 files (+1 heads) 109s new changesets b6e343e61b14:b84dde891081 109s WARNING: Branch 'default' has more than one head, consider merging 109s progress revision walk 'bookmarks/master' (4/4) 109s progress revision 0 'master' (0/4) 109s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 109s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 109s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 109s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 109s [feature-c e74dd27] feature-c 109s Author: A U Thor 109s 1 file changed, 1 insertion(+), 1 deletion(-) 109s /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. 109s or locale.getdefaultlocale()[1] 109s WARNING: capability_push is disabled, only do so when really sure 109s WARNING: various enhanced features might fail in subtle ways 109s no changes found 109s searching for changes 109s adding changesets 109s adding manifests 109s adding file changes 109s added 1 changesets with 1 changes to 1 files (+1 heads) 109s ok 17 - remote new bookmark multiple branch head 109s 109s checking known breakage: 109s test_when_finished "rm -rf gitrepo hgrepo" && 109s 109s ( 109s hg init hgrepo && 109s cd hgrepo && 109s echo zero > content && 109s hg add content && 109s hg commit -m zero 109s ) && 109s 109s git clone "hg::hgrepo" gitrepo && 109s 109s ( 109s cd gitrepo && 109s cp content content-copy && 109s # recent git-fast-export is (too) picky in recognizing copies 109s # although git-log is not as picky; 109s # since https://github.com/git/git/commit/8096e1d385660c159d9d47e69b2be63cf22e4f31 109s # a copy is only marked if source filed not modified as well 109s # (though destination file can be modified) 109s echo one >> content-copy && 109s git add content content-copy && 109s git commit -m copy && 109s git mv content-copy content-moved 109s git commit -m moved && 109s git push origin master 109s ) && 109s 109s ( 109s hg -R hgrepo update && 109s test_cmp gitrepo/content hgrepo/content 109s test_cmp gitrepo/content-moved hgrepo/content-moved 109s cd hgrepo && 109s test `hg log -f content-moved | grep -c changeset` -eq 3 109s ) 109s 110s Cloning into 'gitrepo'... 110s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 110s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 110s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 110s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 110s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 110s or locale.getdefaultlocale()[1] 110s WARNING: capability_push is disabled, only do so when really sure 110s WARNING: various enhanced features might fail in subtle ways 110s adding changesets 110s adding manifests 110s adding file changes 110s added 1 changesets with 1 changes to 1 files 110s new changesets bb0a40a69f26 110s progress revision walk 'bookmarks/master' (0/0) 110s progress revision 0 'master' (0/1) 110s [master 2cb44e1] copy 110s Author: A U Thor 110s 1 file changed, 2 insertions(+) 110s create mode 100644 content-copy 110s [master 85d28e2] moved 110s Author: A U Thor 110s 1 file changed, 0 insertions(+), 0 deletions(-) 110s rename content-copy => content-moved (100%) 110s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 110s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 110s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 110s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 110s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 110s or locale.getdefaultlocale()[1] 110s WARNING: capability_push is disabled, only do so when really sure 110s WARNING: various enhanced features might fail in subtle ways 110s no changes found 110s searching for changes 110s adding changesets 110s adding manifests 110s adding file changes 110s added 2 changesets with 2 changes to 2 files 110s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/hgrepo 110s a950295..85d28e2 master -> master 111s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 111s not ok 18 - push commits with copy and rename # TODO known breakage 111s 111s expecting success: 111s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 111s 111s LC_ALL=C.UTF-8 111s export LC_ALL 111s 111s ( 111s hg init hgrepo && 111s cd hgrepo && 111s 111s echo test >> "æ rø" && 111s hg add "æ rø" && 111s echo test >> "ø~?" && 111s hg add "ø~?" && 111s hg commit -m add-utf-8 && 111s echo test >> "æ rø" && 111s hg commit -m test-utf-8 && 111s hg rm "ø~?" && 111s hg mv "æ rø" "ø~?" && 111s hg commit -m hg-mv-utf-8 111s ) && 111s 111s ( 111s git clone "hg::hgrepo" gitrepo && 111s cd gitrepo && 111s git -c core.quotepath=false ls-files > ../actual 111s ) && 111s echo "ø~?" > expected && 111s test_cmp expected actual 111s 111s warning: filename contains '?', which is reserved on Windows: 'ø~?' 112s warning: filename contains '?', which is reserved on Windows: 'ø~?' 112s Cloning into 'gitrepo'... 112s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 112s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 112s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 112s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 112s WARNING: capability_push is disabled, only do so when really sure 112s WARNING: various enhanced features might fail in subtle ways 112s adding changesets 112s adding manifests 112s adding file changes 112s added 3 changesets with 4 changes to 2 files 112s new changesets 626aa3da68a1:775f4dc383aa 112s progress revision walk 'bookmarks/master' (2/2) 112s progress revision 0 'master' (0/3) 112s ok 19 - fetch special filenames 112s 112s expecting success: 112s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 112s 112s mkdir -p tmp && cd tmp && 112s 112s LC_ALL=C.UTF-8 112s export LC_ALL 112s 112s ( 112s hg init hgrepo && 112s cd hgrepo && 112s 112s echo one >> content && 112s hg add content && 112s hg commit -m one 112s ) && 112s 112s ( 112s git clone "hg::hgrepo" gitrepo && 112s cd gitrepo && 112s 112s echo test >> "æ rø" && 112s git add "æ rø" && 112s git commit -m utf-8 && 112s 112s git push 112s ) && 112s 112s (cd hgrepo && 112s hg update && 112s hg manifest > ../actual 112s ) && 112s 112s printf "content\næ rø\n" > expected && 112s test_cmp expected actual 112s 113s Cloning into 'gitrepo'... 113s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 113s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 113s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 113s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 113s WARNING: capability_push is disabled, only do so when really sure 113s WARNING: various enhanced features might fail in subtle ways 113s adding changesets 113s adding manifests 113s adding file changes 113s added 1 changesets with 1 changes to 1 files 113s new changesets c5a65128f24f 113s progress revision walk 'bookmarks/master' (0/0) 113s progress revision 0 'master' (0/1) 113s [master d2f5ef6] utf-8 113s Author: A U Thor 113s 1 file changed, 1 insertion(+) 113s create mode 100644 "\303\246 r\303\270" 113s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 113s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 113s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 113s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 113s WARNING: capability_push is disabled, only do so when really sure 113s WARNING: various enhanced features might fail in subtle ways 113s no changes found 113s searching for changes 113s adding changesets 113s adding manifests 113s adding file changes 113s added 1 changesets with 1 changes to 1 files 113s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 113s 7ede459..d2f5ef6 master -> master 113s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 114s ok 20 - push special filenames 114s 114s expecting success: 114s test_when_finished "rm -rf hgrepo gitrepo*" && 114s 114s setup_big_push 114s 114s ( 114s cd gitrepo && 114s 114s check_push 1 --all <<-\EOF 114s master 114s good_bmark 114s branches/good_branch 114s new_bmark:new 114s branches/new_branch:new 114s bad_bmark1:non-fast-forward 114s bad_bmark2:non-fast-forward 114s branches/bad_branch:non-fast-forward 114s EOF 114s ) && 114s 114s if test "$CAPABILITY_PUSH" = "t" 114s then 114s # cap push handles refs one by one 114s # so it will push all requested it can 114s check_branch hgrepo default six && 114s check_branch hgrepo good_branch eight && 114s check_branch hgrepo bad_branch "bad branch" && 114s check_branch hgrepo new_branch ten && 114s check_bookmark hgrepo good_bmark three && 114s check_bookmark hgrepo bad_bmark1 one && 114s check_bookmark hgrepo bad_bmark2 one && 114s check_bookmark hgrepo new_bmark six 114s else 114s check_branch hgrepo default one && 114s check_branch hgrepo good_branch "good branch" && 114s check_branch hgrepo bad_branch "bad branch" && 114s check_branch hgrepo new_branch && 114s check_bookmark hgrepo good_bmark one && 114s check_bookmark hgrepo bad_bmark1 one && 114s check_bookmark hgrepo bad_bmark2 one && 114s check_bookmark hgrepo new_bmark 114s fi 114s 116s Cloning into 'gitrepo'... 116s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 116s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 116s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 116s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 116s /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. 116s or locale.getdefaultlocale()[1] 116s WARNING: capability_push is disabled, only do so when really sure 116s WARNING: various enhanced features might fail in subtle ways 116s adding changesets 116s adding manifests 116s adding file changes 116s adding remote bookmark bad_bmark1 116s adding remote bookmark bad_bmark2 116s adding remote bookmark good_bmark 116s added 4 changesets with 4 changes to 1 files 116s progress revision walk 'bookmarks/master' (1/1) 116s progress revision 0 'master' (0/2) 116s progress revision 2 'bad_branch' (0/2) 116s new changesets 964dedc195fd:df22c3bb5989 116s HEAD is now at b778ef8 zero 116s HEAD is now at b778ef8 zero 116s HEAD is now at 5d4b3b2 good branch 116s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 116s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 116s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 116s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 116s /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. 116s or locale.getdefaultlocale()[1] 116s WARNING: capability_push is disabled, only do so when really sure 116s WARNING: various enhanced features might fail in subtle ways 116s no changes found 116s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 116s 5d4b3b2..db43c05 branches/good_branch -> branches/good_branch 116s 295e404..0f28d18 good_bmark -> good_bmark 116s 295e404..06b45e5 master -> master 116s * [new branch] branches/new_branch -> branches/new_branch 116s * [new branch] new_bmark -> new_bmark 116s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 116s ! [rejected] bad_bmark1 -> bad_bmark1 (non-fast-forward) 116s ! [rejected] bad_bmark2 -> bad_bmark2 (non-fast-forward) 116s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo' 116s hint: Updates were rejected because a pushed branch tip is behind its remote 116s hint: counterpart. If you want to integrate the remote changes, use 'git pull' 116s hint: before pushing again. 116s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 116s 295e404..06b45e5 master -> master 116s 295e404..0f28d18 good_bmark -> good_bmark 116s 5d4b3b2..db43c05 branches/good_branch -> branches/good_branch 116s * [new branch] new_bmark -> new_bmark 116s * [new branch] branches/new_branch -> branches/new_branch 116s ! [rejected] bad_bmark1 -> bad_bmark1 (non-fast-forward) 116s ! [rejected] bad_bmark2 -> bad_bmark2 (non-fast-forward) 116s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 118s ok 21 - remote big push 118s 118s expecting success: 118s test_when_finished "rm -rf hgrepo gitrepo*" && 118s 118s ( 118s hg init hgrepo && 118s cd hgrepo && 118s echo zero > content && 118s hg add content && 118s hg commit -m zero && 118s hg bookmark bad_bmark && 118s hg bookmark good_bmark && 118s hg bookmark -i good_bmark && 118s hg -q branch good_branch && 118s echo "good branch" > content && 118s hg commit -m "good branch" && 118s hg -q branch bad_branch && 118s echo "bad branch" > content && 118s hg commit -m "bad branch" 118s ) && 118s 118s git clone "hg::hgrepo" gitrepo && 118s 118s ( 118s cd hgrepo && 118s hg bookmark -f bad_bmark && 118s echo update_bmark > content && 118s hg commit -m "update bmark" 118s ) && 118s 118s ( 118s cd gitrepo && 118s echo two > content && 118s git commit -q -a -m two && 118s 118s git checkout -q good_bmark && 118s echo three > content && 118s git commit -q -a -m three && 118s 118s git checkout -q bad_bmark && 118s echo four > content && 118s git commit -q -a -m four && 118s 118s git checkout -q branches/bad_branch && 118s echo five > content && 118s git commit -q -a -m five && 118s 118s check_push 1 --all <<-\EOF && 118s master 118s good_bmark 118s bad_bmark:non-fast-forward 118s branches/bad_branch:non-fast-forward 118s EOF 118s 118s git fetch && 118s 118s if test "$CAPABILITY_PUSH" = "t" 118s then 118s # cap push handles refs one by one 118s # so it will already have pushed some above previously 118s # (and master is a fake one that jumps around a bit) 118s check_push 1 --all <<-\EOF 118s bad_bmark:non-fast-forward 118s branches/bad_branch:non-fast-forward 118s EOF 118s else 118s check_push 1 --all <<-\EOF 118s master 118s good_bmark 118s bad_bmark:non-fast-forward 118s branches/bad_branch:non-fast-forward 118s EOF 118s fi 118s ) 118s 119s Cloning into 'gitrepo'... 119s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 119s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 119s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 119s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 119s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 119s or locale.getdefaultlocale()[1] 119s WARNING: capability_push is disabled, only do so when really sure 119s WARNING: various enhanced features might fail in subtle ways 119s adding changesets 119s adding manifests 119s adding file changes 119s adding remote bookmark bad_bmark 119s adding remote bookmark good_bmark 119s added 3 changesets with 3 changes to 1 files 119s new changesets 1638582a8d47:d42efa2cc2ce 119s progress revision walk 'bookmarks/master' (0/0) 119s progress revision 0 'master' (0/1) 119s progress revision 1 'bad_branch' (0/2) 120s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 120s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 120s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 120s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 120s /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. 120s or locale.getdefaultlocale()[1] 120s WARNING: capability_push is disabled, only do so when really sure 120s WARNING: various enhanced features might fail in subtle ways 120s searching for changes 120s adding changesets 120s adding manifests 120s adding file changes 120s updating bookmark bad_bmark 120s added 1 changesets with 1 changes to 1 files 120s new changesets 60beab8cc80b 120s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 120s 7d8e40c..f4d2241 good_bmark -> good_bmark 120s 7d8e40c..e29dba4 master -> master 120s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 120s ! [rejected] bad_bmark -> bad_bmark (non-fast-forward) 120s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo' 120s hint: Updates were rejected because the tip of your current branch is behind 120s hint: its remote counterpart. If you want to integrate the remote changes, 120s hint: use 'git pull' before pushing again. 120s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 120s 7d8e40c..e29dba4 master -> master 120s 7d8e40c..f4d2241 good_bmark -> good_bmark 120s ! [rejected] bad_bmark -> bad_bmark (non-fast-forward) 120s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 120s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 120s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 120s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 120s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 120s /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. 120s or locale.getdefaultlocale()[1] 120s WARNING: capability_push is disabled, only do so when really sure 120s WARNING: various enhanced features might fail in subtle ways 120s no changes found 120s progress revision 3 'bad_branch' (0/1) 120s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 120s 5ef308b..e674939 branches/bad_branch -> origin/branches/bad_branch 120s 7d8e40c..e674939 bad_bmark -> origin/bad_bmark 120s + f4d2241...7d8e40c good_bmark -> origin/good_bmark (forced update) 120s + e29dba4...7d8e40c master -> origin/master (forced update) 120s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 120s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 120s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 120s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 120s /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. 120s or locale.getdefaultlocale()[1] 120s WARNING: capability_push is disabled, only do so when really sure 120s WARNING: various enhanced features might fail in subtle ways 120s no changes found 120s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 120s 7d8e40c..f4d2241 good_bmark -> good_bmark 120s 7d8e40c..e29dba4 master -> master 120s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 120s ! [rejected] bad_bmark -> bad_bmark (non-fast-forward) 120s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo' 120s hint: Updates were rejected because the tip of your current branch is behind 120s hint: its remote counterpart. If you want to integrate the remote changes, 120s hint: use 'git pull' before pushing again. 120s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 120s 7d8e40c..e29dba4 master -> master 120s 7d8e40c..f4d2241 good_bmark -> good_bmark 120s ! [rejected] bad_bmark -> bad_bmark (non-fast-forward) 120s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 120s ok 22 - remote big push non fast forward 120s 120s expecting success: 120s test_when_finished "rm -rf hgrepo gitrepo*" && 120s 120s setup_big_push 120s 120s ( 120s cd gitrepo && 120s 120s if test "$CAPABILITY_PUSH" = "t" 120s then 120s check_push 0 --force --all <<-\EOF 120s master:forced-update 120s good_bmark:forced-update 120s branches/good_branch:forced-update 120s new_bmark:new 120s branches/new_branch:new 120s bad_bmark1:forced-update 120s bad_bmark2:forced-update 120s branches/bad_branch:forced-update 120s EOF 120s else 120s check_push 0 --force --all <<-\EOF 120s master 120s good_bmark 120s branches/good_branch 120s new_bmark:new 120s branches/new_branch:new 120s bad_bmark1:forced-update 120s bad_bmark2:forced-update 120s branches/bad_branch:forced-update 120s EOF 120s fi 120s ) && 120s 120s check_branch hgrepo good_branch eight && 120s check_branch hgrepo bad_branch nine && 120s check_branch hgrepo new_branch ten && 120s check_bookmark hgrepo good_bmark three && 120s check_bookmark hgrepo bad_bmark1 four && 120s check_bookmark hgrepo bad_bmark2 five && 120s check_bookmark hgrepo new_bmark six 120s 122s Cloning into 'gitrepo'... 122s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 122s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 122s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 122s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 122s /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. 122s or locale.getdefaultlocale()[1] 122s WARNING: capability_push is disabled, only do so when really sure 122s WARNING: various enhanced features might fail in subtle ways 123s adding changesets 123s adding manifests 123s adding file changes 123s adding remote bookmark bad_bmark1 123s adding remote bookmark bad_bmark2 123s adding remote bookmark good_bmark 123s added 4 changesets with 4 changes to 1 files 123s new changesets be45f175b780:32490a57bafa 123s progress revision walk 'bookmarks/master' (1/1) 123s progress revision 0 'master' (0/2) 123s progress revision 2 'bad_branch' (0/2) 123s HEAD is now at 75a6fd2 zero 123s HEAD is now at 75a6fd2 zero 123s HEAD is now at 1889ff7 good branch 123s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 123s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 123s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 123s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 123s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 123s or locale.getdefaultlocale()[1] 123s WARNING: capability_push is disabled, only do so when really sure 123s WARNING: various enhanced features might fail in subtle ways 123s no changes found 123s searching for changes 123s adding changesets 123s adding manifests 123s adding file changes 123s added 9 changesets with 9 changes to 1 files (+7 heads) 123s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 123s + a1a2329...ddfef68 branches/bad_branch -> branches/bad_branch (forced update) 123s 1889ff7..291eae4 branches/good_branch -> branches/good_branch 123s + 27e75d4...114d9c4 bad_bmark1 -> bad_bmark1 (forced update) 123s + 27e75d4...a802840 bad_bmark2 -> bad_bmark2 (forced update) 123s 27e75d4..f3cfb65 good_bmark -> good_bmark 123s 27e75d4..409a82c master -> master 123s * [new branch] branches/new_branch -> branches/new_branch 123s * [new branch] new_bmark -> new_bmark 123s 27e75d4..409a82c master -> master 123s 27e75d4..f3cfb65 good_bmark -> good_bmark 123s 1889ff7..291eae4 branches/good_branch -> branches/good_branch 123s * [new branch] new_bmark -> new_bmark 123s * [new branch] branches/new_branch -> branches/new_branch 123s + 27e75d4...114d9c4 bad_bmark1 -> bad_bmark1 (forced update) 123s + 27e75d4...a802840 bad_bmark2 -> bad_bmark2 (forced update) 123s + a1a2329...ddfef68 branches/bad_branch -> branches/bad_branch (forced update) 124s ok 23 - remote big push force 124s 124s expecting success: 124s test_when_finished "rm -rf hgrepo gitrepo*" && 124s 124s setup_big_push 124s 124s ( 124s cd gitrepo && 124s 124s check_push 1 --dry-run --all <<-\EOF && 124s master 124s good_bmark 124s branches/good_branch 124s new_bmark:new 124s branches/new_branch:new 124s bad_bmark1:non-fast-forward 124s bad_bmark2:non-fast-forward 124s branches/bad_branch:non-fast-forward 124s EOF 124s 124s check_push 0 --dry-run master good_bmark new_bmark branches/good_branch branches/new_branch <<-\EOF 124s master 124s good_bmark 124s branches/good_branch 124s new_bmark:new 124s branches/new_branch:new 124s EOF 124s ) && 124s 124s check_branch hgrepo default one && 124s check_branch hgrepo good_branch "good branch" && 124s check_branch hgrepo bad_branch "bad branch" && 124s check_branch hgrepo new_branch && 124s check_bookmark hgrepo good_bmark one && 124s check_bookmark hgrepo bad_bmark1 one && 124s check_bookmark hgrepo bad_bmark2 one && 124s check_bookmark hgrepo new_bmark 124s 126s Cloning into 'gitrepo'... 126s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 126s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 126s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 126s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 126s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 126s or locale.getdefaultlocale()[1] 126s WARNING: capability_push is disabled, only do so when really sure 126s WARNING: various enhanced features might fail in subtle ways 126s adding changesets 126s adding manifests 126s adding file changes 126s adding remote bookmark bad_bmark1 126s adding remote bookmark bad_bmark2 126s adding remote bookmark good_bmark 126s added 4 changesets with 4 changes to 1 files 126s new changesets 3ad66186bcff:a93aa31f3832 126s progress revision walk 'bookmarks/master' (1/1) 126s progress revision 0 'master' (0/2) 126s progress revision 2 'bad_branch' (0/2) 126s HEAD is now at c34fa85 zero 126s HEAD is now at c34fa85 zero 126s HEAD is now at 70e967f good branch 127s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 127s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 127s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 127s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 127s /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. 127s or locale.getdefaultlocale()[1] 127s WARNING: capability_push is disabled, only do so when really sure 127s WARNING: various enhanced features might fail in subtle ways 127s no changes found 127s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 127s 70e967f..98f3526 branches/good_branch -> branches/good_branch 127s 1cf163c..d104221 good_bmark -> good_bmark 127s 1cf163c..c37c40e master -> master 127s * [new branch] branches/new_branch -> branches/new_branch 127s * [new branch] new_bmark -> new_bmark 127s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 127s ! [rejected] bad_bmark1 -> bad_bmark1 (non-fast-forward) 127s ! [rejected] bad_bmark2 -> bad_bmark2 (non-fast-forward) 127s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo' 127s hint: Updates were rejected because a pushed branch tip is behind its remote 127s hint: counterpart. If you want to integrate the remote changes, use 'git pull' 127s hint: before pushing again. 127s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 127s 1cf163c..c37c40e master -> master 127s 1cf163c..d104221 good_bmark -> good_bmark 127s 70e967f..98f3526 branches/good_branch -> branches/good_branch 127s * [new branch] new_bmark -> new_bmark 127s * [new branch] branches/new_branch -> branches/new_branch 127s ! [rejected] bad_bmark1 -> bad_bmark1 (non-fast-forward) 127s ! [rejected] bad_bmark2 -> bad_bmark2 (non-fast-forward) 127s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 127s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 127s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 127s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 127s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 127s /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. 127s or locale.getdefaultlocale()[1] 127s WARNING: capability_push is disabled, only do so when really sure 127s WARNING: various enhanced features might fail in subtle ways 127s no changes found 127s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 127s 70e967f..98f3526 branches/good_branch -> branches/good_branch 127s 1cf163c..d104221 good_bmark -> good_bmark 127s 1cf163c..c37c40e master -> master 127s * [new branch] new_bmark -> new_bmark 127s * [new branch] branches/new_branch -> branches/new_branch 127s 1cf163c..c37c40e master -> master 127s 1cf163c..d104221 good_bmark -> good_bmark 127s 70e967f..98f3526 branches/good_branch -> branches/good_branch 127s * [new branch] new_bmark -> new_bmark 127s * [new branch] branches/new_branch -> branches/new_branch 128s ok 24 - remote big push dry-run 128s 128s expecting success: 128s test_when_finished "rm -rf hgrepo gitrepo*" && 128s 128s setup_big_push 128s 128s ( 128s cd gitrepo && 128s 128s if test "$CAPABILITY_PUSH" = "t" 128s then 128s check_push 0 --force --dry-run --all <<-\EOF 128s master:forced-update 128s good_bmark:forced-update 128s branches/good_branch:forced-update 128s new_bmark:new 128s branches/new_branch:new 128s bad_bmark1:forced-update 128s bad_bmark2:forced-update 128s branches/bad_branch:forced-update 128s EOF 128s else 128s check_push 0 --force --dry-run --all <<-\EOF 128s master 128s good_bmark 128s branches/good_branch 128s new_bmark:new 128s branches/new_branch:new 128s bad_bmark1:forced-update 128s bad_bmark2:forced-update 128s branches/bad_branch:forced-update 128s EOF 128s fi 128s ) && 128s 128s check_branch hgrepo default one && 128s check_branch hgrepo good_branch "good branch" && 128s check_branch hgrepo bad_branch "bad branch" && 128s check_branch hgrepo new_branch && 128s check_bookmark hgrepo good_bmark one && 128s check_bookmark hgrepo bad_bmark1 one && 128s check_bookmark hgrepo bad_bmark2 one && 128s check_bookmark hgrepo new_bmark 128s 130s Cloning into 'gitrepo'... 130s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 130s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 130s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 130s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 130s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 130s or locale.getdefaultlocale()[1] 130s WARNING: capability_push is disabled, only do so when really sure 130s WARNING: various enhanced features might fail in subtle ways 130s adding changesets 130s adding manifests 130s adding file changes 130s adding remote bookmark bad_bmark1 130s adding remote bookmark bad_bmark2 130s adding remote bookmark good_bmark 130s added 4 changesets with 4 changes to 1 files 130s new changesets 48f2fd41b893:9812f4d1de71 130s progress revision walk 'bookmarks/master' (1/1) 130s progress revision 0 'master' (0/2) 130s progress revision 2 'bad_branch' (0/2) 130s HEAD is now at 906fd7f zero 130s HEAD is now at 906fd7f zero 130s HEAD is now at 1c315dc good branch 131s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 131s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 131s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 131s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 131s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 131s or locale.getdefaultlocale()[1] 131s WARNING: capability_push is disabled, only do so when really sure 131s WARNING: various enhanced features might fail in subtle ways 131s no changes found 131s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 131s + af92844...07c1f88 branches/bad_branch -> branches/bad_branch (forced update) 131s 1c315dc..83c3af5 branches/good_branch -> branches/good_branch 131s + b866853...8f58b5e bad_bmark1 -> bad_bmark1 (forced update) 131s + b866853...82b144e bad_bmark2 -> bad_bmark2 (forced update) 131s b866853..8c701c8 good_bmark -> good_bmark 131s b866853..a17d0ae master -> master 131s * [new branch] branches/new_branch -> branches/new_branch 131s * [new branch] new_bmark -> new_bmark 131s b866853..a17d0ae master -> master 131s b866853..8c701c8 good_bmark -> good_bmark 131s 1c315dc..83c3af5 branches/good_branch -> branches/good_branch 131s * [new branch] new_bmark -> new_bmark 131s * [new branch] branches/new_branch -> branches/new_branch 131s + b866853...8f58b5e bad_bmark1 -> bad_bmark1 (forced update) 131s + b866853...82b144e bad_bmark2 -> bad_bmark2 (forced update) 131s + af92844...07c1f88 branches/bad_branch -> branches/bad_branch (forced update) 132s ok 25 - remote big push force dry-run 132s 132s expecting success: 132s test_when_finished "rm -rf hgrepo gitrepo*" && 132s 132s ( 132s hg init hgrepo && 132s cd hgrepo && 132s echo zero > content && 132s hg add content && 132s hg commit -m zero && 132s echo one > content && 132s hg commit -m one 132s ) && 132s 132s ( 132s git clone "hg::hgrepo" gitrepo && 132s cd gitrepo && 132s git reset --hard HEAD^ && 132s echo two > content && 132s git commit -a -m two && 132s test_expect_code 1 git push && 132s test_expect_code 1 git push 132s ) 132s 133s Cloning into 'gitrepo'... 133s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 133s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 133s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 133s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 133s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 133s or locale.getdefaultlocale()[1] 133s WARNING: capability_push is disabled, only do so when really sure 133s WARNING: various enhanced features might fail in subtle ways 133s adding changesets 133s adding manifests 133s adding file changes 133s added 2 changesets with 2 changes to 1 files 133s new changesets 6ad41642e5b9:8760f926f613 133s progress revision walk 'bookmarks/master' (1/1) 133s progress revision 0 'master' (0/2) 133s HEAD is now at 1e6dfcc zero 133s [master 0087dc4] two 133s Author: A U Thor 133s 1 file changed, 1 insertion(+), 1 deletion(-) 133s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 133s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 133s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 133s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 133s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 133s or locale.getdefaultlocale()[1] 133s WARNING: capability_push is disabled, only do so when really sure 133s WARNING: various enhanced features might fail in subtle ways 133s no changes found 133s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 133s ! [rejected] master -> master (non-fast-forward) 133s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo' 133s hint: Updates were rejected because the tip of your current branch is behind 133s hint: its remote counterpart. If you want to integrate the remote changes, 133s hint: use 'git pull' before pushing again. 133s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 133s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 133s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 133s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 133s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 133s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 133s or locale.getdefaultlocale()[1] 133s WARNING: capability_push is disabled, only do so when really sure 133s WARNING: various enhanced features might fail in subtle ways 133s no changes found 133s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 133s ! [rejected] master -> master (non-fast-forward) 133s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo' 133s hint: Updates were rejected because the tip of your current branch is behind 133s hint: its remote counterpart. If you want to integrate the remote changes, 133s hint: use 'git pull' before pushing again. 133s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 133s ok 26 - remote double failed push 133s 133s expecting success: 133s test_when_finished "rm -rf gitrepo hgrepo" && 133s 133s ( 133s hg init hgrepo && 133s cd hgrepo && 133s echo zero > content && 133s hg add content && 133s hg commit -m zero && 133s echo feature-a > content && 133s hg commit -m feature-a 133s hg bookmark feature-a 133s ) && 133s 133s git clone "hg::hgrepo" gitrepo && 133s check gitrepo origin/feature-a feature-a && 133s 133s ( 133s cd hgrepo && 133s hg bookmark -d feature-a 133s ) && 133s 133s ( 133s cd gitrepo && 133s git fetch --prune origin 133s git branch -a > out && 133s ! grep feature-a out 133s ) 133s 134s Cloning into 'gitrepo'... 134s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 134s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 134s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 134s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 134s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 134s or locale.getdefaultlocale()[1] 134s WARNING: capability_push is disabled, only do so when really sure 134s WARNING: various enhanced features might fail in subtle ways 134s adding changesets 134s adding manifests 134s adding file changes 134s adding remote bookmark feature-a 134s added 2 changesets with 2 changes to 1 files 134s new changesets 41c266ae0113:6ecee4213059 134s progress revision walk 'bookmarks/master' (1/1) 134s progress revision 0 'master' (0/2) 135s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 135s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 135s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 135s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 135s /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. 135s or locale.getdefaultlocale()[1] 135s WARNING: capability_push is disabled, only do so when really sure 135s WARNING: various enhanced features might fail in subtle ways 135s no changes found 135s error: refusing to update ref with bad name 'hg/origin/refs/bookmarks/feature-a' 135s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 135s - [deleted] (none) -> origin/feature-a 135s ok 27 - fetch prune 135s 135s expecting success: 135s test_when_finished "rm -rf gitrepo hgrepo" && 135s 135s ( 135s hg init hgrepo && 135s cd hgrepo && 135s echo zero > content && 135s hg add content && 135s hg commit -m zero && 135s hg up -r null && 135s echo another > ocontent && 135s hg add ocontent && 135s hg commit -m one 135s ) && 135s 135s # -r 1 acts as master 135s ( 135s git init --bare gitrepo && cd gitrepo && 135s git remote add origin hg::../hgrepo && 135s git fetch origin refs/heads/*:refs/heads/* 135s ) && 135s 135s ( 135s cd hgrepo && 135s hg up 0 && 135s echo two > content && 135s hg commit -m two 135s ) && 135s 135s # now master already exists 135s # -r 2 becomes master head which has rev 0 as ancestor 135s # so when importing (parentless) rev 0, a reset is needed 135s # (to ensure rev 0 is not given a parent commit) 135s ( 135s cd gitrepo && 135s git fetch origin && 135s git log --format="%s" origin/master > ../actual 135s ) && 135s 135s hg -R hgrepo log -r . -f --template "{desc}\n" > expected && 135s test_cmp actual expected 135s 135s 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 136s created new head 136s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/gitrepo/ 136s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 136s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 136s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 136s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 136s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 136s or locale.getdefaultlocale()[1] 136s WARNING: capability_push is disabled, only do so when really sure 136s WARNING: various enhanced features might fail in subtle ways 136s adding changesets 136s adding manifests 136s adding file changes 136s added 2 changesets with 2 changes to 2 files (+1 heads) 136s new changesets e2b8b587db52:451f41ebc916 136s WARNING: Branch 'default' has more than one head, consider merging 136s WARNING: Branch 'default' has more than one head, consider merging 136s progress revision 1 'default' (0/1) 136s From hg::../hgrepo 136s * [new branch] branches/default -> branches/default 136s * [new branch] master -> master 136s * [new branch] branches/default -> origin/branches/default 136s * [new branch] master -> origin/master 136s 1 files updated, 0 files merged, 1 files removed, 0 files unresolved 137s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 137s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 137s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 137s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 137s /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. 137s or locale.getdefaultlocale()[1] 137s WARNING: capability_push is disabled, only do so when really sure 137s WARNING: various enhanced features might fail in subtle ways 137s searching for changes 137s adding changesets 137s adding manifests 137s adding file changes 137s added 1 changesets with 1 changes to 1 files 137s new changesets b0ad2693fd31 137s WARNING: Branch 'default' has more than one head, consider merging 137s progress revision walk 'branches/default' (2/2) 137s progress revision 0 'default' (0/2) 137s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 137s + a238cc4...6cb59bd branches/default -> origin/branches/default (forced update) 137s + a238cc4...6cb59bd master -> origin/master (forced update) 137s ok 28 - fetch multiple independent histories 137s 137s expecting success: 137s test_when_finished "rm -rf gitrepo* hgrepo*" && 137s 137s ( 137s hg init hgrepo && 137s cd hgrepo && 137s echo a > a && 137s hg add a && 137s hg commit -m a && 137s hg bookmark -r null bookmark 137s ) && 137s 137s ( 137s git clone "hg::hgrepo" gitrepo && 137s check gitrepo HEAD a && 137s cd gitrepo && 137s git checkout --quiet -b bookmark && 137s git remote -v && 137s echo b > b && 137s git add b && 137s git commit -m b && 137s git push origin bookmark 137s ) 137s 138s Cloning into 'gitrepo'... 138s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 138s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 138s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 138s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 138s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 138s or locale.getdefaultlocale()[1] 138s WARNING: capability_push is disabled, only do so when really sure 138s WARNING: various enhanced features might fail in subtle ways 138s adding changesets 138s adding manifests 138s adding file changes 138s adding remote bookmark bookmark 138s added 1 changesets with 1 changes to 1 files 138s new changesets af8c702599b3 138s WARNING: Ignoring invalid bookmark 'bookmark' 138s progress revision walk 'bookmarks/master' (0/0) 138s progress revision 0 'master' (0/1) 138s origin hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo (fetch) 138s origin hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo (push) 138s [bookmark 8946ab0] b 138s Author: A U Thor 138s 1 file changed, 1 insertion(+) 138s create mode 100644 b 138s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 138s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 138s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 138s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 138s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 138s or locale.getdefaultlocale()[1] 138s WARNING: capability_push is disabled, only do so when really sure 138s WARNING: various enhanced features might fail in subtle ways 138s no changes found 138s WARNING: Ignoring invalid bookmark 'bookmark' 138s searching for changes 138s adding changesets 138s adding manifests 138s adding file changes 138s added 1 changesets with 1 changes to 1 files 138s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 138s * [new branch] bookmark -> bookmark 138s ok 29 - clone remote with null bookmark, then push 138s 138s expecting success: 138s test_when_finished "rm -rf hgrepo gitrepo" && 138s 138s ( 138s hg init hgrepo && 138s cd hgrepo && 138s echo one > content && 138s hg add content && 138s hg commit -m one && 138s echo two > content && 138s hg commit -m two 138s ) && 138s 138s git clone "hg::hgrepo" gitrepo && 138s hg -R hgrepo log --template "{node}\n\n" > expected && 138s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 138s test_cmp expected actual 138s 139s Cloning into 'gitrepo'... 139s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 139s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 139s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 139s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 139s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 139s or locale.getdefaultlocale()[1] 139s WARNING: capability_push is disabled, only do so when really sure 139s WARNING: various enhanced features might fail in subtle ways 139s adding changesets 139s adding manifests 139s adding file changes 139s added 2 changesets with 2 changes to 1 files 139s new changesets 58f7abdd6f01:f34af69e035f 139s progress revision walk 'bookmarks/master' (1/1) 139s progress revision 0 'master' (0/2) 139s ok 30 - notes 139s 139s checking known breakage: 139s test_when_finished "rm -rf hgrepo gitrepo" && 139s 139s ( 139s hg init hgrepo && 139s cd hgrepo && 139s echo one > content && 139s hg add content && 139s hg commit -m one 139s ) && 139s 139s git clone "hg::hgrepo" gitrepo && 139s 139s ( 139s cd gitrepo && 139s echo two > content && 139s git commit -a -m two && 139s git push 139s ) && 139s 139s hg -R hgrepo log --template "{node}\n\n" > expected && 139s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 139s test_cmp expected actual 139s 140s Cloning into 'gitrepo'... 140s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 140s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 140s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 140s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 140s /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. 140s or locale.getdefaultlocale()[1] 140s WARNING: capability_push is disabled, only do so when really sure 140s WARNING: various enhanced features might fail in subtle ways 140s adding changesets 140s adding manifests 140s adding file changes 140s added 1 changesets with 1 changes to 1 files 140s new changesets b3e4de9a1987 140s progress revision walk 'bookmarks/master' (0/0) 140s progress revision 0 'master' (0/1) 140s [master bec347f] two 140s Author: A U Thor 140s 1 file changed, 1 insertion(+), 1 deletion(-) 140s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 140s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 140s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 140s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 140s /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. 140s or locale.getdefaultlocale()[1] 140s WARNING: capability_push is disabled, only do so when really sure 140s WARNING: various enhanced features might fail in subtle ways 140s no changes found 140s searching for changes 140s adding changesets 140s adding manifests 140s adding file changes 140s added 1 changesets with 1 changes to 1 files 140s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 140s d5f1b29..bec347f master -> master 140s --- expected 2025-10-18 18:27:45.684495081 +0000 140s +++ actual 2025-10-18 18:27:45.710635583 +0000 140s @@ -1,4 +1,3 @@ 140s -7ada2ed24997bbb5e9f76e457d76130355c3a248 140s 140s b3e4de9a19874e43865d86189da6f70035c41259 140s 140s not ok 31 - push updates notes # TODO known breakage 140s 140s expecting success: 140s test_when_finished "rm -rf hgrepo gitrepo" && 140s 140s ( 140s hg init hgrepo && 140s cd hgrepo && 140s echo one > content && 140s hg add content && 140s hg commit -m one 140s ) && 140s 140s git clone "hg::hgrepo" gitrepo && 140s 140s ( 140s cd gitrepo && 140s echo two > content && 140s git commit -a -m two && 140s git push origin master && 140s git branch feature-a && 140s git push origin feature-a 140s ) && 140s 140s check_bookmark hgrepo feature-a two 140s 141s Cloning into 'gitrepo'... 141s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 141s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 141s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 141s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 141s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 141s or locale.getdefaultlocale()[1] 141s WARNING: capability_push is disabled, only do so when really sure 141s WARNING: various enhanced features might fail in subtle ways 141s adding changesets 141s adding manifests 141s adding file changes 141s added 1 changesets with 1 changes to 1 files 141s new changesets e8be28b2cc51 141s progress revision walk 'bookmarks/master' (0/0) 141s progress revision 0 'master' (0/1) 141s [master 6e3a8f9] two 141s Author: A U Thor 141s 1 file changed, 1 insertion(+), 1 deletion(-) 141s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 141s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 141s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 141s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 141s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 141s or locale.getdefaultlocale()[1] 141s WARNING: capability_push is disabled, only do so when really sure 141s WARNING: various enhanced features might fail in subtle ways 141s no changes found 141s searching for changes 141s adding changesets 141s adding manifests 141s adding file changes 141s added 1 changesets with 1 changes to 1 files 141s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 141s f9c50eb..6e3a8f9 master -> master 141s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 141s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 141s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 141s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 141s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 141s or locale.getdefaultlocale()[1] 141s WARNING: capability_push is disabled, only do so when really sure 141s WARNING: various enhanced features might fail in subtle ways 141s no changes found 141s 1 local changesets published 141s searching for changes 141s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 141s * [new branch] feature-a -> feature-a 142s ok 32 - push bookmark without changesets 142s 142s expecting success: 142s test_when_finished "rm -rf hgrepo gitrepo" && 142s 142s ( 142s hg init hgrepo && 142s cd hgrepo && 142s echo one > content && 142s hg add content && 142s hg commit -m one 142s ) && 142s 142s git clone "hg::hgrepo" gitrepo && 142s 142s (cd hgrepo && hg tag v1.0) && 142s (cd gitrepo && git pull) && 142s 142s echo "v1.0" > expected && 142s git --git-dir=gitrepo/.git tag > actual && 142s test_cmp expected actual 142s 142s Cloning into 'gitrepo'... 142s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 142s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 142s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 142s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 142s /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. 142s or locale.getdefaultlocale()[1] 142s WARNING: capability_push is disabled, only do so when really sure 142s WARNING: various enhanced features might fail in subtle ways 142s adding changesets 142s adding manifests 142s adding file changes 142s added 1 changesets with 1 changes to 1 files 142s new changesets 3bc2b7aa9fb9 142s progress revision walk 'bookmarks/master' (0/0) 142s progress revision 0 'master' (0/1) 142s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 142s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 142s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 142s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 143s /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. 143s or locale.getdefaultlocale()[1] 143s WARNING: capability_push is disabled, only do so when really sure 143s WARNING: various enhanced features might fail in subtle ways 143s searching for changes 143s adding changesets 143s adding manifests 143s adding file changes 143s added 1 changesets with 1 changes to 1 files 143s new changesets a7b7e49f835d 143s progress revision 1 'default' (0/1) 143s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 143s ba12a52..b92ecd4 master -> origin/master 143s ba12a52..b92ecd4 branches/default -> origin/branches/default 143s * [new tag] v1.0 -> v1.0 143s Updating ba12a52..b92ecd4 143s Fast-forward 143s .hgtags | 1 + 143s 1 file changed, 1 insertion(+) 143s create mode 100644 .hgtags 143s ok 33 - pull tags 143s 143s expecting success: 143s test_when_finished "rm -rf hgrepo gitrepo" && 143s 143s ( 143s hg init hgrepo && 143s cd hgrepo && 143s echo one > content && 143s hg add content && 143s hg commit -m one && 143s hg branch feature && 143s echo two > content && 143s hg commit -m two && 143s hg update default && 143s echo three > content && 143s hg commit -m three 143s ) && 143s 143s ( 143s git clone "hg::hgrepo" gitrepo && 143s cd gitrepo && 143s git merge -m Merge -Xtheirs origin/branches/feature && 143s git push 143s ) && 143s 143s cat > expected <<-EOF && 143s Merge 143s three 143s two 143s one 143s EOF 143s hg -R hgrepo log --template "{desc}\n" > actual && 143s test_cmp expected actual 143s 143s marked working directory as branch feature 143s (branches are permanent and global, did you want a bookmark?) 144s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 144s Cloning into 'gitrepo'... 144s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 144s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 144s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 144s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 144s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 144s or locale.getdefaultlocale()[1] 144s WARNING: capability_push is disabled, only do so when really sure 144s WARNING: various enhanced features might fail in subtle ways 144s adding changesets 144s adding manifests 144s adding file changes 144s added 3 changesets with 3 changes to 1 files (+1 heads) 144s new changesets 089a4afb1a22:b7f83736a041 144s progress revision walk 'bookmarks/master' (2/2) 144s progress revision 0 'master' (0/2) 144s progress revision 1 'feature' (0/1) 144s Auto-merging content 144s Merge made by the 'ort' strategy. 144s content | 2 +- 144s 1 file changed, 1 insertion(+), 1 deletion(-) 144s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 144s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 144s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 144s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 144s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 144s or locale.getdefaultlocale()[1] 144s WARNING: capability_push is disabled, only do so when really sure 144s WARNING: various enhanced features might fail in subtle ways 144s no changes found 144s searching for changes 144s adding changesets 144s adding manifests 144s adding file changes 144s added 1 changesets with 1 changes to 1 files (-1 heads) 144s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 144s 9f7e6ea..07fc644 master -> master 145s ok 34 - push merged named branch 145s 145s expecting success: 145s test_when_finished "rm -rf hgrepo gitrepo" && 145s 145s ( 145s hg init hgrepo && 145s cd hgrepo && 145s echo one > content && 145s hg add content && 145s hg commit -m one 145s ) && 145s 145s ( 145s git clone "hg::hgrepo" gitrepo && 145s cd gitrepo && 145s git tag v1.0 && 145s git push --tags 145s ) && 145s 145s echo "C O Mitter " > expected && 145s hg -R hgrepo log --template "{author}\n" -r tip > actual && 145s test_cmp expected actual 145s 145s Cloning into 'gitrepo'... 145s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 145s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 145s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 145s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 145s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 145s or locale.getdefaultlocale()[1] 145s WARNING: capability_push is disabled, only do so when really sure 145s WARNING: various enhanced features might fail in subtle ways 145s adding changesets 145s adding manifests 145s adding file changes 145s added 1 changesets with 1 changes to 1 files 145s new changesets b01e68d7048a 145s progress revision walk 'bookmarks/master' (0/0) 145s progress revision 0 'master' (0/1) 145s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 145s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 145s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 145s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 145s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 145s or locale.getdefaultlocale()[1] 145s WARNING: capability_push is disabled, only do so when really sure 145s WARNING: various enhanced features might fail in subtle ways 145s no changes found 145s searching for changes 145s adding changesets 145s adding manifests 145s adding file changes 145s added 1 changesets with 1 changes to 1 files 145s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 145s * [new tag] v1.0 -> v1.0 146s ok 35 - light tag sets author 146s 146s expecting success: 146s test_when_finished "rm -rf hgrepo gitrepo" && 146s 146s ( 146s hg init hgrepo && 146s cd hgrepo && 146s echo one > content && 146s hg add content && 146s hg commit -m one && 146s hg branch feature && 146s echo two > content && 146s hg commit -m two 146s ) && 146s 146s ( 146s git clone "hg::hgrepo" gitrepo && 146s cd gitrepo && 146s git branch && 146s git checkout branches/feature && 146s git tag v1.0 && 146s git push --tags 146s ) && 146s 146s echo feature > expected && 146s hg -R hgrepo log --template="{branch}\n" -r tip > actual && 146s test_cmp expected actual 146s 146s marked working directory as branch feature 146s (branches are permanent and global, did you want a bookmark?) 146s Cloning into 'gitrepo'... 146s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 146s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 146s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 146s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 147s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 147s or locale.getdefaultlocale()[1] 147s WARNING: capability_push is disabled, only do so when really sure 147s WARNING: various enhanced features might fail in subtle ways 147s adding changesets 147s adding manifests 147s adding file changes 147s added 2 changesets with 2 changes to 1 files 147s new changesets 40bcbd296727:300e2e28f2f1 147s progress revision walk 'bookmarks/master' (0/0) 147s progress revision 0 'master' (0/1) 147s progress revision 1 'feature' (0/1) 147s * master 147s Switched to a new branch 'branches/feature' 147s branch 'branches/feature' set up to track 'origin/branches/feature'. 147s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 147s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 147s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 147s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 147s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 147s or locale.getdefaultlocale()[1] 147s WARNING: capability_push is disabled, only do so when really sure 147s WARNING: various enhanced features might fail in subtle ways 147s no changes found 147s searching for changes 147s adding changesets 147s adding manifests 147s adding file changes 147s added 1 changesets with 1 changes to 1 files 147s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 147s * [new tag] v1.0 -> v1.0 147s ok 36 - push tag different branch 147s 147s expecting success: 147s test_when_finished "rm -rf hgrepo gitrepo" && 147s 147s ( 147s hg init hgrepo && 147s cd hgrepo && 147s 147s echo test > test_file && 147s hg add test_file && 147s hg commit -m add && 147s 147s hg rm test_file && 147s hg commit -m remove 147s ) && 147s 147s git clone "hg::hgrepo" gitrepo && 147s check_files gitrepo 147s 148s Cloning into 'gitrepo'... 148s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 148s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 148s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 148s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 148s /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. 148s or locale.getdefaultlocale()[1] 148s WARNING: capability_push is disabled, only do so when really sure 148s WARNING: various enhanced features might fail in subtle ways 148s adding changesets 148s adding manifests 148s adding file changes 148s added 2 changesets with 1 changes to 1 files 148s new changesets 89d253dd7d9d:1db1e5ee24f7 148s progress revision walk 'bookmarks/master' (1/1) 148s progress revision 0 'master' (0/2) 148s ok 37 - cloning a removed file works 148s 148s expecting success: 148s test_when_finished "rm -rf hgrepo gitrepo" && 148s 148s ( 148s hg init hgrepo && 148s cd hgrepo && 148s 148s echo test > dir_or_file && 148s hg add dir_or_file && 148s hg commit -m add && 148s 148s hg rm dir_or_file && 148s mkdir dir_or_file && 148s echo test > dir_or_file/test_file && 148s hg add dir_or_file/test_file && 148s hg commit -m replase 148s ) && 148s 148s git clone "hg::hgrepo" gitrepo && 148s check_files gitrepo "dir_or_file/test_file" 148s 149s Cloning into 'gitrepo'... 149s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 149s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 149s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 149s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 149s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 149s or locale.getdefaultlocale()[1] 149s WARNING: capability_push is disabled, only do so when really sure 149s WARNING: various enhanced features might fail in subtle ways 149s adding changesets 149s adding manifests 149s adding file changes 149s added 2 changesets with 2 changes to 2 files 149s new changesets bc24478f03ce:3f9ba7acabc6 149s progress revision walk 'bookmarks/master' (1/1) 149s progress revision 0 'master' (0/2) 149s ok 38 - cloning a file replaced with a directory 149s 149s expecting success: 149s test_when_finished "rm -rf hgrepo gitrepo" && 149s 149s ( 149s hg init hgrepo && 149s cd hgrepo && 149s 149s mkdir dir_or_file && 149s echo test > dir_or_file/test_file && 149s hg add dir_or_file/test_file && 149s hg commit -m add && 149s 149s hg rm dir_or_file/test_file && 149s echo test > dir_or_file && 149s hg add dir_or_file && 149s hg commit -m add && 149s 149s hg rm dir_or_file 149s ) && 149s 149s git clone "hg::hgrepo" gitrepo && 149s check_files gitrepo "dir_or_file" 149s 150s Cloning into 'gitrepo'... 150s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 150s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 150s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 150s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 150s /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. 150s or locale.getdefaultlocale()[1] 150s WARNING: capability_push is disabled, only do so when really sure 150s WARNING: various enhanced features might fail in subtle ways 151s adding changesets 151s adding manifests 151s adding file changes 151s added 2 changesets with 2 changes to 2 files 151s new changesets 38f9c6a7dead:ed0c3b2d208a 151s progress revision walk 'bookmarks/master' (1/1) 151s progress revision 0 'master' (0/2) 151s ok 39 - clone replace directory with a file 151s 151s expecting success: 151s test_when_finished "rm -rf hgrepo gitrepo" && 151s 151s ( 151s hg init hgrepo && 151s cd hgrepo && 151s 151s touch test.txt && 151s hg add test.txt && 151s hg commit -m master && 151s hg branch parent && 151s echo test >test.txt && 151s hg commit -m test && 151s hg branch parent/child && 151s echo test1 >test.txt && 151s hg commit -m test1 151s ) && 151s 151s git clone -c remote-hg.ignore-name=child "hg::hgrepo" gitrepo && 151s check_files gitrepo "test.txt" 151s 151s marked working directory as branch parent 151s (branches are permanent and global, did you want a bookmark?) 151s marked working directory as branch parent/child 152s Cloning into 'gitrepo'... 152s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 152s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 152s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 152s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 152s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 152s or locale.getdefaultlocale()[1] 152s WARNING: capability_push is disabled, only do so when really sure 152s WARNING: various enhanced features might fail in subtle ways 152s adding changesets 152s adding manifests 152s adding file changes 152s added 3 changesets with 3 changes to 1 files 152s new changesets 18ed5eccd5e0:3f7faeefe0bb 152s WARNING: Ignoring matched branch parent/child 152s progress revision walk 'bookmarks/master' (0/0) 152s progress revision 0 'master' (0/1) 152s progress revision 1 'parent' (0/1) 152s ok 40 - clone can ignore invalid refnames 152s 152s expecting success: 152s test_when_finished "rm -rf hgrepo gitrepo" && 152s 152s ( 152s hg init hgrepo && 152s cd hgrepo && 152s echo one > content && 152s hg add content && 152s hg commit -m one 152s ) && 152s 152s ( 152s git clone "hg::hgrepo" gitrepo && 152s cd gitrepo && 152s git tag -m "Version 1.0" v1.0 && 152s git push --tags 152s ) && 152s 152s cat > expected <<-\EOF && 152s tip:Version 1.0:C O Mitter 152s v1.0:one:H G Wells 152s EOF 152s 152s hg -R hgrepo log --template "{tags}:{desc}:{author}\n" > actual && 152s 152s test_cmp expected actual 152s 152s Cloning into 'gitrepo'... 152s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 152s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 152s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 152s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 153s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 153s or locale.getdefaultlocale()[1] 153s WARNING: capability_push is disabled, only do so when really sure 153s WARNING: various enhanced features might fail in subtle ways 153s adding changesets 153s adding manifests 153s adding file changes 153s added 1 changesets with 1 changes to 1 files 153s new changesets e66cd9795003 153s progress revision walk 'bookmarks/master' (0/0) 153s progress revision 0 'master' (0/1) 153s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 153s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 153s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 153s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 153s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 153s or locale.getdefaultlocale()[1] 153s WARNING: capability_push is disabled, only do so when really sure 153s WARNING: various enhanced features might fail in subtle ways 153s no changes found 153s searching for changes 153s adding changesets 153s adding manifests 153s adding file changes 153s added 1 changesets with 1 changes to 1 files 153s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 153s * [new tag] v1.0 -> v1.0 153s ok 41 - push annotated tag 153s 153s expecting success: 153s test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && 153s 153s hg init hgrepo && 153s 153s ( 153s git clone "hg::hgrepo" gitrepo1 && 153s cd gitrepo1 && 153s echo two >> content && 153s git add content && 153s git commit -m two --date="2016-09-26 00:00:00 -0230" && 153s git push 153s ) && 153s 153s git clone "hg::hgrepo" gitrepo2 && 153s 153s git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && 153s git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && 153s test_cmp expected actual 153s 153s Cloning into 'gitrepo1'... 153s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 153s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 153s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 153s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 153s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 153s or locale.getdefaultlocale()[1] 153s WARNING: capability_push is disabled, only do so when really sure 153s WARNING: various enhanced features might fail in subtle ways 153s no changes found 153s warning: You appear to have cloned an empty repository. 153s [master (root-commit) 9f40cc0] two 153s Author: A U Thor 153s Date: Mon Sep 26 00:00:00 2016 -0230 153s 1 file changed, 1 insertion(+) 153s create mode 100644 content 153s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 153s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 153s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 153s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 154s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 154s or locale.getdefaultlocale()[1] 154s WARNING: capability_push is disabled, only do so when really sure 154s WARNING: various enhanced features might fail in subtle ways 154s no changes found 154s searching for changes 154s adding changesets 154s adding manifests 154s adding file changes 154s added 1 changesets with 1 changes to 1 files 154s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main/tmp/hgrepo 154s * [new branch] master -> master 154s Cloning into 'gitrepo2'... 154s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 154s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 154s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 154s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 154s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 154s or locale.getdefaultlocale()[1] 154s WARNING: capability_push is disabled, only do so when really sure 154s WARNING: various enhanced features might fail in subtle ways 154s adding changesets 154s adding manifests 154s adding file changes 154s added 1 changesets with 1 changes to 1 files 154s new changesets e522f351d13b 154s progress revision walk 'bookmarks/master' (0/0) 154s progress revision 0 'master' (0/1) 154s ok 42 - timezone issues with negative offsets 154s 154s # still have 2 known breakage(s) 154s # passed all remaining 40 test(s) 154s 1..42 154s /bin/sh main-push.t --verbose 154s expecting success: 154s ( 154s hg init hgrepo && 154s cd hgrepo && 154s echo zero > content && 154s hg add content && 154s hg commit -m zero 154s ) 154s 154s ok 1 - setup 154s 154s expecting success: 154s test_when_finished "rm -rf gitrepo*" && 154s git clone "hg::hgrepo" gitrepo && 154s check gitrepo HEAD zero 154s 154s Cloning into 'gitrepo'... 154s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 154s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 154s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 154s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 155s /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. 155s or locale.getdefaultlocale()[1] 155s adding changesets 155s adding manifests 155s adding file changes 155s added 1 changesets with 1 changes to 1 files 155s new changesets dc1f87d35289 155s progress revision walk 'bookmarks/master' (0/0) 155s progress revision 0 'master' (0/1) 155s ok 2 - cloning 155s 155s expecting success: 155s test_when_finished "rm -rf gitrepo*" && 155s 155s ( 155s cd hgrepo && 155s hg branch next && 155s echo next > content && 155s hg commit -m next 155s ) && 155s 155s git clone "hg::hgrepo" gitrepo && 155s check gitrepo origin/branches/next next 155s 155s marked working directory as branch next 155s (branches are permanent and global, did you want a bookmark?) 155s Cloning into 'gitrepo'... 155s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 155s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 155s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 155s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 155s /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. 155s or locale.getdefaultlocale()[1] 155s adding changesets 155s adding manifests 155s adding file changes 155s added 2 changesets with 2 changes to 1 files 155s new changesets dc1f87d35289:5f1b21ef3860 155s progress revision walk 'bookmarks/master' (0/0) 155s progress revision 0 'master' (0/1) 155s progress revision 1 'next' (0/1) 155s ok 3 - cloning with branches 155s 155s expecting success: 155s test_when_finished "rm -rf gitrepo*" && 155s 155s ( 155s cd hgrepo && 155s hg checkout default && 155s hg bookmark feature-a && 155s echo feature-a > content && 155s hg commit -m feature-a 155s ) && 155s 155s git clone "hg::hgrepo" gitrepo && 155s check gitrepo origin/feature-a feature-a 155s 155s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 156s Cloning into 'gitrepo'... 156s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 156s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 156s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 156s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 156s /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. 156s or locale.getdefaultlocale()[1] 156s adding changesets 156s adding manifests 156s adding file changes 156s adding remote bookmark feature-a 156s added 3 changesets with 3 changes to 1 files (+1 heads) 156s new changesets dc1f87d35289:370d0ebd7b98 156s progress revision walk 'bookmarks/master' (2/2) 156s progress revision 0 'master' (0/2) 156s progress revision 1 'next' (0/1) 156s ok 4 - cloning with bookmarks 156s 156s expecting success: 156s test_when_finished "rm -rf gitrepo*" && 156s 156s ( 156s cd hgrepo && 156s hg bookmark devel 156s ) && 156s 156s ( 156s git clone "hg::hgrepo" gitrepo && 156s cd gitrepo && 156s git checkout --quiet devel && 156s echo devel > content && 156s git commit -a -m devel && 156s git push --quiet origin devel 156s ) && 156s 156s check_bookmark hgrepo devel devel 156s 156s Cloning into 'gitrepo'... 156s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 156s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 156s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 156s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 157s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 157s or locale.getdefaultlocale()[1] 157s adding changesets 157s adding manifests 157s adding file changes 157s adding remote bookmark devel 157s adding remote bookmark feature-a 157s added 3 changesets with 3 changes to 1 files (+1 heads) 157s new changesets dc1f87d35289:370d0ebd7b98 157s progress revision walk 'bookmarks/master' (2/2) 157s progress revision 0 'master' (0/2) 157s progress revision 1 'next' (0/1) 157s [devel 107a4b3] devel 157s Author: A U Thor 157s 1 file changed, 1 insertion(+), 1 deletion(-) 157s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 157s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 157s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 157s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 157s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 157s or locale.getdefaultlocale()[1] 157s no changes found 157s searching for changes 157s adding changesets 157s adding manifests 157s adding file changes 157s added 1 changesets with 1 changes to 1 files 157s ok 5 - update bookmark 157s 157s expecting success: 157s test_when_finished "rm -rf gitrepo*" && 157s 157s ( 157s git clone "hg::hgrepo" gitrepo && 157s cd gitrepo && 157s git checkout --quiet -b feature-b && 157s echo feature-b > content && 157s git commit -a -m feature-b && 157s git push --quiet origin feature-b 157s ) && 157s 157s check_bookmark hgrepo feature-b feature-b 157s 157s Cloning into 'gitrepo'... 157s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 157s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 157s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 157s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 157s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 157s or locale.getdefaultlocale()[1] 157s adding changesets 157s adding manifests 157s adding file changes 157s adding remote bookmark devel 157s adding remote bookmark feature-a 157s added 4 changesets with 4 changes to 1 files (+1 heads) 157s new changesets dc1f87d35289:4271e2ab8711 157s progress revision walk 'bookmarks/master' (3/3) 157s progress revision 0 'master' (0/3) 157s progress revision 1 'next' (0/1) 157s [feature-b 22c44cc] feature-b 157s Author: A U Thor 157s 1 file changed, 1 insertion(+), 1 deletion(-) 157s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 157s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 157s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 157s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 158s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 158s or locale.getdefaultlocale()[1] 158s no changes found 158s searching for changes 158s adding changesets 158s adding manifests 158s adding file changes 158s added 1 changesets with 1 changes to 1 files 158s ok 6 - new bookmark 158s 158s expecting success: 158s test_when_finished "rm -rf hgrepo gitrepo" && 158s 158s ( 158s hg init hgrepo && 158s cd hgrepo && 158s 158s touch content && 158s hg add content && 158s 158s > ../expected && 158s author_test alpha "" "H G Wells " && 158s author_test beta "beta" "beta " && 158s author_test gamma "gamma (comment)" "gamma " && 158s author_test delta "" "Unknown " && 158s author_test epsilon "epsilon" "epsilon " && 158s author_test zeta "zeta " && 158s author_test eta " eta " "eta " && 158s author_test theta "theta < test@example.com >" "theta " && 158s author_test iota "iota >test@example.com>" "iota " && 158s author_test kappa "kappa < test example com>" "kappa " && 158s author_test lambda "lambda@example.com" "Unknown " && 158s author_test mu "mu.mu@example.com" "Unknown " 158s ) && 158s 158s git clone "hg::hgrepo" gitrepo && 158s git --git-dir=gitrepo/.git log --reverse --format="%an <%ae>" > actual && 158s 158s test_cmp expected actual 158s 160s Cloning into 'gitrepo'... 160s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 160s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 160s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 160s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 160s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 160s or locale.getdefaultlocale()[1] 160s adding changesets 160s adding manifests 160s adding file changes 160s added 12 changesets with 12 changes to 1 files 160s new changesets a87065f5bbf7:4225ff1632c4 160s progress revision walk 'bookmarks/master' (11/11) 160s progress revision 0 'master' (0/12) 160s ok 7 - authors 160s 160s expecting success: 160s test_when_finished "rm -rf hgrepo gitrepo" && 160s 160s ( 160s hg init hgrepo && 160s cd hgrepo && 160s 160s echo one >> content && 160s hg add content && 160s hg commit -m one && 160s 160s echo two >> content && 160s hg commit -m two 160s ) && 160s 160s git clone "hg::hgrepo" gitrepo && 160s 160s ( 160s cd hgrepo && 160s hg strip 1 && 160s 160s echo three >> content && 160s hg commit -m three && 160s 160s echo four >> content && 160s hg commit -m four 160s ) && 160s 160s ( 160s cd gitrepo && 160s git fetch && 160s git log --format="%s" origin/master > ../actual 160s ) && 160s 160s hg -R hgrepo log --template "{desc}\n" > expected && 160s test_cmp actual expected 160s 161s Cloning into 'gitrepo'... 161s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 161s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 161s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 161s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 161s /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. 161s or locale.getdefaultlocale()[1] 161s adding changesets 161s adding manifests 161s adding file changes 161s added 2 changesets with 2 changes to 1 files 161s new changesets 2eacb8608b10:13b4ddb91f68 161s progress revision walk 'bookmarks/master' (1/1) 161s progress revision 0 'master' (0/2) 161s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 161s saved backup bundle to /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/hgrepo/.hg/strip-backup/13b4ddb91f68-f7422d28-backup.hg 162s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 162s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 162s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 162s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 162s /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. 162s or locale.getdefaultlocale()[1] 162s searching for changes 162s adding changesets 162s adding manifests 162s adding file changes 162s added 2 changesets with 2 changes to 1 files (+1 heads) 162s new changesets 2ef5f6ac8b7f:2663ca90db36 162s progress revision 2 'default' (0/2) 162s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/hgrepo 162s + 9155e6d...6b98f72 master -> origin/master (forced update) 162s + 9155e6d...6b98f72 branches/default -> origin/branches/default (forced update) 162s ok 8 - strip 162s 162s expecting success: 162s test_when_finished "rm -rf hgrepo gitrepo*" && 162s 162s ( 162s hg init hgrepo && 162s cd hgrepo && 162s echo zero > content && 162s hg add content && 162s hg commit -m zero && 162s hg bookmark master && 162s echo one > content && 162s hg commit -m one 162s ) && 162s 162s ( 162s git clone "hg::hgrepo" gitrepo && 162s cd gitrepo && 162s echo two > content && 162s git commit -a -m two && 162s git push 162s ) && 162s 162s check_branch hgrepo default two 162s 163s Cloning into 'gitrepo'... 163s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 163s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 163s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 163s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 163s /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. 163s or locale.getdefaultlocale()[1] 163s adding changesets 163s adding manifests 163s adding file changes 163s adding remote bookmark master 163s added 2 changesets with 2 changes to 1 files 163s new changesets d5391d917a1e:06940b025436 163s progress revision walk 'bookmarks/default' (1/1) 163s progress revision 0 'default' (0/2) 163s [default e06f455] two 163s Author: A U Thor 163s 1 file changed, 1 insertion(+), 1 deletion(-) 163s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 163s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 163s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 163s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 163s /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. 163s or locale.getdefaultlocale()[1] 163s no changes found 163s searching for changes 163s adding changesets 163s adding manifests 163s adding file changes 163s added 1 changesets with 1 changes to 1 files 163s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/hgrepo 163s fffffff..e06f455 default -> default 164s ok 9 - remote push with master bookmark 164s 164s expecting success: 164s test_when_finished "rm -rf hgrepo gitrepo*" && 164s 164s hg init hgrepo && 164s 164s ( 164s git init gitrepo && 164s cd gitrepo && 164s git remote add origin "hg::../hgrepo" && 164s echo one > content && 164s git add content && 164s git commit -a -m one && 164s git push origin master 164s ) && 164s 164s hg -R hgrepo log > actual && 164s cat actual && 164s test_cmp expected actual && 164s 164s check_branch hgrepo default one 164s 164s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/gitrepo/.git/ 164s [master (root-commit) 64caca5] one 164s Author: A U Thor 164s 1 file changed, 1 insertion(+) 164s create mode 100644 content 164s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 164s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 164s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 164s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 164s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 164s or locale.getdefaultlocale()[1] 164s no changes found 164s searching for changes 164s adding changesets 164s adding manifests 164s adding file changes 164s added 1 changesets with 1 changes to 1 files 164s To hg::../hgrepo 164s * [new branch] master -> master 164s changeset: 0:6e2126489d3d 164s tag: tip 164s user: A U Thor 164s date: Mon Jan 01 00:00:00 2007 +0230 164s summary: one 164s 164s ok 10 - remote push from master branch 164s 164s expecting success: 164s test_when_finished "rm -rf gitrepo*" && 164s 164s ( 164s hg init hgrepo && 164s cd hgrepo && 164s echo zero > content && 164s hg add content && 164s hg commit -m zero 164s ) && 164s 164s git clone "hg::hgrepo" gitrepo && 164s check gitrepo HEAD zero 164s 165s Cloning into 'gitrepo'... 165s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 165s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 165s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 165s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 165s /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. 165s or locale.getdefaultlocale()[1] 165s adding changesets 165s adding manifests 165s adding file changes 165s added 1 changesets with 1 changes to 1 files 165s new changesets 3afb547eed9e 165s progress revision walk 'bookmarks/master' (0/0) 165s progress revision 0 'master' (0/1) 165s ok 11 - remote cloning 165s 165s expecting success: 165s test_when_finished "rm -rf gitrepo*" && 165s 165s ( 165s git clone "hg::hgrepo" gitrepo && 165s mv gitrepo gitrepo2 && 165s cd gitrepo2 && 165s git fetch 165s ) 165s 165s Cloning into 'gitrepo'... 165s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 165s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 165s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 165s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 165s /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. 165s or locale.getdefaultlocale()[1] 165s adding changesets 165s adding manifests 165s adding file changes 165s added 1 changesets with 1 changes to 1 files 165s new changesets 3afb547eed9e 165s progress revision walk 'bookmarks/master' (0/0) 165s progress revision 0 'master' (0/1) 165s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 165s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 165s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 165s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 166s /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. 166s or locale.getdefaultlocale()[1] 166s no changes found 166s ok 12 - moving remote clone 166s 166s expecting success: 166s test_when_finished "rm -rf gitrepo*" && 166s 166s ( 166s cd hgrepo && 166s hg bookmark devel 166s ) && 166s 166s ( 166s git clone "hg::hgrepo" gitrepo && 166s cd gitrepo && 166s git checkout --quiet devel && 166s echo devel > content && 166s git commit -a -m devel && 166s git push --quiet 166s ) && 166s 166s check_bookmark hgrepo devel devel 166s 166s Cloning into 'gitrepo'... 166s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 166s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 166s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 166s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 166s /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. 166s or locale.getdefaultlocale()[1] 166s adding changesets 166s adding manifests 166s adding file changes 166s adding remote bookmark devel 166s added 1 changesets with 1 changes to 1 files 166s new changesets 3afb547eed9e 166s progress revision walk 'bookmarks/master' (0/0) 166s progress revision 0 'master' (0/1) 166s [devel 6b7371c] devel 166s Author: A U Thor 166s 1 file changed, 1 insertion(+), 1 deletion(-) 166s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 166s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 166s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 166s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 166s /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. 166s or locale.getdefaultlocale()[1] 166s no changes found 166s searching for changes 166s adding changesets 166s adding manifests 166s adding file changes 166s added 1 changesets with 1 changes to 1 files 167s ok 13 - remote update bookmark 167s 167s expecting success: 167s test_when_finished "rm -rf gitrepo*" && 167s 167s ( 167s git clone "hg::hgrepo" gitrepo && 167s cd gitrepo && 167s git checkout --quiet -b feature-b && 167s echo feature-b > content && 167s git commit -a -m feature-b && 167s git push --quiet origin feature-b 167s ) && 167s 167s check_bookmark hgrepo feature-b feature-b 167s 167s Cloning into 'gitrepo'... 167s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 167s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 167s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 167s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 167s /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. 167s or locale.getdefaultlocale()[1] 167s adding changesets 167s adding manifests 167s adding file changes 167s adding remote bookmark devel 167s progress revision walk 'bookmarks/master' (1/1) 167s progress revision 0 'master' (0/2) 167s added 2 changesets with 2 changes to 1 files 167s new changesets 3afb547eed9e:e3da18aae38f 167s [feature-b 607ba56] feature-b 167s Author: A U Thor 167s 1 file changed, 1 insertion(+), 1 deletion(-) 167s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 167s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 167s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 167s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 167s /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. 167s or locale.getdefaultlocale()[1] 167s no changes found 167s searching for changes 167s adding changesets 167s adding manifests 167s adding file changes 167s added 1 changesets with 1 changes to 1 files 167s ok 14 - remote new bookmark 167s 167s expecting success: 167s test_when_finished "rm -rf gitrepo*" && 167s 167s git clone "hg::hgrepo" gitrepo && 167s 167s ( 167s cd hgrepo && 167s hg checkout default && 167s echo bump > content && 167s hg commit -m bump 167s ) && 167s 167s ( 167s cd gitrepo && 167s echo diverge > content && 167s git commit -a -m diverged && 167s check_push 1 <<-\EOF 167s master:non-fast-forward 167s EOF 167s ) && 167s 167s check_branch hgrepo default bump 167s 167s Cloning into 'gitrepo'... 167s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 167s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 167s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 167s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 168s /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. 168s or locale.getdefaultlocale()[1] 168s adding changesets 168s adding manifests 168s adding file changes 168s adding remote bookmark devel 168s adding remote bookmark feature-b 168s added 3 changesets with 3 changes to 1 files 168s new changesets 3afb547eed9e:b7abfb793245 168s progress revision walk 'bookmarks/master' (2/2) 168s progress revision 0 'master' (0/3) 168s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 168s (leaving bookmark devel) 168s [master e8e3d26] diverged 168s Author: A U Thor 168s 1 file changed, 1 insertion(+), 1 deletion(-) 168s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 168s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 168s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 168s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 168s /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. 168s or locale.getdefaultlocale()[1] 168s searching for changes 168s adding changesets 168s adding manifests 168s adding file changes 168s added 1 changesets with 1 changes to 1 files 168s new changesets 161b6aa7d326 168s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/hgrepo 168s ! [rejected] master -> master (non-fast-forward) 168s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/hgrepo' 168s hint: Updates were rejected because the tip of your current branch is behind 168s hint: its remote counterpart. If you want to integrate the remote changes, 168s hint: use 'git pull' before pushing again. 168s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 168s ! [rejected] master -> master (non-fast-forward) 169s ok 15 - remote push diverged 169s 169s expecting success: 169s test_when_finished "rm -rf gitrepo*" && 169s 169s ( 169s cd hgrepo && 169s hg checkout tip^ && 169s hg bookmark diverge 169s ) && 169s 169s git clone "hg::hgrepo" gitrepo && 169s 169s ( 169s cd hgrepo && 169s echo "bump bookmark" > content && 169s hg commit -m "bump bookmark" 169s ) && 169s 169s ( 169s cd gitrepo && 169s git checkout --quiet diverge && 169s echo diverge > content && 169s git commit -a -m diverge && 169s check_push 1 <<-\EOF 169s diverge:non-fast-forward 169s EOF 169s ) && 169s 169s check_bookmark hgrepo diverge "bump bookmark" 169s 169s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 169s Cloning into 'gitrepo'... 169s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 169s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 169s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 169s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 169s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 169s or locale.getdefaultlocale()[1] 169s adding changesets 169s adding manifests 169s adding file changes 169s adding remote bookmark devel 169s adding remote bookmark diverge 169s adding remote bookmark feature-b 169s added 4 changesets with 4 changes to 1 files 169s new changesets 3afb547eed9e:161b6aa7d326 169s progress revision walk 'bookmarks/master' (3/3) 169s progress revision 0 'master' (0/4) 169s created new head 169s [diverge c9dbaa8] diverge 169s Author: A U Thor 169s 1 file changed, 1 insertion(+), 1 deletion(-) 170s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 170s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 170s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 170s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 170s /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. 170s or locale.getdefaultlocale()[1] 170s searching for changes 170s adding changesets 170s adding manifests 170s adding file changes 170s updating bookmark diverge 170s added 1 changesets with 1 changes to 1 files (+1 heads) 170s new changesets 4bb4e64210fd 170s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/hgrepo 170s ! [rejected] diverge -> diverge (non-fast-forward) 170s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/hgrepo' 170s hint: Updates were rejected because the tip of your current branch is behind 170s hint: its remote counterpart. If you want to integrate the remote changes, 170s hint: use 'git pull' before pushing again. 170s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 170s ! [rejected] diverge -> diverge (non-fast-forward) 170s ok 16 - remote update bookmark diverge 170s 170s expecting success: 170s test_when_finished "rm -rf gitrepo*" && 170s 170s ( 170s git clone "hg::hgrepo" gitrepo && 170s cd gitrepo && 170s git checkout --quiet -b feature-c HEAD^ && 170s echo feature-c > content && 170s git commit -a -m feature-c && 170s git push --quiet origin feature-c 170s ) && 170s 170s check_bookmark hgrepo feature-c feature-c 170s 170s Cloning into 'gitrepo'... 170s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 170s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 170s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 170s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 170s /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. 170s or locale.getdefaultlocale()[1] 170s adding changesets 170s adding manifests 170s adding file changes 170s adding remote bookmark devel 170s adding remote bookmark diverge 170s adding remote bookmark feature-b 170s added 5 changesets with 5 changes to 1 files (+1 heads) 170s new changesets 3afb547eed9e:4bb4e64210fd 170s WARNING: Branch 'default' has more than one head, consider merging 170s progress revision walk 'bookmarks/master' (4/4) 170s progress revision 0 'master' (0/4) 170s [feature-c 579783f] feature-c 170s Author: A U Thor 170s 1 file changed, 1 insertion(+), 1 deletion(-) 170s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 170s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 170s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 170s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 170s /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. 170s or locale.getdefaultlocale()[1] 170s no changes found 170s searching for changes 170s adding changesets 170s adding manifests 170s adding file changes 170s added 1 changesets with 1 changes to 1 files (+1 heads) 170s ok 17 - remote new bookmark multiple branch head 170s 170s expecting success: 170s test_when_finished "rm -rf gitrepo hgrepo" && 170s 170s ( 170s hg init hgrepo && 170s cd hgrepo && 170s echo zero > content && 170s hg add content && 170s hg commit -m zero 170s ) && 170s 170s git clone "hg::hgrepo" gitrepo && 170s 170s ( 170s cd gitrepo && 170s cp content content-copy && 170s # recent git-fast-export is (too) picky in recognizing copies 170s # although git-log is not as picky; 170s # since https://github.com/git/git/commit/8096e1d385660c159d9d47e69b2be63cf22e4f31 170s # a copy is only marked if source filed not modified as well 170s # (though destination file can be modified) 170s echo one >> content-copy && 170s git add content content-copy && 170s git commit -m copy && 170s git mv content-copy content-moved 170s git commit -m moved && 170s git push origin master 170s ) && 170s 170s ( 170s hg -R hgrepo update && 170s test_cmp gitrepo/content hgrepo/content 170s test_cmp gitrepo/content-moved hgrepo/content-moved 170s cd hgrepo && 170s test `hg log -f content-moved | grep -c changeset` -eq 3 170s ) 170s 171s Cloning into 'gitrepo'... 171s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 171s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 171s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 171s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 171s /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. 171s or locale.getdefaultlocale()[1] 171s adding changesets 171s adding manifests 171s adding file changes 171s added 1 changesets with 1 changes to 1 files 171s new changesets bb1d17962853 171s progress revision walk 'bookmarks/master' (0/0) 171s progress revision 0 'master' (0/1) 171s [master 705df74] copy 171s Author: A U Thor 171s 1 file changed, 2 insertions(+) 171s create mode 100644 content-copy 171s [master 4677cf5] moved 171s Author: A U Thor 171s 1 file changed, 0 insertions(+), 0 deletions(-) 171s rename content-copy => content-moved (100%) 171s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 171s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 171s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 171s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 171s /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. 171s or locale.getdefaultlocale()[1] 171s no changes found 171s searching for changes 171s adding changesets 171s adding manifests 171s adding file changes 171s added 2 changesets with 2 changes to 2 files 171s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/hgrepo 171s fffffff..4677cf5 master -> master 172s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 172s ok 18 - push commits with copy and rename 172s 172s expecting success: 172s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 172s 172s LC_ALL=C.UTF-8 172s export LC_ALL 172s 172s ( 172s hg init hgrepo && 172s cd hgrepo && 172s 172s echo test >> "æ rø" && 172s hg add "æ rø" && 172s echo test >> "ø~?" && 172s hg add "ø~?" && 172s hg commit -m add-utf-8 && 172s echo test >> "æ rø" && 172s hg commit -m test-utf-8 && 172s hg rm "ø~?" && 172s hg mv "æ rø" "ø~?" && 172s hg commit -m hg-mv-utf-8 172s ) && 172s 172s ( 172s git clone "hg::hgrepo" gitrepo && 172s cd gitrepo && 172s git -c core.quotepath=false ls-files > ../actual 172s ) && 172s echo "ø~?" > expected && 172s test_cmp expected actual 172s 172s warning: filename contains '?', which is reserved on Windows: 'ø~?' 173s warning: filename contains '?', which is reserved on Windows: 'ø~?' 173s Cloning into 'gitrepo'... 173s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 173s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 173s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 173s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 173s adding changesets 173s adding manifests 173s adding file changes 173s added 3 changesets with 4 changes to 2 files 173s new changesets 606f13d66da9:3763bf68c977 173s progress revision walk 'bookmarks/master' (2/2) 173s progress revision 0 'master' (0/3) 173s ok 19 - fetch special filenames 173s 173s expecting success: 173s test_when_finished "rm -rf hgrepo gitrepo && LC_ALL=C" && 173s 173s mkdir -p tmp && cd tmp && 173s 173s LC_ALL=C.UTF-8 173s export LC_ALL 173s 173s ( 173s hg init hgrepo && 173s cd hgrepo && 173s 173s echo one >> content && 173s hg add content && 173s hg commit -m one 173s ) && 173s 173s ( 173s git clone "hg::hgrepo" gitrepo && 173s cd gitrepo && 173s 173s echo test >> "æ rø" && 173s git add "æ rø" && 173s git commit -m utf-8 && 173s 173s git push 173s ) && 173s 173s (cd hgrepo && 173s hg update && 173s hg manifest > ../actual 173s ) && 173s 173s printf "content\næ rø\n" > expected && 173s test_cmp expected actual 173s 174s Cloning into 'gitrepo'... 174s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 174s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 174s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 174s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 174s adding changesets 174s adding manifests 174s adding file changes 174s added 1 changesets with 1 changes to 1 files 174s progress revision walk 'bookmarks/master' (0/0) 174s progress revision 0 'master' (0/1) 174s new changesets 5501439cbc0b 174s [master 0fc01b3] utf-8 174s Author: A U Thor 174s 1 file changed, 1 insertion(+) 174s create mode 100644 "\303\246 r\303\270" 174s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 174s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 174s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 174s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 174s no changes found 174s searching for changes 174s adding changesets 174s adding manifests 174s adding file changes 174s added 1 changesets with 1 changes to 1 files 174s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 174s fffffff..0fc01b3 master -> master 174s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 175s ok 20 - push special filenames 175s 175s expecting success: 175s test_when_finished "rm -rf hgrepo gitrepo*" && 175s 175s setup_big_push 175s 175s ( 175s cd gitrepo && 175s 175s check_push 1 --all <<-\EOF 175s master 175s good_bmark 175s branches/good_branch 175s new_bmark:new 175s branches/new_branch:new 175s bad_bmark1:non-fast-forward 175s bad_bmark2:non-fast-forward 175s branches/bad_branch:non-fast-forward 175s EOF 175s ) && 175s 175s if test "$CAPABILITY_PUSH" = "t" 175s then 175s # cap push handles refs one by one 175s # so it will push all requested it can 175s check_branch hgrepo default six && 175s check_branch hgrepo good_branch eight && 175s check_branch hgrepo bad_branch "bad branch" && 175s check_branch hgrepo new_branch ten && 175s check_bookmark hgrepo good_bmark three && 175s check_bookmark hgrepo bad_bmark1 one && 175s check_bookmark hgrepo bad_bmark2 one && 175s check_bookmark hgrepo new_bmark six 175s else 175s check_branch hgrepo default one && 175s check_branch hgrepo good_branch "good branch" && 175s check_branch hgrepo bad_branch "bad branch" && 175s check_branch hgrepo new_branch && 175s check_bookmark hgrepo good_bmark one && 175s check_bookmark hgrepo bad_bmark1 one && 175s check_bookmark hgrepo bad_bmark2 one && 175s check_bookmark hgrepo new_bmark 175s fi 175s 177s Cloning into 'gitrepo'... 177s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 177s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 177s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 177s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 177s /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. 177s or locale.getdefaultlocale()[1] 177s adding changesets 177s adding manifests 177s adding file changes 177s adding remote bookmark bad_bmark1 177s adding remote bookmark bad_bmark2 177s adding remote bookmark good_bmark 177s added 4 changesets with 4 changes to 1 files 177s new changesets bf3b4ef3eeed:4d6c26074218 177s progress revision walk 'bookmarks/master' (1/1) 177s progress revision 0 'master' (0/2) 177s progress revision 2 'bad_branch' (0/2) 177s HEAD is now at cfb5130 zero 177s HEAD is now at cfb5130 zero 177s HEAD is now at 80d751f good branch 177s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 177s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 177s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 177s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 177s /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. 177s or locale.getdefaultlocale()[1] 177s no changes found 177s searching for changes 177s adding changesets 177s adding manifests 177s adding file changes 177s added 2 changesets with 2 changes to 1 files (+1 heads) 177s searching for changes 177s adding changesets 177s adding manifests 177s adding file changes 177s added 1 changesets with 1 changes to 1 files (+1 heads) 177s searching for changes 177s adding changesets 177s adding manifests 177s adding file changes 177s added 1 changesets with 1 changes to 1 files (+1 heads) 177s searching for changes 177s adding changesets 177s adding manifests 177s adding file changes 177s added 1 changesets with 1 changes to 1 files 177s searching for changes 177s adding changesets 177s adding manifests 177s adding file changes 177s added 1 changesets with 1 changes to 1 files (+1 heads) 177s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 177s fffffff..f426c64 branches/good_branch -> branches/good_branch 177s fffffff..f41e77a good_bmark -> good_bmark 177s fffffff..329ca65 master -> master 177s * [new branch] branches/new_branch -> branches/new_branch 177s * [new branch] new_bmark -> new_bmark 177s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 177s ! [rejected] bad_bmark1 -> bad_bmark1 (non-fast-forward) 177s ! [rejected] bad_bmark2 -> bad_bmark2 (non-fast-forward) 177s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo' 177s hint: Updates were rejected because a pushed branch tip is behind its remote 177s hint: counterpart. If you want to integrate the remote changes, use 'git pull' 177s hint: before pushing again. 177s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 177s fffffff..329ca65 master -> master 177s fffffff..f41e77a good_bmark -> good_bmark 177s fffffff..f426c64 branches/good_branch -> branches/good_branch 177s * [new branch] new_bmark -> new_bmark 177s * [new branch] branches/new_branch -> branches/new_branch 177s ! [rejected] bad_bmark1 -> bad_bmark1 (non-fast-forward) 177s ! [rejected] bad_bmark2 -> bad_bmark2 (non-fast-forward) 177s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 179s ok 21 - remote big push 179s 179s expecting success: 179s test_when_finished "rm -rf hgrepo gitrepo*" && 179s 179s ( 179s hg init hgrepo && 179s cd hgrepo && 179s echo zero > content && 179s hg add content && 179s hg commit -m zero && 179s hg bookmark bad_bmark && 179s hg bookmark good_bmark && 179s hg bookmark -i good_bmark && 179s hg -q branch good_branch && 179s echo "good branch" > content && 179s hg commit -m "good branch" && 179s hg -q branch bad_branch && 179s echo "bad branch" > content && 179s hg commit -m "bad branch" 179s ) && 179s 179s git clone "hg::hgrepo" gitrepo && 179s 179s ( 179s cd hgrepo && 179s hg bookmark -f bad_bmark && 179s echo update_bmark > content && 179s hg commit -m "update bmark" 179s ) && 179s 179s ( 179s cd gitrepo && 179s echo two > content && 179s git commit -q -a -m two && 179s 179s git checkout -q good_bmark && 179s echo three > content && 179s git commit -q -a -m three && 179s 179s git checkout -q bad_bmark && 179s echo four > content && 179s git commit -q -a -m four && 179s 179s git checkout -q branches/bad_branch && 179s echo five > content && 179s git commit -q -a -m five && 179s 179s check_push 1 --all <<-\EOF && 179s master 179s good_bmark 179s bad_bmark:non-fast-forward 179s branches/bad_branch:non-fast-forward 179s EOF 179s 179s git fetch && 179s 179s if test "$CAPABILITY_PUSH" = "t" 179s then 179s # cap push handles refs one by one 179s # so it will already have pushed some above previously 179s # (and master is a fake one that jumps around a bit) 179s check_push 1 --all <<-\EOF 179s bad_bmark:non-fast-forward 179s branches/bad_branch:non-fast-forward 179s EOF 179s else 179s check_push 1 --all <<-\EOF 179s master 179s good_bmark 179s bad_bmark:non-fast-forward 179s branches/bad_branch:non-fast-forward 179s EOF 179s fi 179s ) 179s 180s Cloning into 'gitrepo'... 180s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 180s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 180s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 180s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 180s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 180s or locale.getdefaultlocale()[1] 180s adding changesets 180s adding manifests 180s adding file changes 180s adding remote bookmark bad_bmark 180s adding remote bookmark good_bmark 180s added 3 changesets with 3 changes to 1 files 180s new changesets c6473444f2a0:dd00cd0fc9df 180s progress revision walk 'bookmarks/master' (0/0) 180s progress revision 0 'master' (0/1) 180s progress revision 1 'bad_branch' (0/2) 181s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 181s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 181s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 181s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 181s /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. 181s or locale.getdefaultlocale()[1] 181s searching for changes 181s adding changesets 181s adding manifests 181s adding file changes 181s updating bookmark bad_bmark 181s added 1 changesets with 1 changes to 1 files 181s new changesets cfb4751fadf7 181s searching for changes 181s adding changesets 181s adding manifests 181s adding file changes 181s added 1 changesets with 1 changes to 1 files (+1 heads) 181s searching for changes 181s adding changesets 181s adding manifests 181s adding file changes 181s added 1 changesets with 1 changes to 1 files (+1 heads) 181s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 181s fffffff..1d9cd3b good_bmark -> good_bmark 181s fffffff..174f1eb master -> master 181s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 181s ! [rejected] bad_bmark -> bad_bmark (non-fast-forward) 181s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo' 181s hint: Updates were rejected because the tip of your current branch is behind 181s hint: its remote counterpart. If you want to integrate the remote changes, 181s hint: use 'git pull' before pushing again. 181s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 181s fffffff..174f1eb master -> master 181s fffffff..1d9cd3b good_bmark -> good_bmark 181s ! [rejected] bad_bmark -> bad_bmark (non-fast-forward) 181s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 181s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 181s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 181s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 181s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 181s /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. 181s or locale.getdefaultlocale()[1] 181s no changes found 181s updating bookmark good_bmark 181s 2 local changesets published 181s WARNING: Branch 'default' has more than one head, consider merging 181s progress revision 3 'bad_branch' (0/1) 181s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 181s 4f46285..72466ec branches/bad_branch -> origin/branches/bad_branch 181s 64f9877..174f1eb branches/default -> origin/branches/default 181s 64f9877..72466ec bad_bmark -> origin/bad_bmark 182s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 182s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 182s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 182s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 182s /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. 182s or locale.getdefaultlocale()[1] 182s no changes found 182s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 182s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 182s ! [rejected] bad_bmark -> bad_bmark (non-fast-forward) 182s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo' 182s hint: Updates were rejected because the tip of your current branch is behind 182s hint: its remote counterpart. If you want to integrate the remote changes, 182s hint: use 'git pull' before pushing again. 182s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 182s ! [rejected] bad_bmark -> bad_bmark (non-fast-forward) 182s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 182s ok 22 - remote big push non fast forward 182s 182s expecting success: 182s test_when_finished "rm -rf hgrepo gitrepo*" && 182s 182s setup_big_push 182s 182s ( 182s cd gitrepo && 182s 182s if test "$CAPABILITY_PUSH" = "t" 182s then 182s check_push 0 --force --all <<-\EOF 182s master:forced-update 182s good_bmark:forced-update 182s branches/good_branch:forced-update 182s new_bmark:new 182s branches/new_branch:new 182s bad_bmark1:forced-update 182s bad_bmark2:forced-update 182s branches/bad_branch:forced-update 182s EOF 182s else 182s check_push 0 --force --all <<-\EOF 182s master 182s good_bmark 182s branches/good_branch 182s new_bmark:new 182s branches/new_branch:new 182s bad_bmark1:forced-update 182s bad_bmark2:forced-update 182s branches/bad_branch:forced-update 182s EOF 182s fi 182s ) && 182s 182s check_branch hgrepo good_branch eight && 182s check_branch hgrepo bad_branch nine && 182s check_branch hgrepo new_branch ten && 182s check_bookmark hgrepo good_bmark three && 182s check_bookmark hgrepo bad_bmark1 four && 182s check_bookmark hgrepo bad_bmark2 five && 182s check_bookmark hgrepo new_bmark six 182s 184s Cloning into 'gitrepo'... 184s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 184s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 184s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 184s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 184s /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. 184s or locale.getdefaultlocale()[1] 184s adding changesets 184s adding manifests 184s adding file changes 184s adding remote bookmark bad_bmark1 184s adding remote bookmark bad_bmark2 184s adding remote bookmark good_bmark 184s added 4 changesets with 4 changes to 1 files 184s new changesets 9ff0149f5a4c:5cddeb62e0a4 184s progress revision walk 'bookmarks/master' (1/1) 184s progress revision 0 'master' (0/2) 184s progress revision 2 'bad_branch' (0/2) 184s HEAD is now at c9c704a zero 184s HEAD is now at c9c704a zero 184s HEAD is now at d970a56 good branch 184s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 184s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 184s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 184s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 184s /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. 184s or locale.getdefaultlocale()[1] 184s no changes found 184s searching for changes 184s adding changesets 184s adding manifests 184s adding file changes 184s added 1 changesets with 1 changes to 1 files (+1 heads) 184s searching for changes 184s adding changesets 184s adding manifests 184s adding file changes 184s added 2 changesets with 2 changes to 1 files (+1 heads) 184s searching for changes 184s adding changesets 184s adding manifests 184s adding file changes 184s added 1 changesets with 1 changes to 1 files (+1 heads) 184s searching for changes 184s adding changesets 184s adding manifests 184s adding file changes 184s added 1 changesets with 1 changes to 1 files (+1 heads) 184s searching for changes 184s adding changesets 184s adding manifests 184s adding file changes 184s added 1 changesets with 1 changes to 1 files (+1 heads) 184s searching for changes 184s adding changesets 184s adding manifests 184s adding file changes 184s added 1 changesets with 1 changes to 1 files (+1 heads) 184s searching for changes 184s adding changesets 184s adding manifests 184s adding file changes 184s added 1 changesets with 1 changes to 1 files 184s searching for changes 184s adding changesets 184s adding manifests 184s adding file changes 184s added 1 changesets with 1 changes to 1 files (+1 heads) 184s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 184s + fffffff...06e4159 branches/bad_branch -> branches/bad_branch (forced update) 184s + fffffff...0fe9f50 branches/good_branch -> branches/good_branch (forced update) 184s + fffffff...493e391 bad_bmark1 -> bad_bmark1 (forced update) 184s + fffffff...9d7d969 bad_bmark2 -> bad_bmark2 (forced update) 184s + fffffff...4f841d4 good_bmark -> good_bmark (forced update) 184s + fffffff...f7716f3 master -> master (forced update) 184s * [new branch] branches/new_branch -> branches/new_branch 184s * [new branch] new_bmark -> new_bmark 184s + fffffff...f7716f3 master -> master (forced update) 184s + fffffff...4f841d4 good_bmark -> good_bmark (forced update) 184s + fffffff...0fe9f50 branches/good_branch -> branches/good_branch (forced update) 184s * [new branch] new_bmark -> new_bmark 184s * [new branch] branches/new_branch -> branches/new_branch 184s + fffffff...493e391 bad_bmark1 -> bad_bmark1 (forced update) 184s + fffffff...9d7d969 bad_bmark2 -> bad_bmark2 (forced update) 184s + fffffff...06e4159 branches/bad_branch -> branches/bad_branch (forced update) 185s ok 23 - remote big push force 185s 185s expecting success: 185s test_when_finished "rm -rf hgrepo gitrepo*" && 185s 185s setup_big_push 185s 185s ( 185s cd gitrepo && 185s 185s check_push 1 --dry-run --all <<-\EOF && 185s master 185s good_bmark 185s branches/good_branch 185s new_bmark:new 185s branches/new_branch:new 185s bad_bmark1:non-fast-forward 185s bad_bmark2:non-fast-forward 185s branches/bad_branch:non-fast-forward 185s EOF 185s 185s check_push 0 --dry-run master good_bmark new_bmark branches/good_branch branches/new_branch <<-\EOF 185s master 185s good_bmark 185s branches/good_branch 185s new_bmark:new 185s branches/new_branch:new 185s EOF 185s ) && 185s 185s check_branch hgrepo default one && 185s check_branch hgrepo good_branch "good branch" && 185s check_branch hgrepo bad_branch "bad branch" && 185s check_branch hgrepo new_branch && 185s check_bookmark hgrepo good_bmark one && 185s check_bookmark hgrepo bad_bmark1 one && 185s check_bookmark hgrepo bad_bmark2 one && 185s check_bookmark hgrepo new_bmark 185s 187s Cloning into 'gitrepo'... 188s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 188s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 188s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 188s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 188s adding manifests 188s adding file changes 188s adding remote bookmark bad_bmark1 188s adding remote bookmark bad_bmark2 188s adding remote bookmark good_bmark 188s added 4 changesets with 4 changes to 1 files 188s new changesets 4532e4d59b6f:6675a00b7af1 188s progress revision walk 'bookmarks/master' (1/1) 188s progress revision 0 'master' (0/2) 188s progress revision 2 'bad_branch' (0/2) 188s HEAD is now at a0948d0 zero 188s HEAD is now at a0948d0 zero 188s HEAD is now at f346eb6 good branch 188s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 188s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 188s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 188s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 188s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 188s fffffff..b6aaa44 branches/good_branch -> branches/good_branch 188s fffffff..f246f32 good_bmark -> good_bmark 188s fffffff..9dbcbfe master -> master 188s * [new branch] branches/new_branch -> branches/new_branch 188s * [new branch] new_bmark -> new_bmark 188s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 188s ! [rejected] bad_bmark1 -> bad_bmark1 (non-fast-forward) 188s ! [rejected] bad_bmark2 -> bad_bmark2 (non-fast-forward) 188s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo' 188s hint: Updates were rejected because a pushed branch tip is behind its remote 188s hint: counterpart. If you want to integrate the remote changes, use 'git pull' 188s hint: before pushing again. 188s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 188s fffffff..9dbcbfe master -> master 188s fffffff..f246f32 good_bmark -> good_bmark 188s fffffff..b6aaa44 branches/good_branch -> branches/good_branch 188s * [new branch] new_bmark -> new_bmark 188s * [new branch] branches/new_branch -> branches/new_branch 188s ! [rejected] bad_bmark1 -> bad_bmark1 (non-fast-forward) 188s ! [rejected] bad_bmark2 -> bad_bmark2 (non-fast-forward) 188s ! [rejected] branches/bad_branch -> branches/bad_branch (non-fast-forward) 188s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 188s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 188s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 188s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 188s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 188s fffffff..b6aaa44 branches/good_branch -> branches/good_branch 188s fffffff..f246f32 good_bmark -> good_bmark 188s fffffff..9dbcbfe master -> master 188s * [new branch] new_bmark -> new_bmark 188s * [new branch] branches/new_branch -> branches/new_branch 188s fffffff..9dbcbfe master -> master 188s fffffff..f246f32 good_bmark -> good_bmark 188s fffffff..b6aaa44 branches/good_branch -> branches/good_branch 188s * [new branch] new_bmark -> new_bmark 188s * [new branch] branches/new_branch -> branches/new_branch 190s ok 24 - remote big push dry-run 190s 190s expecting success: 190s test_when_finished "rm -rf hgrepo gitrepo*" && 190s 190s setup_big_push 190s 190s ( 190s cd gitrepo && 190s 190s if test "$CAPABILITY_PUSH" = "t" 190s then 190s check_push 0 --force --dry-run --all <<-\EOF 190s master:forced-update 190s good_bmark:forced-update 190s branches/good_branch:forced-update 190s new_bmark:new 190s branches/new_branch:new 190s bad_bmark1:forced-update 190s bad_bmark2:forced-update 190s branches/bad_branch:forced-update 190s EOF 190s else 190s check_push 0 --force --dry-run --all <<-\EOF 190s master 190s good_bmark 190s branches/good_branch 190s new_bmark:new 190s branches/new_branch:new 190s bad_bmark1:forced-update 190s bad_bmark2:forced-update 190s branches/bad_branch:forced-update 190s EOF 190s fi 190s ) && 190s 190s check_branch hgrepo default one && 190s check_branch hgrepo good_branch "good branch" && 190s check_branch hgrepo bad_branch "bad branch" && 190s check_branch hgrepo new_branch && 190s check_bookmark hgrepo good_bmark one && 190s check_bookmark hgrepo bad_bmark1 one && 190s check_bookmark hgrepo bad_bmark2 one && 190s check_bookmark hgrepo new_bmark 190s 192s Cloning into 'gitrepo'... 192s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 192s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 192s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 192s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 192s /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. 192s or locale.getdefaultlocale()[1] 192s adding changesets 192s adding manifests 192s adding file changes 192s adding remote bookmark bad_bmark1 192s adding remote bookmark bad_bmark2 192s adding remote bookmark good_bmark 192s added 4 changesets with 4 changes to 1 files 192s new changesets 8dbbeb68a74a:d97623570748 192s progress revision walk 'bookmarks/master' (1/1) 192s progress revision 0 'master' (0/2) 192s progress revision 2 'bad_branch' (0/2) 192s HEAD is now at 54f2e14 zero 192s HEAD is now at 54f2e14 zero 192s HEAD is now at 2f64ef8 good branch 192s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 192s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 192s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 192s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 192s /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. 192s or locale.getdefaultlocale()[1] 192s no changes found 192s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 192s + fffffff...b9fb018 branches/bad_branch -> branches/bad_branch (forced update) 192s + fffffff...d483ef5 branches/good_branch -> branches/good_branch (forced update) 192s + fffffff...37cc4be bad_bmark1 -> bad_bmark1 (forced update) 192s + fffffff...704d94b bad_bmark2 -> bad_bmark2 (forced update) 192s + fffffff...5eaff46 good_bmark -> good_bmark (forced update) 192s + fffffff...f7e00e7 master -> master (forced update) 192s * [new branch] branches/new_branch -> branches/new_branch 192s * [new branch] new_bmark -> new_bmark 192s + fffffff...f7e00e7 master -> master (forced update) 192s + fffffff...5eaff46 good_bmark -> good_bmark (forced update) 192s + fffffff...d483ef5 branches/good_branch -> branches/good_branch (forced update) 192s * [new branch] new_bmark -> new_bmark 192s * [new branch] branches/new_branch -> branches/new_branch 192s + fffffff...37cc4be bad_bmark1 -> bad_bmark1 (forced update) 192s + fffffff...704d94b bad_bmark2 -> bad_bmark2 (forced update) 192s + fffffff...b9fb018 branches/bad_branch -> branches/bad_branch (forced update) 194s ok 25 - remote big push force dry-run 194s 194s expecting success: 194s test_when_finished "rm -rf hgrepo gitrepo*" && 194s 194s ( 194s hg init hgrepo && 194s cd hgrepo && 194s echo zero > content && 194s hg add content && 194s hg commit -m zero && 194s echo one > content && 194s hg commit -m one 194s ) && 194s 194s ( 194s git clone "hg::hgrepo" gitrepo && 194s cd gitrepo && 194s git reset --hard HEAD^ && 194s echo two > content && 194s git commit -a -m two && 194s test_expect_code 1 git push && 194s test_expect_code 1 git push 194s ) 194s 194s Cloning into 'gitrepo'... 194s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 194s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 194s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 194s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 194s adding manifests 194s adding file changes 194s added 2 changesets with 2 changes to 1 files 194s new changesets be433a948673:235ffb554d03 194s progress revision walk 'bookmarks/master' (1/1) 194s progress revision 0 'master' (0/2) 194s HEAD is now at 167a6b0 zero 194s [master 0fdbfcd] two 194s Author: A U Thor 194s 1 file changed, 1 insertion(+), 1 deletion(-) 194s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 194s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 194s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 194s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 195s /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. 195s or locale.getdefaultlocale()[1] 195s no changes found 195s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 195s ! [rejected] master -> master (non-fast-forward) 195s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo' 195s hint: Updates were rejected because the tip of your current branch is behind 195s hint: its remote counterpart. If you want to integrate the remote changes, 195s hint: use 'git pull' before pushing again. 195s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 195s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 195s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 195s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 195s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 195s /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. 195s or locale.getdefaultlocale()[1] 195s no changes found 195s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 195s ! [rejected] master -> master (non-fast-forward) 195s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo' 195s ok 26 - remote double failed push 195s 195s expecting success: 195s test_when_finished "rm -rf gitrepo hgrepo" && 195s 195s ( 195s hg init hgrepo && 195s cd hgrepo && 195s echo zero > content && 195s hg add content && 195s hg commit -m zero && 195s echo feature-a > content && 195s hg commit -m feature-a 195s hg bookmark feature-a 195s ) && 195s 195s git clone "hg::hgrepo" gitrepo && 195s check gitrepo origin/feature-a feature-a && 195s 195s ( 195s cd hgrepo && 195s hg bookmark -d feature-a 195s ) && 195s 195s ( 195s cd gitrepo && 195s git fetch --prune origin 195s git branch -a > out && 195s ! grep feature-a out 195s ) 195s 195s hint: Updates were rejected because the tip of your current branch is behind 195s hint: its remote counterpart. If you want to integrate the remote changes, 195s hint: use 'git pull' before pushing again. 195s hint: See the 'Note about fast-forwards' in 'git push --help' for details. 196s Cloning into 'gitrepo'... 196s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 196s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 196s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 196s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 196s /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. 196s or locale.getdefaultlocale()[1] 196s adding changesets 196s adding manifests 196s adding file changes 196s adding remote bookmark feature-a 196s added 2 changesets with 2 changes to 1 files 196s new changesets e713233b8325:9e89214451ef 196s progress revision walk 'bookmarks/master' (1/1) 196s progress revision 0 'master' (0/2) 196s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 196s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 196s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 196s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 196s /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. 196s or locale.getdefaultlocale()[1] 196s no changes found 196s error: refusing to update ref with bad name 'hg/origin/refs/bookmarks/feature-a' 196s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 196s - [deleted] (none) -> origin/feature-a 196s ok 27 - fetch prune 196s 196s expecting success: 196s test_when_finished "rm -rf gitrepo hgrepo" && 196s 196s ( 196s hg init hgrepo && 196s cd hgrepo && 196s echo zero > content && 196s hg add content && 196s hg commit -m zero && 196s hg up -r null && 196s echo another > ocontent && 196s hg add ocontent && 196s hg commit -m one 196s ) && 196s 196s # -r 1 acts as master 196s ( 196s git init --bare gitrepo && cd gitrepo && 196s git remote add origin hg::../hgrepo && 196s git fetch origin refs/heads/*:refs/heads/* 196s ) && 196s 196s ( 196s cd hgrepo && 196s hg up 0 && 196s echo two > content && 196s hg commit -m two 196s ) && 196s 196s # now master already exists 196s # -r 2 becomes master head which has rev 0 as ancestor 196s # so when importing (parentless) rev 0, a reset is needed 196s # (to ensure rev 0 is not given a parent commit) 196s ( 196s cd gitrepo && 196s git fetch origin && 196s git log --format="%s" origin/master > ../actual 196s ) && 196s 196s hg -R hgrepo log -r . -f --template "{desc}\n" > expected && 196s test_cmp actual expected 196s 197s 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 197s created new head 197s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/gitrepo/ 197s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 197s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 197s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 197s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 198s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 198s or locale.getdefaultlocale()[1] 198s adding changesets 198s adding manifests 198s adding file changes 198s added 2 changesets with 2 changes to 2 files (+1 heads) 198s new changesets c614498a25e0:f5bbcf46d4bd 198s WARNING: Branch 'default' has more than one head, consider merging 198s WARNING: Branch 'default' has more than one head, consider merging 198s From hg::../hgrepo 198s * [new branch] branches/default -> branches/default 198s * [new branch] master -> master 198s * [new branch] branches/default -> origin/branches/default 198s * [new branch] master -> origin/master 198s progress revision 1 'default' (0/1) 198s 1 files updated, 0 files merged, 1 files removed, 0 files unresolved 198s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 198s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 198s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 198s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 198s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 198s or locale.getdefaultlocale()[1] 198s searching for changes 198s adding changesets 198s adding manifests 198s adding file changes 198s added 1 changesets with 1 changes to 1 files 198s new changesets 50445f4e0070 198s WARNING: Branch 'default' has more than one head, consider merging 198s progress revision walk 'branches/default' (2/2) 198s progress revision 0 'default' (0/2) 198s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 198s + 0928e14...28e3c25 branches/default -> origin/branches/default (forced update) 198s + 0928e14...28e3c25 master -> origin/master (forced update) 198s ok 28 - fetch multiple independent histories 198s 198s expecting success: 198s test_when_finished "rm -rf gitrepo* hgrepo*" && 198s 198s ( 198s hg init hgrepo && 198s cd hgrepo && 198s echo a > a && 198s hg add a && 198s hg commit -m a && 198s hg bookmark -r null bookmark 198s ) && 198s 198s ( 198s git clone "hg::hgrepo" gitrepo && 198s check gitrepo HEAD a && 198s cd gitrepo && 198s git checkout --quiet -b bookmark && 198s git remote -v && 198s echo b > b && 198s git add b && 198s git commit -m b && 198s git push origin bookmark 198s ) 198s 199s Cloning into 'gitrepo'... 199s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 199s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 199s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 199s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 199s /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. 199s or locale.getdefaultlocale()[1] 199s adding changesets 199s adding manifests 199s adding file changes 199s adding remote bookmark bookmark 199s added 1 changesets with 1 changes to 1 files 199s new changesets 90a267ad9a4e 199s WARNING: Ignoring invalid bookmark 'bookmark' 199s progress revision walk 'bookmarks/master' (0/0) 199s progress revision 0 'master' (0/1) 199s origin hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo (fetch) 199s origin hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo (push) 199s [bookmark 12dcf0d] b 199s Author: A U Thor 199s 1 file changed, 1 insertion(+) 199s create mode 100644 b 199s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 199s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 199s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 199s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 199s /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. 199s or locale.getdefaultlocale()[1] 200s no changes found 200s WARNING: Ignoring invalid bookmark 'bookmark' 200s searching for changes 200s adding changesets 200s adding manifests 200s adding file changes 200s added 1 changesets with 1 changes to 1 files 200s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 200s * [new branch] bookmark -> bookmark 200s ok 29 - clone remote with null bookmark, then push 200s 200s expecting success: 200s test_when_finished "rm -rf hgrepo gitrepo" && 200s 200s ( 200s hg init hgrepo && 200s cd hgrepo && 200s echo one > content && 200s hg add content && 200s hg commit -m one && 200s echo two > content && 200s hg commit -m two 200s ) && 200s 200s git clone "hg::hgrepo" gitrepo && 200s hg -R hgrepo log --template "{node}\n\n" > expected && 200s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 200s test_cmp expected actual 200s 200s Cloning into 'gitrepo'... 200s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 200s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 200s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 200s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 200s adding manifests 200s adding file changes 200s added 2 changesets with 2 changes to 1 files 200s new changesets 1b2fb64d75f5:515c3b0961fd 200s progress revision walk 'bookmarks/master' (1/1) 200s progress revision 0 'master' (0/2) 201s ok 30 - notes 201s 201s expecting success: 201s test_when_finished "rm -rf hgrepo gitrepo" && 201s 201s ( 201s hg init hgrepo && 201s cd hgrepo && 201s echo one > content && 201s hg add content && 201s hg commit -m one 201s ) && 201s 201s git clone "hg::hgrepo" gitrepo && 201s 201s ( 201s cd gitrepo && 201s echo two > content && 201s git commit -a -m two && 201s git push 201s ) && 201s 201s hg -R hgrepo log --template "{node}\n\n" > expected && 201s git --git-dir=gitrepo/.git log --pretty="tformat:%N" --notes=hg > actual && 201s test_cmp expected actual 201s 201s Cloning into 'gitrepo'... 201s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 201s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 201s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 201s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 201s /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. 201s or locale.getdefaultlocale()[1] 201s adding changesets 201s adding manifests 201s adding file changes 201s added 1 changesets with 1 changes to 1 files 201s new changesets 07474cf52980 201s progress revision walk 'bookmarks/master' (0/0) 201s progress revision 0 'master' (0/1) 201s [master 12a7d9c] two 201s Author: A U Thor 201s 1 file changed, 1 insertion(+), 1 deletion(-) 201s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 201s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 201s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 201s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 201s /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. 201s or locale.getdefaultlocale()[1] 202s no changes found 202s searching for changes 202s adding changesets 202s adding manifests 202s adding file changes 202s added 1 changesets with 1 changes to 1 files 202s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 202s fffffff..12a7d9c master -> master 202s ok 31 - push updates notes 202s 202s expecting success: 202s test_when_finished "rm -rf hgrepo gitrepo" && 202s 202s ( 202s hg init hgrepo && 202s cd hgrepo && 202s echo one > content && 202s hg add content && 202s hg commit -m one 202s ) && 202s 202s git clone "hg::hgrepo" gitrepo && 202s 202s ( 202s cd gitrepo && 202s echo two > content && 202s git commit -a -m two && 202s git push origin master && 202s git branch feature-a && 202s git push origin feature-a 202s ) && 202s 202s check_bookmark hgrepo feature-a two 202s 202s Cloning into 'gitrepo'... 202s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 202s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 202s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 202s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 202s adding manifests 202s adding file changes 202s added 1 changesets with 1 changes to 1 files 202s new changesets fccb47ffa68e 202s progress revision walk 'bookmarks/master' (0/0) 202s progress revision 0 'master' (0/1) 202s [master a613c8d] two 202s Author: A U Thor 202s 1 file changed, 1 insertion(+), 1 deletion(-) 202s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 202s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 202s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 202s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 203s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 203s or locale.getdefaultlocale()[1] 203s no changes found 203s searching for changes 203s adding changesets 203s adding manifests 203s adding file changes 203s added 1 changesets with 1 changes to 1 files 203s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 203s fffffff..a613c8d master -> master 203s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 203s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 203s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 203s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 203s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 203s or locale.getdefaultlocale()[1] 203s no changes found 203s 1 local changesets published 203s searching for changes 203s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 203s * [new branch] feature-a -> feature-a 203s ok 32 - push bookmark without changesets 203s 203s expecting success: 203s test_when_finished "rm -rf hgrepo gitrepo" && 203s 203s ( 203s hg init hgrepo && 203s cd hgrepo && 203s echo one > content && 203s hg add content && 203s hg commit -m one 203s ) && 203s 203s git clone "hg::hgrepo" gitrepo && 203s 203s (cd hgrepo && hg tag v1.0) && 203s (cd gitrepo && git pull) && 203s 203s echo "v1.0" > expected && 203s git --git-dir=gitrepo/.git tag > actual && 203s test_cmp expected actual 203s 204s Cloning into 'gitrepo'... 204s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 204s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 204s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 204s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 204s /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. 204s or locale.getdefaultlocale()[1] 204s adding changesets 204s adding manifests 204s adding file changes 204s added 1 changesets with 1 changes to 1 files 204s new changesets 2204ed50faa0 204s progress revision walk 'bookmarks/master' (0/0) 204s progress revision 0 'master' (0/1) 204s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 204s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 204s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 204s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 204s /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. 204s or locale.getdefaultlocale()[1] 204s searching for changes 204s adding changesets 204s adding manifests 204s adding file changes 204s added 1 changesets with 1 changes to 1 files 204s new changesets d911fe053306 204s progress revision 1 'default' (0/1) 204s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 204s 12ee28e..6f8d322 master -> origin/master 204s 12ee28e..6f8d322 branches/default -> origin/branches/default 204s * [new tag] v1.0 -> v1.0 204s Updating 12ee28e..6f8d322 204s Fast-forward 204s .hgtags | 1 + 204s 1 file changed, 1 insertion(+) 204s create mode 100644 .hgtags 204s ok 33 - pull tags 204s 204s expecting success: 204s test_when_finished "rm -rf hgrepo gitrepo" && 204s 204s ( 204s hg init hgrepo && 204s cd hgrepo && 204s echo one > content && 204s hg add content && 204s hg commit -m one && 204s hg branch feature && 204s echo two > content && 204s hg commit -m two && 204s hg update default && 204s echo three > content && 204s hg commit -m three 204s ) && 204s 204s ( 204s git clone "hg::hgrepo" gitrepo && 204s cd gitrepo && 204s git merge -m Merge -Xtheirs origin/branches/feature && 204s git push 204s ) && 204s 204s cat > expected <<-EOF && 204s Merge 204s three 204s two 204s one 204s EOF 204s hg -R hgrepo log --template "{desc}\n" > actual && 204s test_cmp expected actual 204s 205s marked working directory as branch feature 205s (branches are permanent and global, did you want a bookmark?) 205s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 205s Cloning into 'gitrepo'... 205s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 205s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 205s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 205s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 205s adding manifests 205s adding file changes 205s added 3 changesets with 3 changes to 1 files (+1 heads) 205s new changesets 08c4ae80124e:1c7ace4b39f1 205s progress revision walk 'bookmarks/master' (2/2) 205s progress revision 0 'master' (0/2) 205s progress revision 1 'feature' (0/1) 206s Auto-merging content 206s Merge made by the 'ort' strategy. 206s content | 2 +- 206s 1 file changed, 1 insertion(+), 1 deletion(-) 206s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 206s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 206s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 206s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 206s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 206s or locale.getdefaultlocale()[1] 206s no changes found 206s searching for changes 206s adding changesets 206s adding manifests 206s adding file changes 206s added 1 changesets with 1 changes to 1 files (-1 heads) 206s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 206s fffffff..26a3438 master -> master 206s ok 34 - push merged named branch 206s 206s expecting success: 206s test_when_finished "rm -rf hgrepo gitrepo" && 206s 206s ( 206s hg init hgrepo && 206s cd hgrepo && 206s echo one > content && 206s hg add content && 206s hg commit -m one 206s ) && 206s 206s ( 206s git clone "hg::hgrepo" gitrepo && 206s cd gitrepo && 206s git tag v1.0 && 206s git push --tags 206s ) && 206s 206s echo "C O Mitter " > expected && 206s hg -R hgrepo log --template "{author}\n" -r tip > actual && 206s test_cmp expected actual 206s 207s Cloning into 'gitrepo'... 207s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 207s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 207s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 207s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 207s /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. 207s or locale.getdefaultlocale()[1] 207s adding changesets 207s adding manifests 207s adding file changes 207s added 1 changesets with 1 changes to 1 files 207s new changesets 4717ec7b6cc1 207s progress revision walk 'bookmarks/master' (0/0) 207s progress revision 0 'master' (0/1) 207s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 207s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 207s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 207s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 207s /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. 207s or locale.getdefaultlocale()[1] 207s no changes found 207s searching for changes 207s adding changesets 207s adding manifests 207s adding file changes 207s added 1 changesets with 1 changes to 1 files 207s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 207s * [new tag] v1.0 -> v1.0 207s ok 35 - light tag sets author 207s 207s expecting success: 207s test_when_finished "rm -rf hgrepo gitrepo" && 207s 207s ( 207s hg init hgrepo && 207s cd hgrepo && 207s echo one > content && 207s hg add content && 207s hg commit -m one && 207s hg branch feature && 207s echo two > content && 207s hg commit -m two 207s ) && 207s 207s ( 207s git clone "hg::hgrepo" gitrepo && 207s cd gitrepo && 207s git branch && 207s git checkout branches/feature && 207s git tag v1.0 && 207s git push --tags 207s ) && 207s 207s echo feature > expected && 207s hg -R hgrepo log --template="{branch}\n" -r tip > actual && 207s test_cmp expected actual 207s 208s marked working directory as branch feature 208s (branches are permanent and global, did you want a bookmark?) 208s Cloning into 'gitrepo'... 208s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 208s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 208s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 208s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 208s /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. 208s or locale.getdefaultlocale()[1] 208s adding changesets 208s adding manifests 208s adding file changes 208s added 2 changesets with 2 changes to 1 files 208s new changesets 82be34483ac7:98a7b3dfb0e9 208s progress revision walk 'bookmarks/master' (0/0) 208s progress revision 0 'master' (0/1) 208s progress revision 1 'feature' (0/1) 208s * master 208s Switched to a new branch 'branches/feature' 208s branch 'branches/feature' set up to track 'origin/branches/feature'. 208s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 208s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 208s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 208s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 208s /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. 208s or locale.getdefaultlocale()[1] 208s no changes found 208s searching for changes 208s adding changesets 208s adding manifests 208s adding file changes 208s added 1 changesets with 1 changes to 1 files 208s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 208s * [new tag] v1.0 -> v1.0 209s ok 36 - push tag different branch 209s 209s expecting success: 209s test_when_finished "rm -rf hgrepo gitrepo" && 209s 209s ( 209s hg init hgrepo && 209s cd hgrepo && 209s 209s echo test > test_file && 209s hg add test_file && 209s hg commit -m add && 209s 209s hg rm test_file && 209s hg commit -m remove 209s ) && 209s 209s git clone "hg::hgrepo" gitrepo && 209s check_files gitrepo 209s 209s Cloning into 'gitrepo'... 209s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 209s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 209s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 209s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 210s adding manifests 210s adding file changes 210s added 2 changesets with 1 changes to 1 files 210s new changesets 11a292383bf8:12e28790300c 210s progress revision walk 'bookmarks/master' (1/1) 210s progress revision 0 'master' (0/2) 210s ok 37 - cloning a removed file works 210s 210s expecting success: 210s test_when_finished "rm -rf hgrepo gitrepo" && 210s 210s ( 210s hg init hgrepo && 210s cd hgrepo && 210s 210s echo test > dir_or_file && 210s hg add dir_or_file && 210s hg commit -m add && 210s 210s hg rm dir_or_file && 210s mkdir dir_or_file && 210s echo test > dir_or_file/test_file && 210s hg add dir_or_file/test_file && 210s hg commit -m replase 210s ) && 210s 210s git clone "hg::hgrepo" gitrepo && 210s check_files gitrepo "dir_or_file/test_file" 210s 211s Cloning into 'gitrepo'... 211s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 211s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 211s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 211s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 211s /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. 211s or locale.getdefaultlocale()[1] 211s adding changesets 211s adding manifests 211s adding file changes 211s added 2 changesets with 2 changes to 2 files 211s new changesets fe6569eec0ae:84135d7acc10 211s progress revision walk 'bookmarks/master' (1/1) 211s progress revision 0 'master' (0/2) 211s ok 38 - cloning a file replaced with a directory 211s 211s expecting success: 211s test_when_finished "rm -rf hgrepo gitrepo" && 211s 211s ( 211s hg init hgrepo && 211s cd hgrepo && 211s 211s mkdir dir_or_file && 211s echo test > dir_or_file/test_file && 211s hg add dir_or_file/test_file && 211s hg commit -m add && 211s 211s hg rm dir_or_file/test_file && 211s echo test > dir_or_file && 211s hg add dir_or_file && 211s hg commit -m add && 211s 211s hg rm dir_or_file 211s ) && 211s 211s git clone "hg::hgrepo" gitrepo && 211s check_files gitrepo "dir_or_file" 211s 212s Cloning into 'gitrepo'... 212s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 212s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 212s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 212s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 212s adding manifests 212s adding file changes 212s added 2 changesets with 2 changes to 2 files 212s new changesets 2eaddacf86d8:62d2d3a00d98 212s progress revision walk 'bookmarks/master' (1/1) 212s progress revision 0 'master' (0/2) 212s ok 39 - clone replace directory with a file 212s 212s expecting success: 212s test_when_finished "rm -rf hgrepo gitrepo" && 212s 212s ( 212s hg init hgrepo && 212s cd hgrepo && 212s 212s touch test.txt && 212s hg add test.txt && 212s hg commit -m master && 212s hg branch parent && 212s echo test >test.txt && 212s hg commit -m test && 212s hg branch parent/child && 212s echo test1 >test.txt && 212s hg commit -m test1 212s ) && 212s 212s git clone -c remote-hg.ignore-name=child "hg::hgrepo" gitrepo && 212s check_files gitrepo "test.txt" 212s 213s marked working directory as branch parent 213s (branches are permanent and global, did you want a bookmark?) 213s marked working directory as branch parent/child 213s Cloning into 'gitrepo'... 213s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 213s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 213s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 213s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 213s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 213s or locale.getdefaultlocale()[1] 213s adding changesets 213s adding manifests 213s adding file changes 213s added 3 changesets with 3 changes to 1 files 213s new changesets 5098d164b49b:ac6cad27e74f 213s WARNING: Ignoring matched branch parent/child 213s progress revision walk 'bookmarks/master' (0/0) 213s progress revision 0 'master' (0/1) 213s progress revision 1 'parent' (0/1) 214s ok 40 - clone can ignore invalid refnames 214s 214s expecting success: 214s test_when_finished "rm -rf hgrepo gitrepo" && 214s 214s ( 214s hg init hgrepo && 214s cd hgrepo && 214s echo one > content && 214s hg add content && 214s hg commit -m one 214s ) && 214s 214s ( 214s git clone "hg::hgrepo" gitrepo && 214s cd gitrepo && 214s git tag -m "Version 1.0" v1.0 && 214s git push --tags 214s ) && 214s 214s cat > expected <<-\EOF && 214s tip:Version 1.0:C O Mitter 214s v1.0:one:H G Wells 214s EOF 214s 214s hg -R hgrepo log --template "{tags}:{desc}:{author}\n" > actual && 214s 214s test_cmp expected actual 214s 214s Cloning into 'gitrepo'... 214s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 214s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 214s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 214s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 214s adding manifests 214s adding file changes 214s added 1 changesets with 1 changes to 1 files 214s new changesets 0f3d9ea48daf 214s progress revision walk 'bookmarks/master' (0/0) 214s progress revision 0 'master' (0/1) 214s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 214s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 214s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 214s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 214s searching for changes 214s adding changesets 214s adding manifests 214s adding file changes 214s added 1 changesets with 1 changes to 1 files 214s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 214s * [new tag] v1.0 -> v1.0 215s ok 41 - push annotated tag 215s 215s expecting success: 215s test_when_finished "rm -rf hgrepo gitrepo1 gitrepo2" && 215s 215s hg init hgrepo && 215s 215s ( 215s git clone "hg::hgrepo" gitrepo1 && 215s cd gitrepo1 && 215s echo two >> content && 215s git add content && 215s git commit -m two --date="2016-09-26 00:00:00 -0230" && 215s git push 215s ) && 215s 215s git clone "hg::hgrepo" gitrepo2 && 215s 215s git --git-dir=gitrepo1/.git log -1 --format="%ai" > expected && 215s git --git-dir=gitrepo2/.git log -1 --format="%ai" > actual && 215s test_cmp expected actual 215s 215s Cloning into 'gitrepo1'... 215s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 215s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 215s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 215s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 215s /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. 215s or locale.getdefaultlocale()[1] 215s no changes found 215s warning: You appear to have cloned an empty repository. 215s [master (root-commit) 9f40cc0] two 215s Author: A U Thor 215s Date: Mon Sep 26 00:00:00 2016 -0230 215s 1 file changed, 1 insertion(+) 215s create mode 100644 content 215s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 215s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 215s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 215s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 215s /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. 215s or locale.getdefaultlocale()[1] 215s no changes found 215s searching for changes 215s adding changesets 215s adding manifests 215s adding file changes 215s added 1 changesets with 1 changes to 1 files 215s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 215s * [new branch] master -> master 215s Cloning into 'gitrepo2'... 215s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 215s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 215s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 215s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 216s adding manifests 216s adding file changes 216s added 1 changesets with 1 changes to 1 files 216s new changesets e522f351d13b 216s progress revision walk 'bookmarks/master' (0/0) 216s progress revision 0 'master' (0/1) 216s ok 42 - timezone issues with negative offsets 216s 216s expecting success: 216s test_when_finished "rm -rf hgrepo* gitrepo*" && 216s 216s ( 216s hg init hgrepo && 216s cd hgrepo && 216s echo zero > content && 216s hg add content && 216s hg commit -m zero 216s hg bookmark feature-a 216s ) && 216s 216s git clone "hg::hgrepo" gitrepo && 216s check_bookmark hgrepo feature-a zero && 216s 216s ( 216s cd gitrepo && 216s git push --quiet origin :feature-a 216s ) && 216s 216s check_bookmark hgrepo feature-a 216s 216s Cloning into 'gitrepo'... 216s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 216s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 216s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 216s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 217s adding manifests 217s adding file changes 217s adding remote bookmark feature-a 217s added 1 changesets with 1 changes to 1 files 217s new changesets a5a2e6e8f868 217s progress revision walk 'bookmarks/master' (0/0) 217s progress revision 0 'master' (0/1) 217s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 217s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 217s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 217s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 217s error: refusing to update ref with bad name 'hg/origin/refs/heads/feature-a' 217s ok 43 - remote delete bookmark 217s 217s expecting success: 217s test_when_finished "rm -rf hgrepo gitrepo" && 217s 217s ( 217s hg init hgrepo && 217s cd hgrepo && 217s echo zero > content && 217s hg add content && 217s hg commit -m zero 217s ) && 217s 217s git clone "hg::hgrepo" gitrepo && 217s 217s ( 217s cd gitrepo && 217s echo one > content && 217s git commit -a -m one && 217s git push --quiet origin master:feature-b && 217s git push --quiet origin master^:refs/heads/feature-a 217s ) && 217s 217s check_bookmark hgrepo feature-a zero && 217s check_bookmark hgrepo feature-b one && 217s 217s ( 217s cd gitrepo && 217s git push --quiet origin master:feature-a 217s ) && 217s 217s check_bookmark hgrepo feature-a one 217s 218s Cloning into 'gitrepo'... 218s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 218s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 218s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 218s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 218s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 218s or locale.getdefaultlocale()[1] 218s adding changesets 218s adding manifests 218s adding file changes 218s added 1 changesets with 1 changes to 1 files 218s new changesets 27cdb4692b45 218s progress revision walk 'bookmarks/master' (0/0) 218s progress revision 0 'master' (0/1) 218s [master a1a84c1] one 218s Author: A U Thor 218s 1 file changed, 1 insertion(+), 1 deletion(-) 218s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 218s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 218s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 218s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 218s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 218s or locale.getdefaultlocale()[1] 218s no changes found 218s searching for changes 218s adding changesets 218s adding manifests 218s adding file changes 218s added 1 changesets with 1 changes to 1 files 218s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 218s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 218s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 218s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 218s /usr/bin/git-remote-hg:57: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 218s or locale.getdefaultlocale()[1] 218s no changes found 218s adding remote bookmark feature-b 218s 1 local changesets published 219s searching for changes 219s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 219s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 219s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 219s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 219s adding remote bookmark feature-a 219s searching for changes 219s ok 44 - source:dest bookmark 219s 219s expecting success: 219s test_when_finished "rm -rf gitrepo* hgrepo*" && 219s 219s setup_check_hg_commits_repo && 219s 219s ( 219s cd gitrepo && 219s git fetch origin && 219s git reset --hard origin/master && 219s ! git push second master 2>../error 219s ) 219s 219s cat error && 219s grep rejected error | grep hg 219s 220s Cloning into 'gitrepo'... 220s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 220s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 220s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 220s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 220s /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. 220s or locale.getdefaultlocale()[1] 220s adding changesets 220s adding manifests 220s adding file changes 220s added 1 changesets with 1 changes to 1 files 220s new changesets 2ce5901daa9c 220s progress revision walk 'bookmarks/master' (0/0) 220s progress revision 0 'master' (0/1) 220s updating to branch default 220s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 220s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 220s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 220s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 220s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 220s /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. 220s or locale.getdefaultlocale()[1] 220s no changes found 220s progress revision walk 'branches/default' (0/0) 220s progress revision 0 'default' (0/1) 220s From hg::../hgrepo.second 220s * [new branch] branches/default -> second/branches/default 220s * [new branch] master -> second/master 222s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 222s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 222s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 222s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 222s /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. 222s or locale.getdefaultlocale()[1] 222s searching for changes 222s adding changesets 222s adding manifests 222s adding file changes 222s added 5 changesets with 5 changes to 2 files 222s new changesets 9faae3c9db2a:4109b645ccb2 222s progress revision 1 'default' (0/5) 222s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 222s 7946873..e809ca4 master -> origin/master 222s 7946873..e809ca4 branches/default -> origin/branches/default 222s HEAD is now at e809ca4 restored 222s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 222s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 222s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 222s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 222s /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. 222s or locale.getdefaultlocale()[1] 222s no changes found 222s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo.second 222s ! [remote rejected] master -> master (rejected not pushing hg based commit a3836ce36aeeb78d0186900d9a5f1080737fab4f) 222s error: failed to push some refs to 'hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo.second' 222s ! [remote rejected] master -> master (rejected not pushing hg based commit a3836ce36aeeb78d0186900d9a5f1080737fab4f) 222s ok 45 - check-hg-commits with fail mode 222s 222s expecting success: 222s check_hg_commits_push 222s 223s Cloning into 'gitrepo'... 223s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 223s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 223s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 223s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 progress revision walk 'bookmarks/master' (0/0) 223s progress revision 0 'master' (0/1) 223s updating to branch default 223s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 223s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 223s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 223s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 223s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 progress revision walk 'branches/default' (0/0) 223s progress revision 0 'default' (0/1) 223s From hg::../hgrepo.second 223s * [new branch] branches/default -> second/branches/default 223s * [new branch] master -> second/master 224s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 224s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 224s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 224s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 225s /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. 225s or locale.getdefaultlocale()[1] 225s progress revision 1 'default' (0/5) 225s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 225s 30d4d64..6ad5e2c master -> origin/master 225s 30d4d64..6ad5e2c branches/default -> origin/branches/default 225s HEAD is now at 6ad5e2c restored 225s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 225s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 225s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 225s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 225s /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. 225s or locale.getdefaultlocale()[1] 225s WARNING: Pushing hg changeset 6b15b495607a71cd1df92ff5b479f24aeafbbe84 for 454340cb7f4ba6ba3586a38d8b7016a9e728ab69 225s WARNING: Pushing hg changeset 6449c7b2317a6a54225fafcb17633af60de0a522 for caf1a959015065a1cf471475e79c6a194302e4e6 225s WARNING: Pushing hg changeset e57ea870d2a564cbf42e99356ab51220a0ec0e2d for 43e364f24f8c3bb2962464c09be549595783b1b2 225s WARNING: Pushing hg changeset 61f5efe306ebed7d66e2e787764824a3da8f3d5a for 0b2197d97ea7b04479ee5a07b70afc3b55ed5cae 225s WARNING: Pushing hg changeset db3b91739d227547bbe9977c8131697b6cbba7aa for 6ad5e2c53074972185d311510ba2d38294cb1ee8 225s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo.second 225s fffffff..6ad5e2c master -> master 225s WARNING: Pushing hg changeset 6b15b495607a71cd1df92ff5b479f24aeafbbe84 for 454340cb7f4ba6ba3586a38d8b7016a9e728ab69 225s WARNING: Pushing hg changeset 6449c7b2317a6a54225fafcb17633af60de0a522 for caf1a959015065a1cf471475e79c6a194302e4e6 225s WARNING: Pushing hg changeset e57ea870d2a564cbf42e99356ab51220a0ec0e2d for 43e364f24f8c3bb2962464c09be549595783b1b2 225s WARNING: Pushing hg changeset 61f5efe306ebed7d66e2e787764824a3da8f3d5a for 0b2197d97ea7b04479ee5a07b70afc3b55ed5cae 225s WARNING: Pushing hg changeset db3b91739d227547bbe9977c8131697b6cbba7aa for 6ad5e2c53074972185d311510ba2d38294cb1ee8 225s ok 46 - check-hg-commits with push mode - no local proxy 225s 225s expecting success: 225s check_hg_commits_push 225s 226s Cloning into 'gitrepo'... 226s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 226s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 226s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 226s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 226s /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. 226s or locale.getdefaultlocale()[1] 226s adding changesets 226s adding manifests 226s adding file changes 226s added 1 changesets with 1 changes to 1 files 226s new changesets dcf782d67f26 226s progress revision walk 'bookmarks/master' (0/0) 226s progress revision 0 'master' (0/1) 226s updating to branch default 226s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 226s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 226s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 227s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 227s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 227s /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. 227s or locale.getdefaultlocale()[1] 227s no changes found 227s progress revision walk 'branches/default' (0/0) 227s progress revision 0 'default' (0/1) 227s From hg::../hgrepo.second 227s * [new branch] branches/default -> second/branches/default 227s * [new branch] master -> second/master 228s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 228s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 228s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 228s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 228s /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. 228s or locale.getdefaultlocale()[1] 228s searching for changes 228s adding changesets 228s adding manifests 228s adding file changes 228s added 5 changesets with 5 changes to 2 files 228s new changesets da89580be371:882c2bf4a5aa 228s progress revision 1 'default' (0/5) 228s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo 228s 497d013..8eae1ff master -> origin/master 228s 497d013..8eae1ff branches/default -> origin/branches/default 228s HEAD is now at 8eae1ff restored 228s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 228s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 228s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 228s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 228s /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. 228s or locale.getdefaultlocale()[1] 228s no changes found 228s WARNING: Using hg changeset da89580be371852e6bfcd6cdfac442b6dc8bc284 for 5bfa28718093057227546ff98aaec4b81be87bbb 228s WARNING: Using hg changeset 3710abfa27f6f2c9a9f5e80990fc0ec83d9ade85 for 351c8c96394a2f44a56c5b5cdb1c9b2276348041 228s WARNING: Using hg changeset 972b5eb2f5dc439ee97b90748fc8c43885062a8b for 8c0bc4c55e9dde7668695dba8601e00e31de7541 228s WARNING: Using hg changeset 41b1ecda2ebc49d95c68ab054828c70ea1f8b89a for 5b195daf3e415ebc2b11c9633a56d927aac09c08 228s WARNING: Using hg changeset 882c2bf4a5aa599fcd020781a447683c46284883 for 8eae1ff1b799c4022ecc212166ce5979b0228c8b 228s searching for changes 228s adding changesets 228s adding manifests 228s adding file changes 228s added 5 changesets with 5 changes to 2 files 228s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/hgrepo.second 228s fffffff..8eae1ff master -> master 228s WARNING: Using hg changeset da89580be371852e6bfcd6cdfac442b6dc8bc284 for 5bfa28718093057227546ff98aaec4b81be87bbb 228s WARNING: Using hg changeset 3710abfa27f6f2c9a9f5e80990fc0ec83d9ade85 for 351c8c96394a2f44a56c5b5cdb1c9b2276348041 228s WARNING: Using hg changeset 972b5eb2f5dc439ee97b90748fc8c43885062a8b for 8c0bc4c55e9dde7668695dba8601e00e31de7541 228s WARNING: Using hg changeset 41b1ecda2ebc49d95c68ab054828c70ea1f8b89a for 5b195daf3e415ebc2b11c9633a56d927aac09c08 228s WARNING: Using hg changeset 882c2bf4a5aa599fcd020781a447683c46284883 for 8eae1ff1b799c4022ecc212166ce5979b0228c8b 229s ok 47 - check-hg-commits with push mode - with local proxy 229s 229s expecting success: 229s test_when_finished "rm -rf gitrepo* hgrepo*" && 229s 229s setup_check_shared_marks_repo && 229s 229s ( 229s cd gitrepo && 229s check_marks .git/hg y && 229s check_marks .git/hg/origin n && 229s check_marks .git/hg/second n 229s ) 229s 229s Cloning into 'gitrepo'... 229s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 229s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 229s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 229s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 229s /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. 229s or locale.getdefaultlocale()[1] 229s adding changesets 229s adding manifests 229s adding file changes 229s added 1 changesets with 1 changes to 1 files 229s new changesets c86c44d75b99 229s progress revision walk 'bookmarks/master' (0/0) 229s progress revision 0 'master' (0/1) 229s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 229s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 229s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 229s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 230s /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. 230s or locale.getdefaultlocale()[1] 230s no changes found 230s From hg::../hgrepo 230s * [new branch] branches/default -> second/branches/default 230s * [new branch] master -> second/master 230s total 28 230s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 . 230s drwxrwxr-x 8 ubuntu ubuntu 4096 Oct 18 18:29 .. 230s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .hg 230s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 230s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 230s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 origin 230s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 second 230s total 16 230s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 230s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 230s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 230s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 230s total 16 230s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 230s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 230s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 230s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 230s ok 48 - shared-marks unset 230s 230s expecting success: 230s test_when_finished "rm -rf gitrepo* hgrepo*" && 230s 230s git config --global remote-hg.shared-marks true && 230s setup_check_shared_marks_repo && 230s 230s ( 230s cd gitrepo && 230s check_marks .git/hg y && 230s check_marks .git/hg/origin n && 230s check_marks .git/hg/second n 230s ) && 230s 230s git config --global remote-hg.shared-marks false && 230s ( 230s cd gitrepo && 230s git fetch origin && 230s check_marks .git/hg n && 230s check_marks .git/hg/origin y && 230s check_marks .git/hg/second y 230s ) 230s 230s Cloning into 'gitrepo'... 230s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 230s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 230s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 230s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 230s /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. 230s or locale.getdefaultlocale()[1] 230s adding changesets 230s adding manifests 230s adding file changes 230s added 1 changesets with 1 changes to 1 files 230s new changesets d9e70fd82e9f 230s progress revision walk 'bookmarks/master' (0/0) 230s progress revision 0 'master' (0/1) 230s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 230s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 230s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 230s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 231s /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. 231s or locale.getdefaultlocale()[1] 231s no changes found 231s From hg::../hgrepo 231s * [new branch] branches/default -> second/branches/default 231s * [new branch] master -> second/master 231s total 28 231s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 . 231s drwxrwxr-x 8 ubuntu ubuntu 4096 Oct 18 18:29 .. 231s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .hg 231s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 231s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 origin 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 second 231s total 16 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 231s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 231s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 231s total 16 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 231s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 231s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 231s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 231s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 231s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 231s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 231s /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. 231s or locale.getdefaultlocale()[1] 231s WARNING: seeded marks of second with shared; performing gc 231s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 231s or locale.getdefaultlocale()[1] 231s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 231s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 231s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 231s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 231s ERROR: found both .git/hg/second/marks-git and .git/hg/marks-git 231s WARNING: gc for second failed 231s WARNING: seeded marks of origin with shared; performing gc 231s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 231s or locale.getdefaultlocale()[1] 231s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 231s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 231s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 231s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 231s Loading hg marks ... 231s Loading git marks ... 231s Performing garbage collection on git commits ... 231s Computing marks intersection ... 231s Including notes commits ... 231s Writing hg marks ... 231s Writing git marks ... 231s no changes found 231s progress revision walk 'branches/default' (0/0) 231s progress revision 0 'default' (0/1) 231s total 20 231s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 . 231s drwxrwxr-x 8 ubuntu ubuntu 4096 Oct 18 18:29 .. 231s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .hg 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 origin 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 second 231s total 24 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 231s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 231s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 231s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 231s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 231s total 24 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 231s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 231s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 231s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 231s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 231s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 231s ok 49 - shared-marks set to unset 231s 231s expecting success: 231s test_when_finished "rm -rf gitrepo* hgrepo*" && 231s 231s git config --global remote-hg.shared-marks false && 231s setup_check_shared_marks_repo && 231s 231s ( 231s cd gitrepo && 231s check_marks .git/hg n && 231s check_marks .git/hg/origin y && 231s check_marks .git/hg/second y 231s ) && 231s 231s git config --global --unset remote-hg.shared-marks && 231s ( 231s cd gitrepo && 231s git fetch origin && 231s check_marks .git/hg n && 231s check_marks .git/hg/origin y && 231s check_marks .git/hg/second y 231s ) && 231s 231s git config --global remote-hg.shared-marks true && 231s ( 231s cd gitrepo && 231s git fetch origin && 231s check_marks .git/hg y && 231s check_marks .git/hg/origin n && 231s check_marks .git/hg/second n 231s ) 231s 232s Cloning into 'gitrepo'... 232s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 232s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 232s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 232s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 232s /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. 232s or locale.getdefaultlocale()[1] 232s adding changesets 232s adding manifests 232s adding file changes 232s added 1 changesets with 1 changes to 1 files 232s new changesets 718987741216 232s progress revision walk 'bookmarks/master' (0/0) 232s progress revision 0 'master' (0/1) 232s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 232s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 232s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 232s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 232s /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. 232s or locale.getdefaultlocale()[1] 232s progress revision walk 'branches/default' (0/0) 232s progress revision 0 'default' (0/1) 232s no changes found 232s From hg::../hgrepo 232s * [new branch] branches/default -> second/branches/default 232s * [new branch] master -> second/master 232s total 20 232s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 . 232s drwxrwxr-x 8 ubuntu ubuntu 4096 Oct 18 18:29 .. 232s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .hg 232s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 origin 232s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 second 232s total 24 232s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 232s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 232s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 232s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 232s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 232s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 232s total 24 232s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 232s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 232s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 232s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 232s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 232s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 232s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 232s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 232s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 232s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 233s /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. 233s or locale.getdefaultlocale()[1] 233s no changes found 233s total 20 233s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 . 233s drwxrwxr-x 8 ubuntu ubuntu 4096 Oct 18 18:29 .. 233s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .hg 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 origin 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 second 233s total 24 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 233s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 233s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 233s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 233s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 233s total 24 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 233s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 233s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 233s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 233s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 233s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 233s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 233s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 233s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 233s /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. 233s or locale.getdefaultlocale()[1] 233s WARNING: using marks of remote origin as shared marks 233s no changes found 233s total 28 233s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 . 233s drwxrwxr-x 8 ubuntu ubuntu 4096 Oct 18 18:29 .. 233s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .hg 233s -rw-rw-r-- 1 ubuntu ubuntu 132 Oct 18 18:29 marks-git 233s -rw-rw-r-- 1 ubuntu ubuntu 116 Oct 18 18:29 marks-hg 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 origin 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 second 233s total 16 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 233s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 233s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 233s total 16 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 . 233s drwxrwxr-x 5 ubuntu ubuntu 4096 Oct 18 18:29 .. 233s drwxrwxr-x 3 ubuntu ubuntu 4096 Oct 18 18:29 clone 233s drwxrwxr-x 4 ubuntu ubuntu 4096 Oct 18 18:29 refs 233s ok 50 - shared-marks unset to set 233s 233s expecting success: 233s test_when_finished "rm -rf hgrepo gitrepo*" && 233s 233s hg init hgrepo && 233s 233s ( 233s git init gitrepo && 233s cd gitrepo && 233s git remote add origin "hg::../hgrepo" && 233s echo one > content && 233s chmod a+x content && 233s git add content && 233s git commit -a -m one && 233s git mv content content2 && 233s git commit -a -m two && 233s git push origin master 233s ) && 233s 233s ( 233s umask 0 && 233s cd hgrepo && 233s hg update && 233s stat content2 >expected && 233s grep -- -r.xr.xr.x expected 233s ) 233s 233s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/gitrepo/.git/ 233s [master (root-commit) 5913097] one 233s Author: A U Thor 233s 1 file changed, 1 insertion(+) 233s create mode 100755 content 233s [master cbb24bc] two 233s Author: A U Thor 233s 1 file changed, 0 insertions(+), 0 deletions(-) 233s rename content => content2 (100%) 233s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 233s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 233s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 233s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 233s /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. 233s or locale.getdefaultlocale()[1] 233s no changes found 233s searching for changes 233s adding changesets 233s adding manifests 233s adding file changes 233s added 2 changesets with 2 changes to 2 files 233s To hg::../hgrepo 233s * [new branch] master -> master 233s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 233s Access: (0777/-rwxrwxrwx) Uid: ( 1000/ ubuntu) Gid: ( 1000/ ubuntu) 233s ok 51 - push with renamed executable preserves executable bit 233s 233s expecting success: 233s test_when_finished "rm -rf sub hgrepo gitrepo*" && 233s 233s hg init hgrepo && 233s 233s ( 233s git init sub && 233s cd sub && 233s : >empty && 233s git add empty && 233s git commit -m init 233s ) && 233s 233s ( 233s git init gitrepo && 233s cd gitrepo && 233s git submodule add ../sub sub && 233s git remote add origin "hg::../hgrepo" && 233s git commit -a -m sub && 233s git push origin master 233s ) && 233s 233s ( 233s cd hgrepo && 233s hg update && 233s expected="[git-remote-hg: skipped import of submodule at $(git -C ../sub rev-parse HEAD)]" 233s test "$expected" = "$(cat sub)" 233s ) 233s 234s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/sub/.git/ 234s [master (root-commit) be983cd] init 234s Author: A U Thor 234s 1 file changed, 0 insertions(+), 0 deletions(-) 234s create mode 100644 empty 234s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/gitrepo/.git/ 234s Cloning into '/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.main-push/tmp/gitrepo/sub'... 234s done. 234s [master (root-commit) c56d720] sub 234s Author: A U Thor 234s 2 files changed, 4 insertions(+) 234s create mode 100644 .gitmodules 234s create mode 160000 sub 234s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 234s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 234s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 234s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 234s /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. 234s or locale.getdefaultlocale()[1] 234s no changes found 234s searching for changes 234s adding changesets 234s adding manifests 234s adding file changes 234s added 1 changesets with 2 changes to 2 files 234s To hg::../hgrepo 234s * [new branch] master -> master 234s 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 234s ok 52 - push with submodule 234s 234s # passed all 52 test(s) 234s 1..52 234s /bin/sh bidi.t --verbose 234s expecting success: 234s test_when_finished "rm -rf gitrepo* hgrepo*" && 234s 234s ( 234s git init -q gitrepo && 234s cd gitrepo && 234s 234s echo alpha > alpha && 234s git add alpha && 234s git commit -m "add älphà" && 234s 234s GIT_AUTHOR_NAME="tést èncödîng" && 234s export GIT_AUTHOR_NAME && 234s echo beta > beta && 234s git add beta && 234s git commit -m "add beta" && 234s 234s echo gamma > gamma && 234s git add gamma && 234s git commit -m "add gämmâ" && 234s 234s : TODO git config i18n.commitencoding latin-1 && 234s echo delta > delta && 234s git add delta && 234s git commit -m "add déltà" 234s ) && 234s 234s hg_clone gitrepo hgrepo && 234s git_clone hgrepo gitrepo2 && 234s hg_clone gitrepo2 hgrepo2 && 234s 234s HGENCODING=utf-8 hg_log hgrepo > expected && 234s HGENCODING=utf-8 hg_log hgrepo2 > actual && 234s 234s test_cmp expected actual 234s 234s [master (root-commit) 79c6ce2] add älphà 234s Author: A U Thor 234s 1 file changed, 1 insertion(+) 234s create mode 100644 alpha 234s [master 68b42de] add beta 234s Author: tést èncödîng 234s 1 file changed, 1 insertion(+) 234s create mode 100644 beta 234s [master 8ee0762] add gämmâ 234s Author: tést èncödîng 234s 1 file changed, 1 insertion(+) 234s create mode 100644 gamma 234s [master 3b0b48f] add déltà 234s Author: tést èncödîng 234s 1 file changed, 1 insertion(+) 234s create mode 100644 delta 234s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 234s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 234s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 234s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 234s /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. 234s or locale.getdefaultlocale()[1] 234s no changes found 234s searching for changes 234s adding changesets 234s adding manifests 234s adding file changes 234s added 4 changesets with 4 changes to 4 files 235s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 235s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 235s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 235s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 progress revision walk 'bookmarks/master' (3/3) 235s progress revision 0 'master' (0/4) 235s adding changesets 235s adding manifests 235s adding file changes 235s added 4 changesets with 4 changes to 4 files 235s new changesets 1e3e49d2cc8f:6674f1c866b5 235s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 235s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 235s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 235s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 searching for changes 235s no changes found 235s searching for changes 235s adding changesets 235s adding manifests 235s adding file changes 235s added 4 changesets with 4 changes to 4 files 236s ok 1 - encoding 236s 236s expecting success: 236s test_when_finished "rm -rf gitrepo* hgrepo*" && 236s 236s ( 236s git init -q gitrepo && 236s cd gitrepo && 236s echo alpha > alpha && 236s git add alpha && 236s git commit -m "add alpha" && 236s echo beta > beta && 236s git add beta && 236s git commit -m "add beta" 236s mkdir foo && 236s echo blah > foo/bar && 236s git add foo && 236s git commit -m "add foo" && 236s git rm alpha && 236s git commit -m "remove alpha" && 236s git rm foo/bar && 236s git commit -m "remove foo/bar" 236s ) && 236s 236s hg_clone gitrepo hgrepo && 236s git_clone hgrepo gitrepo2 && 236s hg_clone gitrepo2 hgrepo2 && 236s 236s hg_log hgrepo > expected && 236s hg_log hgrepo2 > actual && 236s 236s test_cmp expected actual 236s 236s [master (root-commit) 223a6f6] add alpha 236s Author: A U Thor 236s 1 file changed, 1 insertion(+) 236s create mode 100644 alpha 236s [master 862befc] add beta 236s Author: A U Thor 236s 1 file changed, 1 insertion(+) 236s create mode 100644 beta 236s [master 86bf00d] add foo 236s Author: A U Thor 236s 1 file changed, 1 insertion(+) 236s create mode 100644 foo/bar 236s rm 'alpha' 236s [master 74dc957] remove alpha 236s Author: A U Thor 236s 1 file changed, 1 deletion(-) 236s delete mode 100644 alpha 236s rm 'foo/bar' 236s [master ea36818] remove foo/bar 236s Author: A U Thor 236s 1 file changed, 1 deletion(-) 236s delete mode 100644 foo/bar 236s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 236s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 236s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 236s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 236s /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. 236s or locale.getdefaultlocale()[1] 236s no changes found 236s searching for changes 236s adding changesets 236s adding manifests 236s adding file changes 236s added 5 changesets with 3 changes to 3 files 237s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 237s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 237s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 237s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 237s /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. 237s or locale.getdefaultlocale()[1] 237s adding changesets 237s adding manifests 237s adding file changes 237s added 5 changesets with 3 changes to 3 files 237s new changesets 362b656574c3:54f595cbdf1f 237s progress revision walk 'bookmarks/master' (4/4) 237s progress revision 0 'master' (0/5) 237s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 237s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 237s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 237s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 237s /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. 237s or locale.getdefaultlocale()[1] 237s searching for changes 237s no changes found 237s searching for changes 237s adding changesets 237s adding manifests 237s adding file changes 237s added 5 changesets with 3 changes to 3 files 238s ok 2 - file removal 238s 238s expecting success: 238s test_when_finished "rm -rf gitrepo* hgrepo*" && 238s 238s ( 238s git init -q gitrepo && 238s cd gitrepo && 238s git config receive.denyCurrentBranch ignore && 238s echo alpha > alpha && 238s git add alpha && 238s git commit -m "add alpha" && 238s git tag alpha && 238s 238s echo beta > beta && 238s git add beta && 238s git commit -m "add beta" && 238s git tag -a -m "added tag beta" beta 238s ) && 238s 238s hg_clone gitrepo hgrepo && 238s git_clone hgrepo gitrepo2 && 238s hg_clone gitrepo2 hgrepo2 && 238s 238s hg_log hgrepo > expected && 238s hg_log hgrepo2 > actual && 238s 238s test_cmp expected actual 238s 238s [master (root-commit) 223a6f6] add alpha 238s Author: A U Thor 238s 1 file changed, 1 insertion(+) 238s create mode 100644 alpha 238s [master 862befc] add beta 238s Author: A U Thor 238s 1 file changed, 1 insertion(+) 238s create mode 100644 beta 238s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 238s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 238s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 238s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 238s /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. 238s or locale.getdefaultlocale()[1] 238s no changes found 238s searching for changes 238s adding changesets 238s adding manifests 238s adding file changes 238s added 2 changesets with 2 changes to 2 files 238s searching for changes 238s searching for changes 238s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 238s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 238s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 238s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 238s /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. 238s or locale.getdefaultlocale()[1] 238s adding changesets 238s adding manifests 238s adding file changes 238s added 2 changesets with 2 changes to 2 files 238s new changesets 362b656574c3:7cd99375c843 238s progress revision walk 'bookmarks/master' (1/1) 238s progress revision 0 'master' (0/2) 239s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 239s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 239s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 239s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 searching for changes 239s no changes found 239s searching for changes 239s adding changesets 239s adding manifests 239s adding file changes 239s added 2 changesets with 2 changes to 2 files 239s ok 3 - git tags 239s 239s expecting success: 239s test_when_finished "rm -rf gitrepo* hgrepo*" && 239s 239s ( 239s git init -q gitrepo && 239s cd gitrepo && 239s 239s echo alpha > alpha && 239s git add alpha && 239s git commit -q -m "add alpha" && 239s git checkout -q -b not-master 239s ) && 239s 239s ( 239s hg_clone gitrepo hgrepo && 239s 239s cd hgrepo && 239s hg -q co default && 239s hg mv alpha beta && 239s hg -q commit -m "rename alpha to beta" && 239s hg branch gamma | grep -v "permanent and global" && 239s hg -q commit -m "started branch gamma" 239s ) && 239s 239s hg_push hgrepo gitrepo && 239s hg_clone gitrepo hgrepo2 && 239s 239s : Back to the common revision && 239s (cd hgrepo && hg checkout default) && 239s 239s # fetch does not affect phase, but pushing now does 239s hg_log hgrepo | grep -v phase > expected && 239s hg_log hgrepo2 | grep -v phase > actual && 239s 239s test_cmp expected actual 239s 240s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 240s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 240s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 240s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 240s /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. 240s or locale.getdefaultlocale()[1] 240s no changes found 240s searching for changes 240s adding changesets 240s adding manifests 240s adding file changes 240s added 1 changesets with 1 changes to 1 files 240s searching for changes 241s marked working directory as branch gamma 241s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 241s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 241s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 241s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 241s /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. 241s or locale.getdefaultlocale()[1] 241s searching for changes 241s adding changesets 241s adding manifests 241s adding file changes 241s adding remote bookmark not-master 241s added 2 changesets with 1 changes to 1 files 241s new changesets 5889597089fe:3320583a8de0 241s 1 local changesets published 241s progress revision 1 'default' (0/1) 241s progress revision 2 'gamma' (0/1) 241s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 241s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 241s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 241s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 241s /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. 241s or locale.getdefaultlocale()[1] 241s searching for changes 241s no changes found 241s searching for changes 241s adding changesets 241s adding manifests 241s adding file changes 241s added 2 changesets with 2 changes to 2 files 241s searching for changes 241s adding changesets 241s adding manifests 241s adding file changes 241s added 1 changesets with 0 changes to 0 files 241s searching for changes 241s searching for changes 242s 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 242s ok 4 - hg branch 242s 242s expecting success: 242s test_when_finished "rm -rf gitrepo* hgrepo*" && 242s 242s ( 242s git init -q gitrepo && 242s cd gitrepo && 242s 242s echo alpha > alpha && 242s git add alpha && 242s git commit -m "add alpha" && 242s git checkout -q -b not-master 242s ) && 242s 242s ( 242s hg_clone gitrepo hgrepo && 242s 242s cd hgrepo && 242s hg co default && 242s hg tag alpha 242s ) && 242s 242s hg_push hgrepo gitrepo && 242s # pushing a fetched tag is a problem ... 242s { hg_clone gitrepo hgrepo2 || true ; } && 242s 242s # fetch does not affect phase, but pushing now does 242s hg_log hgrepo | grep -v phase > expected && 242s hg_log hgrepo2 | grep -v phase > actual && 242s 242s test_cmp expected actual 242s 242s [master (root-commit) 223a6f6] add alpha 242s Author: A U Thor 242s 1 file changed, 1 insertion(+) 242s create mode 100644 alpha 242s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 242s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 242s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 242s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 242s /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. 242s or locale.getdefaultlocale()[1] 242s no changes found 242s searching for changes 242s adding changesets 242s adding manifests 242s adding file changes 242s added 1 changesets with 1 changes to 1 files 242s searching for changes 243s 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 243s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 243s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 243s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 243s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 243s /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. 243s or locale.getdefaultlocale()[1] 243s searching for changes 243s adding changesets 243s adding manifests 243s adding file changes 243s adding remote bookmark not-master 243s added 1 changesets with 1 changes to 1 files 243s new changesets 16869bbe54be 243s 1 local changesets published 243s progress revision 1 'default' (0/1) 243s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 243s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 243s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 243s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 243s /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. 243s or locale.getdefaultlocale()[1] 243s searching for changes 243s no changes found 243s searching for changes 243s adding changesets 243s adding manifests 243s adding file changes 243s added 2 changesets with 2 changes to 2 files 243s searching for changes 243s searching for changes 243s To hg::../hgrepo2 243s * [new branch] branches/default -> branches/default 243s * [new branch] master -> master 243s * [new branch] not-master -> not-master 243s ! [rejected] alpha -> alpha (already exists) 243s error: failed to push some refs to 'hg::../hgrepo2' 243s hint: Updates were rejected because the tag already exists in the remote. 244s ok 5 - hg tags 244s 244s expecting success: 244s test_when_finished "rm -rf gitrepo* hgrepo*" && 244s 244s ( 244s git init -q gitrepo && 244s cd gitrepo && 244s 244s echo alpha > alpha && 244s git add alpha && 244s git commit -m "add alpha" --date="2007-01-01 00:00:00 +0000" && 244s 244s echo beta > beta && 244s git add beta && 244s git commit -m "add beta" --date="2007-01-01 00:00:00 +0100" && 244s 244s echo gamma > gamma && 244s git add gamma && 244s git commit -m "add gamma" --date="2007-01-01 00:00:00 -0100" && 244s 244s echo delta > delta && 244s git add delta && 244s git commit -m "add delta" --date="2007-01-01 00:00:00 +0130" && 244s 244s echo epsilon > epsilon && 244s git add epsilon && 244s git commit -m "add epsilon" --date="2007-01-01 00:00:00 -0130" 244s ) && 244s 244s hg_clone gitrepo hgrepo && 244s git_clone hgrepo gitrepo2 && 244s hg_clone gitrepo2 hgrepo2 && 244s 244s hg_log hgrepo > expected && 244s hg_log hgrepo2 > actual && 244s 244s test_cmp expected actual 244s 244s [master (root-commit) a663549] add alpha 244s Author: A U Thor 244s Date: Mon Jan 1 00:00:00 2007 +0000 244s 1 file changed, 1 insertion(+) 244s create mode 100644 alpha 244s [master ea3e397] add beta 244s Author: A U Thor 244s Date: Mon Jan 1 00:00:00 2007 +0100 244s 1 file changed, 1 insertion(+) 244s create mode 100644 beta 244s [master d7a1343] add gamma 244s Author: A U Thor 244s Date: Mon Jan 1 00:00:00 2007 -0100 244s 1 file changed, 1 insertion(+) 244s create mode 100644 gamma 244s [master 79cd3e4] add delta 244s Author: A U Thor 244s Date: Mon Jan 1 00:00:00 2007 +0130 244s 1 file changed, 1 insertion(+) 244s create mode 100644 delta 244s [master f12dbdf] add epsilon 244s Author: A U Thor 244s Date: Mon Jan 1 00:00:00 2007 -0130 244s 1 file changed, 1 insertion(+) 244s create mode 100644 epsilon 244s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 244s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 244s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 244s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 244s searching for changes 244s adding changesets 244s adding manifests 244s adding file changes 244s added 5 changesets with 5 changes to 5 files 244s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 244s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 244s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 244s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 245s /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. 245s or locale.getdefaultlocale()[1] 245s adding changesets 245s adding manifests 245s adding file changes 245s added 5 changesets with 5 changes to 5 files 245s new changesets 87c8f82b00d0:21e96c99dac4 245s progress revision walk 'bookmarks/master' (4/4) 245s progress revision 0 'master' (0/5) 245s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 245s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 245s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 245s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 245s /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. 245s or locale.getdefaultlocale()[1] 245s searching for changes 245s no changes found 245s searching for changes 245s adding changesets 245s adding manifests 245s adding file changes 245s added 5 changesets with 5 changes to 5 files 245s ok 6 - test timezones 245s 245s # passed all 6 test(s) 245s 1..6 245s /bin/sh helper.t --verbose 245s expecting success: 245s test_when_finished "rm -rf gitrepo* hgrepo*" && 245s 245s setup_repos && 245s 245s ( 245s cd gitrepo && 245s test_expect_code 2 git-hg-helper help 2> ../help 245s ) 245s # remotes should be in help output 245s grep origin help 245s 246s Cloning into 'gitrepo'... 246s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 246s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 246s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 246s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 246s /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. 246s or locale.getdefaultlocale()[1] 246s adding changesets 246s adding manifests 246s adding file changes 246s added 1 changesets with 1 changes to 1 files 246s new changesets 2015d1dbf781 246s progress revision walk 'bookmarks/master' (0/0) 246s progress revision 0 'master' (0/1) 247s origin 247s ok 1 - subcommand help 247s 247s expecting success: 247s test_when_finished "rm -rf gitrepo* hgrepo*" && 247s 247s setup_repos && 247s 247s ( 247s cd hgrepo && 247s pwd >../expected 247s ) && 247s 247s ( 247s cd gitrepo && 247s git-hg-helper repo origin > ../actual 247s ) && 247s 247s test_cmp expected actual 247s 247s Cloning into 'gitrepo'... 247s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 247s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 247s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 247s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 247s /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. 247s or locale.getdefaultlocale()[1] 247s progress revision walk 'bookmarks/master' (0/0) 247s progress revision 0 'master' (0/1) 247s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 247s or locale.getdefaultlocale()[1] 248s ok 2 - subcommand repo - no local proxy 248s 248s expecting success: 248s test_when_finished "rm -rf gitrepo* hgrepo*" && 248s 248s setup_repos && 248s 248s ( 248s cd gitrepo && 248s export gitdir=`git rev-parse --git-dir` 248s # trick to normalize path 248s ( cd $gitdir/hg/origin/clone && pwd ) >../expected && 248s ( cd `git-hg-helper repo origin` && pwd ) > ../actual 248s ) && 248s 248s test_cmp expected actual 248s 248s Cloning into 'gitrepo'... 248s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 248s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 248s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 248s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 248s /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. 248s or locale.getdefaultlocale()[1] 248s adding changesets 248s adding manifests 248s adding file changes 248s added 1 changesets with 1 changes to 1 files 248s new changesets 517b1a670ad0 248s progress revision walk 'bookmarks/master' (0/0) 248s progress revision 0 'master' (0/1) 248s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 248s or locale.getdefaultlocale()[1] 248s ok 3 - subcommand repo - with local proxy 248s 248s expecting success: 248s test_when_finished "rm -rf gitrepo* hgrepo*" && 248s 248s setup_repos && 248s 248s ( 248s cd gitrepo && 248s git rev-parse HEAD > rev-HEAD && 248s test -s rev-HEAD && 248s git-hg-helper hg-rev `cat rev-HEAD` > hg-HEAD && 248s git-hg-helper git-rev `cat hg-HEAD` > git-HEAD && 248s test_cmp rev-HEAD git-HEAD 248s ) 248s 249s Cloning into 'gitrepo'... 249s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 249s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 249s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 249s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 249s adding manifests 249s adding file changes 249s added 1 changesets with 1 changes to 1 files 249s new changesets 0f012862f1db 249s progress revision walk 'bookmarks/master' (0/0) 249s progress revision 0 'master' (0/1) 249s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 249s or locale.getdefaultlocale()[1] 250s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 250s or locale.getdefaultlocale()[1] 250s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 250s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 250s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 250s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 250s ok 4 - subcommands hg-rev and git-rev 250s 250s expecting success: 250s test_when_finished "rm -rf gitrepo* hgrepo*" && 250s 250s ( 250s hg init hgrepo && 250s cd hgrepo && 250s echo zero > content && 250s hg add content && 250s hg commit -m zero 250s echo one > content && 250s hg commit -m one && 250s echo two > content && 250s hg commit -m two && 250s echo three > content && 250s hg commit -m three 250s ) && 250s 250s git clone hg::hgrepo gitrepo && 250s 250s ( 250s cd hgrepo && 250s hg strip -r 1 && 250s echo four > content && 250s hg commit -m four 250s ) && 250s 250s ( 250s cd gitrepo && 250s git fetch origin && 250s git reset --hard origin/master && 250s git gc && 250s git-hg-helper gc --check-hg origin > output && 250s cat output && 250s grep "hg marks" output && 250s grep "git marks" output 250s ) 250s 250s Cloning into 'gitrepo'... 251s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 251s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 251s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 251s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 251s /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. 251s or locale.getdefaultlocale()[1] 251s adding changesets 251s adding manifests 251s adding file changes 251s added 4 changesets with 4 changes to 1 files 251s new changesets 1088f315aa2f:815fe0567c09 251s progress revision walk 'bookmarks/master' (3/3) 251s progress revision 0 'master' (0/4) 251s 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 251s saved backup bundle to /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/.hg/strip-backup/61950bcc4cd1-b07d42eb-backup.hg 251s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 251s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 251s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 251s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 251s /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. 251s or locale.getdefaultlocale()[1] 251s searching for changes 251s adding changesets 251s adding manifests 251s adding file changes 251s added 1 changesets with 1 changes to 1 files (+1 heads) 251s new changesets 7f44c4c4eb0b 251s progress revision 4 'default' (0/1) 251s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo 251s + 5623144...108978a master -> origin/master (forced update) 251s + 5623144...108978a branches/default -> origin/branches/default (forced update) 251s HEAD is now at 108978a four 252s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 252s or locale.getdefaultlocale()[1] 252s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 252s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 252s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 252s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 252s Loading hg marks ... 252s Loading git marks ... 252s Performing garbage collection on git commits ... 252s Computing marks intersection ... 252s Including notes commits ... 252s Trimmed hg marks from #5 down to #0 252s Trimmed git marks from #12 down to #2 252s Writing hg marks ... 252s Writing git marks ... 252s Loading hg marks ... 252s Trimmed hg marks from #5 down to #0 252s Writing hg marks ... 252s Loading git marks ... 252s Trimmed git marks from #12 down to #2 252s Writing git marks ... 252s ok 5 - subcommand gc 252s 252s expecting success: 252s test_when_finished "rm -rf gitrepo* hgrepo*" && 252s 252s setup_repos && 252s 252s ( 252s cd hgrepo && 252s echo one > content && 252s hg commit -m one 252s ) && 252s 252s ( 252s cd gitrepo && 252s git fetch origin 252s ) && 252s 252s hg log -R hgrepo > expected && 252s # not inside gitrepo; test shared path handling 252s GIT_DIR=gitrepo/.git git-hg-helper origin log > actual 252s 252s test_cmp expected actual 252s 252s Cloning into 'gitrepo'... 252s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 252s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 252s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 252s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 252s /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. 252s or locale.getdefaultlocale()[1] 252s adding changesets 252s adding manifests 252s adding file changes 252s added 1 changesets with 1 changes to 1 files 252s new changesets 3cadeb095535 252s progress revision walk 'bookmarks/master' (0/0) 252s progress revision 0 'master' (0/1) 252s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 252s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 252s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 252s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 253s /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. 253s or locale.getdefaultlocale()[1] 253s searching for changes 253s adding changesets 253s adding manifests 253s adding file changes 253s added 1 changesets with 1 changes to 1 files 253s new changesets ec5656b349c7 253s progress revision 1 'default' (0/1) 253s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo 253s 95b173e..5442da5 master -> origin/master 253s 95b173e..5442da5 branches/default -> origin/branches/default 253s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 253s or locale.getdefaultlocale()[1] 253s ok 6 - subcommand [some-repo] 253s 253s expecting success: 253s test_when_finished "rm -rf gitrepo* hgrepo*" && 253s 253s setup_repo hg hgrepo && 253s ( 253s cd hgrepo && 253s setup_repo hg sub_hg_a && 253s setup_repo hg sub_hg_b && 253s setup_repo git sub_git && 253s echo "sub_hg_a = sub_hg_a" > .hgsub && 253s echo "sub_hg_b = sub_hg_b" >> .hgsub && 253s echo "sub_git = [git]sub_git" >> .hgsub && 253s hg add .hgsub && 253s hg commit -m substate 253s ) 253s 253s git clone hg::hgrepo gitrepo && 253s 253s ( 253s cd gitrepo && 253s git-hg-helper sub update --force && 253s test -f content_hgrepo && 253s test -f sub_hg_a/content_sub_hg_a && 253s test -f sub_hg_b/content_sub_hg_b && 253s test -f sub_git/content_sub_git 253s ) && 253s 253s check gitrepo HEAD substate && 253s check gitrepo/sub_hg_a HEAD zero_sub_hg_a && 253s check gitrepo/sub_hg_b HEAD zero_sub_hg_b && 253s check gitrepo/sub_git HEAD zero_sub_git 253s 255s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_git/.git/ 255s [master (root-commit) e9a16bb] zero_sub_git 255s Author: A U Thor 255s 1 file changed, 1 insertion(+) 255s create mode 100644 content_sub_git 255s Cloning into 'gitrepo'... 255s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 255s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 255s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 255s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 255s /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. 255s or locale.getdefaultlocale()[1] 255s adding changesets 255s adding manifests 255s adding file changes 255s added 2 changesets with 3 changes to 3 files 255s new changesets e048fd42eea4:168f9992673b 255s progress revision walk 'bookmarks/master' (1/1) 255s progress revision 0 'master' (0/2) 255s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 255s or locale.getdefaultlocale()[1] 255s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 255s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 255s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 255s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 255s Cloning into './sub_hg_a'... 255s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 255s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 255s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 255s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 255s /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. 255s or locale.getdefaultlocale()[1] 256s adding changesets 256s adding manifests 256s adding file changes 256s added 1 changesets with 1 changes to 1 files 256s new changesets 361209a886cb 256s progress revision walk 'bookmarks/master' (0/0) 256s progress revision 0 'master' (0/1) 256s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 256s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 256s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 256s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 256s Cloning into './sub_hg_b'... 256s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 256s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 256s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 256s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 256s /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. 256s or locale.getdefaultlocale()[1] 256s adding changesets 256s adding manifests 256s adding file changes 256s added 1 changesets with 1 changes to 1 files 256s new changesets 2179e00c598e 256s progress revision walk 'bookmarks/master' (0/0) 256s progress revision 0 'master' (0/1) 256s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 256s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 256s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 256s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 256s Cloning into './sub_git'... 256s done. 256s ok 7 - subcommand sub initial update (hg and git subrepos) 256s 256s expecting success: 256s test_when_finished "rm -rf gitrepo* hgrepo*" && 256s 256s setup_subrepos && 256s 256s git clone hg::hgrepo gitrepo && 256s 256s ( 256s cd gitrepo && 256s git-hg-helper sub --recursive update --force && 256s test -f content_hgrepo && 256s test -f sub_hg_a/content_sub_hg_a && 256s test -f sub_hg_a/sub_hg_a_x/content_sub_hg_a_x && 256s test -f sub_hg_b/content_sub_hg_b && 256s test -f sub_hg_b/sub_git/content_sub_git 256s ) && 256s 256s check gitrepo HEAD substate && 256s check gitrepo/sub_hg_a HEAD substate_hg_a && 256s check gitrepo/sub_hg_b HEAD substate_hg_b && 256s check gitrepo/sub_hg_a/sub_hg_a_x HEAD zero_sub_hg_a_x && 256s check gitrepo/sub_hg_b/sub_git HEAD zero_sub_git 256s 258s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_b/sub_git/.git/ 258s [master (root-commit) e9a16bb] zero_sub_git 258s Author: A U Thor 258s 1 file changed, 1 insertion(+) 258s create mode 100644 content_sub_git 259s Cloning into 'gitrepo'... 259s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 259s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 259s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 259s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 259s /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. 259s or locale.getdefaultlocale()[1] 259s adding changesets 259s adding manifests 259s adding file changes 259s added 2 changesets with 3 changes to 3 files 259s new changesets 1e3a62671022:8d704f886cb3 259s progress revision walk 'bookmarks/master' (1/1) 259s progress revision 0 'master' (0/2) 259s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 259s or locale.getdefaultlocale()[1] 259s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 259s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 259s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 259s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 259s Cloning into './sub_hg_a'... 259s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 259s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 259s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 259s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 259s /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. 259s or locale.getdefaultlocale()[1] 259s adding changesets 259s adding manifests 259s adding file changes 259s added 2 changesets with 3 changes to 3 files 259s new changesets 78f1ebecd256:7ab8efddc585 259s progress revision walk 'bookmarks/master' (1/1) 259s progress revision 0 'master' (0/2) 259s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 259s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 259s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 259s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 260s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 260s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 260s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 260s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 260s Cloning into './sub_hg_a/sub_hg_a_x'... 260s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 260s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 260s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 260s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 260s adding manifests 260s adding file changes 260s added 1 changesets with 1 changes to 1 files 260s new changesets 873d24b4cdf1 260s progress revision walk 'bookmarks/master' (0/0) 260s progress revision 0 'master' (0/1) 260s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 260s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 260s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 260s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 260s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 260s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 260s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 260s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 260s Cloning into './sub_hg_b'... 260s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 260s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 260s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 260s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 260s adding manifests 260s adding file changes 260s added 2 changesets with 3 changes to 3 files 260s new changesets d7e99bdbc5f8:88a625d38856 260s progress revision walk 'bookmarks/master' (1/1) 260s progress revision 0 'master' (0/2) 260s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 260s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 260s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 260s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 260s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 260s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 260s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 260s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 260s Cloning into './sub_hg_b/sub_git'... 260s done. 260s ok 8 - subcommand sub initial recursive update 260s 260s expecting success: 260s test_when_finished "rm -rf gitrepo* hgrepo*" && 260s 260s test_sub_update 260s 262s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_b/sub_git/.git/ 262s [master (root-commit) e9a16bb] zero_sub_git 262s Author: A U Thor 262s 1 file changed, 1 insertion(+) 262s create mode 100644 content_sub_git 263s Cloning into 'gitrepo'... 263s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 263s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 263s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 263s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 263s adding manifests 263s adding file changes 263s added 2 changesets with 3 changes to 3 files 263s new changesets 8a16fb4fd0d3:6e2cf3db39f3 263s progress revision walk 'bookmarks/master' (1/1) 263s progress revision 0 'master' (0/2) 263s /usr/bin/git-hg-helper:44: 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 /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 263s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 263s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 263s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 263s Cloning into './sub_hg_a'... 263s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 263s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 263s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 263s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s /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. 264s or locale.getdefaultlocale()[1] 264s adding changesets 264s adding manifests 264s adding file changes 264s added 2 changesets with 3 changes to 3 files 264s new changesets 647107dd2b0d:aa1e45de0181 264s progress revision walk 'bookmarks/master' (1/1) 264s progress revision 0 'master' (0/2) 264s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 264s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 264s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 264s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 264s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 264s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 264s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s Cloning into './sub_hg_a/sub_hg_a_x'... 264s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 264s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 264s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 264s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s /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. 264s or locale.getdefaultlocale()[1] 264s adding changesets 264s adding manifests 264s adding file changes 264s added 1 changesets with 1 changes to 1 files 264s new changesets 77bb88d2a462 264s progress revision walk 'bookmarks/master' (0/0) 264s progress revision 0 'master' (0/1) 264s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 264s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 264s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 264s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 264s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 264s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 264s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s Cloning into './sub_hg_b'... 264s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 264s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 264s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 264s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s /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. 264s or locale.getdefaultlocale()[1] 264s adding changesets 264s adding manifests 264s adding file changes 264s added 2 changesets with 3 changes to 3 files 264s new changesets 12bfa20f3158:e65dd4574777 264s progress revision walk 'bookmarks/master' (1/1) 264s progress revision 0 'master' (0/2) 264s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 264s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 264s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 264s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 264s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 264s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 264s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 264s Cloning into './sub_hg_b/sub_git'... 264s done. 265s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 265s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 265s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 265s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 265s /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. 265s or locale.getdefaultlocale()[1] 265s searching for changes 265s adding changesets 265s adding manifests 265s adding file changes 265s added 1 changesets with 1 changes to 1 files 265s new changesets 6bed141519be 265s progress revision 2 'default' (0/1) 265s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo 265s 1e899b9..b21d375 master -> origin/master 265s 1e899b9..b21d375 branches/default -> origin/branches/default 265s Updating 1e899b9..b21d375 265s Fast-forward 265s .hgsubstate | 2 +- 265s 1 file changed, 1 insertion(+), 1 deletion(-) 265s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 265s or locale.getdefaultlocale()[1] 265s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 265s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 265s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 265s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 265s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 265s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 265s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 265s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 searching for changes 266s adding changesets 266s adding manifests 266s adding file changes 266s added 1 changesets with 1 changes to 1 files 266s new changesets 1bce85b45e36 266s progress revision 2 'default' (0/1) 266s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_a 266s f1958b0..7ab0a20 branches/default -> origin/branches/default 266s f1958b0..7ab0a20 master -> origin/master 266s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 266s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 266s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 266s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 266s HEAD is now at f1958b0 substate_hg_a 266s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 266s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 266s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 266s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 266s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 266s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 266s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 266s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 searching for changes 266s adding changesets 266s adding manifests 266s adding file changes 266s added 1 changesets with 1 changes to 1 files 266s new changesets 115f30644bcd 266s progress revision 1 'default' (0/1) 266s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_a/sub_hg_a_x 266s b635ec8..4eef7dd branches/default -> origin/branches/default 266s b635ec8..4eef7dd master -> origin/master 266s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 266s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 266s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 266s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 266s HEAD is now at b635ec8 zero_sub_hg_a_x 266s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 266s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 266s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 266s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 266s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 266s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 266s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 266s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 266s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 266s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 266s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 266s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 267s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 267s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 267s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 267s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 267s ok 9 - subcommand sub subsequent recursive update 267s 267s expecting success: 267s test_when_finished "rm -rf gitrepo* hgrepo*" && 267s 267s test_sub_update --rebase 267s 269s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_b/sub_git/.git/ 269s [master (root-commit) e9a16bb] zero_sub_git 269s Author: A U Thor 269s 1 file changed, 1 insertion(+) 269s create mode 100644 content_sub_git 270s Cloning into 'gitrepo'... 270s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 270s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 270s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 270s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 270s /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. 270s or locale.getdefaultlocale()[1] 270s adding changesets 270s adding manifests 270s adding file changes 270s added 2 changesets with 3 changes to 3 files 270s new changesets 45aea19498a4:13eb41619398 270s progress revision walk 'bookmarks/master' (1/1) 270s progress revision 0 'master' (0/2) 270s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 270s or locale.getdefaultlocale()[1] 270s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 270s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 270s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 270s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 270s Cloning into './sub_hg_a'... 270s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 270s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 270s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 270s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 270s /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. 270s or locale.getdefaultlocale()[1] 270s adding changesets 270s adding manifests 270s adding file changes 270s added 2 changesets with 3 changes to 3 files 270s new changesets 70f187ee3f39:ce9bada89d1e 270s progress revision walk 'bookmarks/master' (1/1) 270s progress revision 0 'master' (0/2) 270s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 270s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 270s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 270s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 270s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 270s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 270s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 270s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 270s Cloning into './sub_hg_a/sub_hg_a_x'... 270s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 270s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 270s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 270s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 271s adding manifests 271s adding file changes 271s added 1 changesets with 1 changes to 1 files 271s new changesets b5a809486502 271s progress revision walk 'bookmarks/master' (0/0) 271s progress revision 0 'master' (0/1) 271s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 271s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 271s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 271s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 271s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 271s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 271s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 271s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 271s Cloning into './sub_hg_b'... 271s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 271s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 271s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 271s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 271s adding manifests 271s adding file changes 271s added 2 changesets with 3 changes to 3 files 271s new changesets 18a0c3ef8eb8:f1151ba7c286 271s progress revision walk 'bookmarks/master' (1/1) 271s progress revision 0 'master' (0/2) 271s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 271s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 271s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 271s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 271s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 271s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 271s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 271s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 271s Cloning into './sub_hg_b/sub_git'... 271s done. 272s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 272s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 272s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 272s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 272s /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. 272s or locale.getdefaultlocale()[1] 272s searching for changes 272s adding changesets 272s adding manifests 272s adding file changes 272s added 1 changesets with 1 changes to 1 files 272s new changesets 612b67d7dbbc 272s progress revision 2 'default' (0/1) 272s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo 272s f9d9b19..6bb3fc3 master -> origin/master 272s f9d9b19..6bb3fc3 branches/default -> origin/branches/default 272s Updating f9d9b19..6bb3fc3 272s Fast-forward 272s .hgsubstate | 2 +- 272s 1 file changed, 1 insertion(+), 1 deletion(-) 272s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 272s or locale.getdefaultlocale()[1] 272s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 272s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 272s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 272s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 272s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 272s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 272s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 272s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 272s /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. 272s or locale.getdefaultlocale()[1] 272s searching for changes 272s adding changesets 272s adding manifests 272s adding file changes 272s added 1 changesets with 1 changes to 1 files 272s new changesets 824ddca664b8 272s progress revision 2 'default' (0/1) 272s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_a 272s d646c43..fbc046c branches/default -> origin/branches/default 272s d646c43..fbc046c master -> origin/master 272s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 272s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 272s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 272s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 272s HEAD is now at d646c43 substate_hg_a 272s Successfully rebased and updated detached HEAD. 272s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 272s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 272s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 272s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 272s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 272s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 272s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 272s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 273s /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. 273s or locale.getdefaultlocale()[1] 273s searching for changes 273s adding changesets 273s adding manifests 273s adding file changes 273s added 1 changesets with 1 changes to 1 files 273s new changesets 826b9c4a778f 273s progress revision 1 'default' (0/1) 273s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_a/sub_hg_a_x 273s d534254..8b881b6 branches/default -> origin/branches/default 273s d534254..8b881b6 master -> origin/master 273s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 273s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 273s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 273s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 273s HEAD is now at d534254 zero_sub_hg_a_x 273s Successfully rebased and updated detached HEAD. 273s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 273s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 273s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 273s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 273s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 273s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 273s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 273s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 273s /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. 273s or locale.getdefaultlocale()[1] 273s no changes found 273s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 273s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 273s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 273s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 273s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 273s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 273s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 273s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 273s ok 10 - subcommand sub subsequent recursive update -- rebase 273s 273s expecting success: 273s test_when_finished "rm -rf gitrepo* hgrepo*" && 273s 273s test_sub_update --merge 273s 275s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_b/sub_git/.git/ 275s [master (root-commit) e9a16bb] zero_sub_git 275s Author: A U Thor 275s 1 file changed, 1 insertion(+) 275s create mode 100644 content_sub_git 276s Cloning into 'gitrepo'... 276s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 276s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 276s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 276s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 276s adding manifests 276s adding file changes 276s added 2 changesets with 3 changes to 3 files 276s new changesets ad7263e9969f:bbeefb501b51 276s progress revision walk 'bookmarks/master' (1/1) 276s progress revision 0 'master' (0/2) 277s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 277s or locale.getdefaultlocale()[1] 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s Cloning into './sub_hg_a'... 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s /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. 277s or locale.getdefaultlocale()[1] 277s adding changesets 277s adding manifests 277s adding file changes 277s added 2 changesets with 3 changes to 3 files 277s new changesets a44057e2b29a:1eed355d8400 277s progress revision walk 'bookmarks/master' (1/1) 277s progress revision 0 'master' (0/2) 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s Cloning into './sub_hg_a/sub_hg_a_x'... 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s /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. 277s or locale.getdefaultlocale()[1] 277s adding changesets 277s adding manifests 277s adding file changes 277s added 1 changesets with 1 changes to 1 files 277s new changesets b9ba183f73c9 277s progress revision walk 'bookmarks/master' (0/0) 277s progress revision 0 'master' (0/1) 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s Cloning into './sub_hg_b'... 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s /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. 277s or locale.getdefaultlocale()[1] 277s adding changesets 277s adding manifests 277s adding file changes 277s added 2 changesets with 3 changes to 3 files 277s new changesets bbfeb81434c0:5f95efe4a464 277s progress revision walk 'bookmarks/master' (1/1) 277s progress revision 0 'master' (0/2) 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 277s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 277s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 277s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 277s Cloning into './sub_hg_b/sub_git'... 277s done. 278s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 278s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 278s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 278s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 278s /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. 278s or locale.getdefaultlocale()[1] 278s searching for changes 278s adding changesets 278s adding manifests 278s adding file changes 278s added 1 changesets with 1 changes to 1 files 278s new changesets 88ce88a019c2 278s progress revision 2 'default' (0/1) 278s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo 278s 1561e4f..c1ad259 master -> origin/master 278s 1561e4f..c1ad259 branches/default -> origin/branches/default 278s Updating 1561e4f..c1ad259 278s Fast-forward 278s .hgsubstate | 2 +- 278s 1 file changed, 1 insertion(+), 1 deletion(-) 278s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 278s or locale.getdefaultlocale()[1] 278s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 278s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 278s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 278s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 278s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 278s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 278s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 278s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s /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. 279s or locale.getdefaultlocale()[1] 279s searching for changes 279s adding changesets 279s adding manifests 279s adding file changes 279s added 1 changesets with 1 changes to 1 files 279s new changesets cf8396925343 279s progress revision 2 'default' (0/1) 279s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_a 279s 2acb181..b6fc358 branches/default -> origin/branches/default 279s 2acb181..b6fc358 master -> origin/master 279s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 279s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 279s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 279s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s HEAD is now at 2acb181 substate_hg_a 279s Updating 2acb181..b6fc358 279s Fast-forward 279s .hgsubstate | 2 +- 279s 1 file changed, 1 insertion(+), 1 deletion(-) 279s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 279s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 279s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 279s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 279s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 279s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 279s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s /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. 279s or locale.getdefaultlocale()[1] 279s searching for changes 279s adding changesets 279s adding manifests 279s adding file changes 279s added 1 changesets with 1 changes to 1 files 279s new changesets 5fd4e6441b63 279s progress revision 1 'default' (0/1) 279s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_a/sub_hg_a_x 279s a8958d0..de0afb0 branches/default -> origin/branches/default 279s a8958d0..de0afb0 master -> origin/master 279s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 279s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 279s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 279s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s HEAD is now at a8958d0 zero_sub_hg_a_x 279s Updating a8958d0..de0afb0 279s Fast-forward 279s content_sub_hg_a_x | 2 +- 279s 1 file changed, 1 insertion(+), 1 deletion(-) 279s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 279s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 279s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 279s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 279s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 279s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 279s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s /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. 279s or locale.getdefaultlocale()[1] 279s no changes found 279s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 279s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 279s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 279s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 279s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 279s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 279s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 279s ok 11 - subcommand sub subsequent recursive update -- merge 279s 279s expecting success: 279s test_when_finished "rm -rf gitrepo* hgrepo*" && 279s 279s test_sub_foreach 279s 281s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg_b/sub_git/.git/ 281s [master (root-commit) e9a16bb] zero_sub_git 281s Author: A U Thor 281s 1 file changed, 1 insertion(+) 281s create mode 100644 content_sub_git 282s Cloning into 'gitrepo'... 282s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 282s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 282s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 282s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 282s /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. 282s or locale.getdefaultlocale()[1] 282s adding changesets 282s adding manifests 282s adding file changes 282s added 2 changesets with 3 changes to 3 files 282s new changesets 12d6b156b8ae:43c1139cb0eb 282s progress revision walk 'bookmarks/master' (1/1) 282s progress revision 0 'master' (0/2) 282s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 282s or locale.getdefaultlocale()[1] 282s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 282s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 282s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 282s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 282s Cloning into './sub_hg_a'... 282s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 282s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 282s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 282s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 283s adding manifests 283s adding file changes 283s added 2 changesets with 3 changes to 3 files 283s new changesets 3f38b1abb3f1:0a4cfe6fe54a 283s progress revision walk 'bookmarks/master' (1/1) 283s progress revision 0 'master' (0/2) 283s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 283s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 283s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 283s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 283s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 283s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 283s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 283s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 283s Cloning into './sub_hg_a/sub_hg_a_x'... 283s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 283s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 283s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 283s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 283s adding manifests 283s adding file changes 283s added 1 changesets with 1 changes to 1 files 283s new changesets 415e66ab3fcf 283s progress revision walk 'bookmarks/master' (0/0) 283s progress revision 0 'master' (0/1) 283s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 283s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 283s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 283s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 283s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 283s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 283s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 283s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 283s Cloning into './sub_hg_b'... 283s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 283s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 283s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 283s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 283s adding manifests 283s adding file changes 283s added 2 changesets with 3 changes to 3 files 283s new changesets e247228338cd:65732762c661 283s progress revision walk 'bookmarks/master' (1/1) 283s progress revision 0 'master' (0/2) 283s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 283s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 283s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 283s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 283s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 283s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 283s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 283s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 283s Cloning into './sub_hg_b/sub_git'... 283s done. 284s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 284s or locale.getdefaultlocale()[1] 284s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 284s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 284s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 284s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 284s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 284s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 284s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 284s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 284s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 284s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 284s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 284s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 284s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 284s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 284s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 284s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 284s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 284s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 284s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 284s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 284s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 284s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 284s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 284s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 284s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 284s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 284s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 284s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 284s hg d71db50afb28ad3843050c01146ccf1af08c188d 0a4cfe6fe54a1136af9e8380fe7452e1c45d0e40 sub_hg_a /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/gitrepo 284s hg 3983a476dfa4b78eaf43223ebe4579e2fee65a15 415e66ab3fcf4fda236ebeb84c3bf9d9d2ab1ca4 sub_hg_a_x /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/gitrepo/sub_hg_a 284s hg 9b19964ae0d84438fcb7c918a7abf9acea1ce89f 65732762c661262dfe13dfb003b4deefc6f34c01 sub_hg_b /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/gitrepo 284s git e9a16bb7c08361f85ab0002e4094b4229fefb384 e9a16bb7c08361f85ab0002e4094b4229fefb384 sub_git /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/gitrepo/sub_hg_b 284s ok 12 - subcommand sub foreach 284s 284s expecting success: 284s test_when_finished "rm -rf gitrepo* hgrepo*" && 284s 284s setup_repo hg hgrepo && 284s ( 284s cd hgrepo && 284s setup_repo hg sub_hg && 284s echo "sub_hg = sub_hg" > .hgsub && 284s hg add .hgsub && 284s hg commit -m substate 284s ) 284s 284s git clone hg::hgrepo gitrepo && 284s 284s ( 284s cd gitrepo && 284s git-hg-helper sub update --force && 284s 284s ( 284s cd sub_hg && 284s grep url .git/config > ../expected && 284s git config remote.origin.url foobar && 284s grep foobar .git/config 284s ) && 284s 284s git-hg-helper sub sync && 284s grep url sub_hg/.git/config > actual && 284s test_cmp expected actual 284s ) 284s 285s Cloning into 'gitrepo'... 285s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 285s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 285s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 285s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 285s /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. 285s or locale.getdefaultlocale()[1] 285s adding changesets 285s adding manifests 285s adding file changes 285s added 2 changesets with 3 changes to 3 files 285s new changesets 936373b73694:986d2591b078 285s progress revision walk 'bookmarks/master' (1/1) 285s progress revision 0 'master' (0/2) 285s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 285s or locale.getdefaultlocale()[1] 285s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 285s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 285s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 285s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 285s Cloning into './sub_hg'... 285s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 285s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 285s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 285s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 adding changesets 286s adding manifests 286s adding file changes 286s added 1 changesets with 1 changes to 1 files 286s new changesets b3d56e4039a3 286s progress revision walk 'bookmarks/master' (0/0) 286s progress revision 0 'master' (0/1) 286s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 286s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 286s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 286s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 286s url = foobar 286s /usr/bin/git-hg-helper:44: 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 /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 286s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 286s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 286s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 286s ok 13 - subcommand sub sync 286s 286s expecting success: 286s test_when_finished "rm -rf gitrepo* hgrepo*" && 286s 286s setup_repo hg hgrepo && 286s ( 286s cd hgrepo && 286s setup_repo hg sub_hg && 286s setup_repo git sub_git && 286s echo "sub_hg = sub_hg" > .hgsub && 286s echo "sub_git = [git]sub_git" >> .hgsub && 286s hg add .hgsub && 286s hg commit -m substate 286s ) 286s 286s git clone hg::hgrepo gitrepo && 286s 286s ( 286s cd gitrepo && 286s git-hg-helper sub update --force && 286s 286s ( 286s cd sub_hg && 286s echo one > content_sub_hg && 286s git add content_sub_hg && 286s git commit -m one_sub_hg && 286s # detached HEAD 286s git push origin HEAD:master && 286s # also fetch to ensure notes are updated 286s git fetch origin 286s ) && 286s 286s ( 286s cd sub_git && 286s echo one > content_sub_git && 286s git add content_sub_git && 286s git commit -m one_sub_git && 286s # detached HEAD; push revision to other side ... anywhere 286s git push origin HEAD:refs/heads/new 286s ) 286s ) && 286s 286s ( 286s cd gitrepo && 286s git-hg-helper sub upstate && 286s git diff && 286s git status --porcelain | grep .hgsubstate && 286s git add .hgsubstate && 286s git commit -m update_sub && 286s git push origin master 286s ) && 286s 286s hg clone hgrepo hgclone && 286s 286s ( 286s cd hgclone && 286s hg update 286s ) && 286s 286s check_branch hgclone default update_sub && 286s check_branch hgclone/sub_hg default one_sub_hg && 286s check hgclone/sub_git HEAD one_sub_git 286s 287s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_git/.git/ 287s [master (root-commit) e9a16bb] zero_sub_git 287s Author: A U Thor 287s 1 file changed, 1 insertion(+) 287s create mode 100644 content_sub_git 288s Cloning into 'gitrepo'... 288s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 288s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 288s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 288s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 288s /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. 288s or locale.getdefaultlocale()[1] 288s adding changesets 288s adding manifests 288s adding file changes 288s added 2 changesets with 3 changes to 3 files 288s new changesets bb4ff601d5b4:3bc0dba521e0 288s progress revision walk 'bookmarks/master' (1/1) 288s progress revision 0 'master' (0/2) 288s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 288s or locale.getdefaultlocale()[1] 288s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 288s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 288s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 288s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 288s Cloning into './sub_hg'... 288s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 288s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 288s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 288s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 288s /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. 288s or locale.getdefaultlocale()[1] 288s adding changesets 288s adding manifests 288s adding file changes 288s progress revision walk 'bookmarks/master' (0/0) 288s progress revision 0 'master' (0/1) 288s added 1 changesets with 1 changes to 1 files 288s new changesets 9ff13d709e7f 288s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 288s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 288s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 288s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 288s Cloning into './sub_git'... 288s done. 288s [detached HEAD c0a83c2] one_sub_hg 288s Author: A U Thor 288s 1 file changed, 1 insertion(+), 1 deletion(-) 288s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 288s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 288s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 288s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 289s searching for changes 289s adding changesets 289s adding manifests 289s adding file changes 289s added 1 changesets with 1 changes to 1 files 289s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg 289s fffffff..c0a83c2 HEAD -> master 289s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 289s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 289s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 289s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 289s 1 local changesets published 289s From hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg 289s 452277d..c0a83c2 branches/default -> origin/branches/default 289s [detached HEAD cea1af1] one_sub_git 289s Author: A U Thor 289s 1 file changed, 1 insertion(+), 1 deletion(-) 289s To /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_git 289s * [new branch] HEAD -> new 289s /usr/bin/git-hg-helper:44: 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 /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 289s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 289s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 289s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 289s Updating ./sub_hg to ab7d97cfd0472bc2e1375e8c9ba13d4e2dc83009 [git c0a83c2] 289s Updating ./sub_git to cea1af1c0bdaae94623e5a8e4d85c13835bb44b6 [git cea1af1] 289s diff --git a/.hgsubstate b/.hgsubstate 289s index 0f04baf..23c8c84 100644 289s --- a/.hgsubstate 289s +++ b/.hgsubstate 289s @@ -1,2 +1,2 @@ 289s -e9a16bb7c08361f85ab0002e4094b4229fefb384 sub_git 289s -9ff13d709e7f3f04f959648118115b3aef7892ef sub_hg 289s +cea1af1c0bdaae94623e5a8e4d85c13835bb44b6 sub_git 289s +ab7d97cfd0472bc2e1375e8c9ba13d4e2dc83009 sub_hg 289s M .hgsubstate 289s [master 77895a3] update_sub 289s Author: A U Thor 289s 1 file changed, 2 insertions(+), 2 deletions(-) 289s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 289s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 289s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 289s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 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 no changes found 289s searching for changes 289s adding changesets 289s adding manifests 289s adding file changes 289s added 1 changesets with 1 changes to 1 files 289s To hg::/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo 289s fffffff..77895a3 master -> master 290s Cloning into '/tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgclone/sub_git'... 290s done. 290s Switched to a new branch 'new' 290s updating to branch default 290s cloning subrepo sub_git from /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_git 290s cloning subrepo sub_hg from /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_hg 290s 3 files updated, 0 files merged, 0 files removed, 0 files unresolved 290s 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 290s ok 14 - subcommand sub addstate 290s 290s expecting success: 290s test_when_finished "rm -rf gitrepo* hgrepo*" && 290s 290s setup_repo hg hgrepo && 290s ( 290s cd hgrepo && 290s setup_repo hg sub_hg_a && 290s setup_repo hg sub_hg_b && 290s setup_repo git sub_git && 290s echo "sub_hg_a = sub_hg_a" > .hgsub && 290s echo "sub_hg_b = sub_hg_b" >> .hgsub && 290s echo "sub_git = [git]sub_git" >> .hgsub && 290s hg add .hgsub && 290s hg commit -m substate 290s ) 290s 290s git clone hg::hgrepo gitrepo && 290s 290s ( 290s cd gitrepo && 290s git-hg-helper sub update --force sub_hg_a && 290s git-hg-helper sub update --force sub_git && 290s ( 290s # advance and add a tag to the git repo 290s cd sub_git && 290s echo one > content_sub_git && 290s git add content_sub_git && 290s git commit -m one_sub_git && 290s git tag feature-a 290s ) && 290s 290s git-hg-helper sub status --cached > output && 290s cat output && 290s grep "^ .*sub_hg_a (.*master.*)$" output && 290s grep "^-.*sub_hg_b$" output && 290s grep "^+.*sub_git (feature-a~1)$" output && 290s git-hg-helper sub status sub_git > output && 290s cat output && 290s grep "^+.*sub_git (feature-a)$" output > actual && 290s test_cmp output actual 290s ) 290s 291s Initialized empty Git repository in /tmp/autopkgtest.kbTVqf/build.imm/src/test/trash directory.helper/hgrepo/sub_git/.git/ 291s [master (root-commit) e9a16bb] zero_sub_git 291s Author: A U Thor 291s 1 file changed, 1 insertion(+) 291s create mode 100644 content_sub_git 292s Cloning into 'gitrepo'... 292s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 292s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 292s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 292s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 292s /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. 292s or locale.getdefaultlocale()[1] 292s adding changesets 292s adding manifests 292s adding file changes 292s added 2 changesets with 3 changes to 3 files 292s new changesets e56222c603f7:cb1007062c2f 292s progress revision walk 'bookmarks/master' (1/1) 292s progress revision 0 'master' (0/2) 292s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 292s or locale.getdefaultlocale()[1] 292s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 292s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 292s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 292s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 292s /usr/bin/git-hg-helper:44: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead. 292s or locale.getdefaultlocale()[1] 292s Cloning into './sub_hg_a'... 292s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 292s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 292s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 292s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 292s /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. 292s or locale.getdefaultlocale()[1] 293s adding changesets 293s adding manifests 293s adding file changes 293s added 1 changesets with 1 changes to 1 files 293s new changesets 3ad4f6e3ba90 293s progress revision walk 'bookmarks/master' (0/0) 293s progress revision 0 'master' (0/1) 293s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 293s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 293s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 293s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 293s /usr/bin/git-hg-helper:44: 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 /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 293s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 293s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 293s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 293s /usr/bin/git-hg-helper:44: 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 Cloning into './sub_git'... 293s done. 293s [detached HEAD cea1af1] one_sub_git 293s Author: A U Thor 293s 1 file changed, 1 insertion(+), 1 deletion(-) 293s /usr/bin/git-hg-helper:44: 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 /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 293s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 293s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 293s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 293s /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 293s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 293s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 293s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 293s ed5c1c5eae8b530a02241d34e11337ca083ff094 ./sub_hg_a (heads/master) 293s -dc236b89385fab93f1e718b787685e750a4e63e8[hg] ./sub_hg_b 293s +e9a16bb7c08361f85ab0002e4094b4229fefb384 ./sub_git (feature-a~1) 293s ed5c1c5eae8b530a02241d34e11337ca083ff094 ./sub_hg_a (heads/master) 293s -dc236b89385fab93f1e718b787685e750a4e63e8[hg] ./sub_hg_b 293s +e9a16bb7c08361f85ab0002e4094b4229fefb384 ./sub_git (feature-a~1) 293s /usr/bin/git-hg-helper:44: 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 /usr/bin/git-remote-hg:154: SyntaxWarning: invalid escape sequence '\w' 293s RAW_AUTHOR_RE = re.compile(b'^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') 293s /usr/bin/git-remote-hg:392: SyntaxWarning: invalid escape sequence '\(' 293s m = re.match(b'^(.+?) ext:\((.+)\)$', name) 293s /usr/bin/git-hg-helper:44: 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 +cea1af1c0bdaae94623e5a8e4d85c13835bb44b6 ./sub_git (feature-a) 293s ok 15 - subcommand sub status 293s 293s # passed all 15 test(s) 293s 1..15 293s make clean 293s make[1]: Entering directory '/tmp/autopkgtest.kbTVqf/build.imm/src/test' 293s rm -f -r 'trash directory'.* test-results 293s make[1]: Leaving directory '/tmp/autopkgtest.kbTVqf/build.imm/src/test' 293s make: Leaving directory '/tmp/autopkgtest.kbTVqf/build.imm/src/test' 294s autopkgtest [18:30:19]: test upstream-test-suite: -----------------------] 294s upstream-test-suite PASS 294s autopkgtest [18:30:19]: test upstream-test-suite: - - - - - - - - - - results - - - - - - - - - - 295s autopkgtest [18:30:20]: @@@@@@@@@@@@@@@@@@@@ summary 295s upstream-test-suite PASS