--- title: Push multiple branches to new repository --- ```http GET /scm/hg/hgtest?cmd=capabilities HTTP/1.1. Accept-Encoding: identity. accept: application/mercurial-0.1. authorization: Basic c2NtYWRtaW46c2NtYWRtaW4=. host: localhost:8080. user-agent: mercurial/proto-1.0 (Mercurial 4.3.1). HTTP/1.1 200 OK. Set-Cookie: JSESSIONID=1wu06ykfd4bcv1uv731y4hss2m;Path=/scm. Expires: Thu, 01 Jan 1970 00:00:00 GMT. Set-Cookie: rememberMe=deleteMe; Path=/scm; Max-Age=0; Expires=Wed, 28-Mar-2018 07:55:14 GMT. Content-Type: application/mercurial-0.1. Content-Length: 130. Server: Jetty(7.6.21.v20160908). lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch stream unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 GET /scm/hg/hgtest?cmd=batch HTTP/1.1. Accept-Encoding: identity. vary: X-HgArg-1. x-hgarg-1: cmds=heads+%3Bknown+nodes%3Def5993bb4abb32a0565c347844c6d939fc4f4b98. accept: application/mercurial-0.1. authorization: Basic c2NtYWRtaW46c2NtYWRtaW4=. host: localhost:8080. user-agent: mercurial/proto-1.0 (Mercurial 4.3.1). HTTP/1.1 200 OK. Set-Cookie: JSESSIONID=1rajglvqx222g5nppcq3jdfk0;Path=/scm. Expires: Thu, 01 Jan 1970 00:00:00 GMT. Set-Cookie: rememberMe=deleteMe; Path=/scm; Max-Age=0; Expires=Wed, 28-Mar-2018 07:55:14 GMT. Content-Type: application/mercurial-0.1. Content-Length: 43. Server: Jetty(7.6.21.v20160908). 0000000000000000000000000000000000000000 ;0 GET /scm/hg/hgtest?cmd=known HTTP/1.1. Accept-Encoding: identity. vary: X-HgArg-1. x-hgarg-1: nodes=c0ceccb3b2f0f5c977ff32b9337519e5f37942c2+187ddf37e237c370514487a0bb1a226f11a780b3+b5914611f84eae14543684b2721eec88b0edac12+8b63a323606f10c86b30465570c2574eb7a3a989. accept: application/mercurial-0.1. authorization: Basic c2NtYWRtaW46c2NtYWRtaW4=. host: localhost:8080. user-agent: mercurial/proto-1.0 (Mercurial 4.3.1). HTTP/1.1 200 OK. Set-Cookie: JSESSIONID=a5vykp1f0ga2186l8v3gu6lid;Path=/scm. Expires: Thu, 01 Jan 1970 00:00:00 GMT. Set-Cookie: rememberMe=deleteMe; Path=/scm; Max-Age=0; Expires=Wed, 28-Mar-2018 07:55:14 GMT. Content-Type: application/mercurial-0.1. Content-Length: 4. Server: Jetty(7.6.21.v20160908). 0000 GET /scm/hg/hgtest?cmd=listkeys HTTP/1.1. Accept-Encoding: identity. vary: X-HgArg-1. x-hgarg-1: namespace=phases. accept: application/mercurial-0.1. authorization: Basic c2NtYWRtaW46c2NtYWRtaW4=. host: localhost:8080. user-agent: mercurial/proto-1.0 (Mercurial 4.3.1). HTTP/1.1 200 OK. Set-Cookie: JSESSIONID=s8lpwqm4c2nqs9kwcg2ca6vm;Path=/scm. Expires: Thu, 01 Jan 1970 00:00:00 GMT. Set-Cookie: rememberMe=deleteMe; Path=/scm; Max-Age=0; Expires=Wed, 28-Mar-2018 07:55:14 GMT. Content-Type: application/mercurial-0.1. Content-Length: 15. Server: Jetty(7.6.21.v20160908). publishing.True GET /scm/hg/hgtest?cmd=listkeys HTTP/1.1. Accept-Encoding: identity. vary: X-HgArg-1. x-hgarg-1: namespace=bookmarks. accept: application/mercurial-0.1. authorization: Basic c2NtYWRtaW46c2NtYWRtaW4=. host: localhost:8080. user-agent: mercurial/proto-1.0 (Mercurial 4.3.1). HTTP/1.1 200 OK. Set-Cookie: JSESSIONID=1d2qj3kynxlhvk31oli4kk7vf;Path=/scm. Expires: Thu, 01 Jan 1970 00:00:00 GMT. Set-Cookie: rememberMe=deleteMe; Path=/scm; Max-Age=0; Expires=Wed, 28-Mar-2018 07:55:14 GMT. Content-Type: application/mercurial-0.1. Content-Length: 0. Server: Jetty(7.6.21.v20160908). POST /scm/hg/hgtest?cmd=unbundle HTTP/1.1. Accept-Encoding: identity. content-type: application/mercurial-0.1. vary: X-HgArg-1. x-hgarg-1: heads=686173686564+6768033e216468247bd031a0a2d9876d79818f8f. accept: application/mercurial-0.1. authorization: Basic c2NtYWRtaW46c2NtYWRtaW4=. content-length: 913. host: localhost:8080. user-agent: mercurial/proto-1.0 (Mercurial 4.3.1). HG10GZx...oh.U......E.1.....2q.<...s.1.YK*e#..b..{....{..%A..... ,\.....Y.XV....Q/J......`Q/.z.{...<.7....r.s.~?.?..5.~`..?..........O.j.0.....Ih.....!@.P... ..a ;!y..cT...]q.8Zg=...<..,.tq.*.........l........';..w^...w...-......Co..Fs.HYg... 9.F#.P......1..;......D.H.9$@.^....r:E..18...H....3..h...-.=.6l......=q .)."Yg..p\...s@.#.H.*....c8&96..2.GjJ.`.J....r...=Q1..@R.3.o{q...|.......yq.k..,cY..:[... ...S.2...VYp..c5..&.SFR.............V.d..o..........,.. A..M....k...0_.LO1..1"4.;...B....5.9.".U.m.e......]\../p..;?C..W9.........n.~o..gW...Q;..$....S..X.CN.5I].H..!.@...U..J...L.lY.../.-...6.:.Q.'...>.e'..<#3........OL}.52ra[..g*Y:Y....w...=..Z\...S.......tz..;..mf...W......&yUN.r.......4...........`..F...nT..U9................_.~..?...BwzUN.r....B. HTTP/1.1 200 OK. Set-Cookie: JSESSIONID=163487i0ayf9s1k2ng9e1azadj;Path=/scm. Expires: Thu, 01 Jan 1970 00:00:00 GMT. Set-Cookie: rememberMe=deleteMe; Path=/scm; Max-Age=0; Expires=Wed, 28-Mar-2018 07:55:14 GMT. Content-Type: application/mercurial-0.1. Content-Length: 102. Server: Jetty(7.6.21.v20160908). 1 adding changesets adding manifests adding file changes added 5 changesets with 3 changes to 3 files GET /scm/hg/hgtest?cmd=listkeys HTTP/1.1. Accept-Encoding: identity. vary: X-HgArg-1. x-hgarg-1: namespace=phases. accept: application/mercurial-0.1. authorization: Basic c2NtYWRtaW46c2NtYWRtaW4=. host: localhost:8080. user-agent: mercurial/proto-1.0 (Mercurial 4.3.1). HTTP/1.1 200 OK. Set-Cookie: JSESSIONID=a3i712yjss6t1xsxltnssq0tl;Path=/scm. Expires: Thu, 01 Jan 1970 00:00:00 GMT. Set-Cookie: rememberMe=deleteMe; Path=/scm; Max-Age=0; Expires=Wed, 28-Mar-2018 07:55:14 GMT. Content-Type: application/mercurial-0.1. Content-Length: 58. Server: Jetty(7.6.21.v20160908). c0ceccb3b2f0f5c977ff32b9337519e5f37942c2.1 publishing.True POST /scm/hg/hgtest?cmd=pushkey HTTP/1.1. Accept-Encoding: identity. content-type: application/mercurial-0.1. vary: X-HgArg-1. x-hgarg-1: key=ef5993bb4abb32a0565c347844c6d939fc4f4b98&namespace=phases&new=0&old=1. accept: application/mercurial-0.1. authorization: Basic c2NtYWRtaW46c2NtYWRtaW4=. content-length: 0. host: localhost:8080. user-agent: mercurial/proto-1.0 (Mercurial 4.3.1). HTTP/1.1 200 OK. Set-Cookie: JSESSIONID=g8cavdze42d83knmuasrlg10;Path=/scm. Expires: Thu, 01 Jan 1970 00:00:00 GMT. Set-Cookie: rememberMe=deleteMe; Path=/scm; Max-Age=0; Expires=Wed, 28-Mar-2018 07:55:14 GMT. Content-Type: application/mercurial-0.1. Content-Length: 2. Server: Jetty(7.6.21.v20160908). . 1 ```