# HG changeset patch # User Nicolas Dumazet # Date 2011-04-30 15:38:06 # Node ID 7fd8e597f99c3bec9fe0db082a56124c627403a4 # Parent 07708f4171f1be567c4436aa79362587239c764d tests: introduce a rebase bundle to use with rebase tests Allows saving a few seconds in test runs by not constructing over and over the same repository. diff --git a/tests/bundles/rebase.hg b/tests/bundles/rebase.hg new file mode 100644 index 0000000000000000000000000000000000000000..12007c0e2e6a4429a3f527d61dca3020a99db448 GIT binary patch literal 1311 zc$@(r1>pKfM=>x$T4*^jL0KkKSq+o%eE5CRPu115knG-;p%OeRAR(?)|p02(x4MwtLK41-Mo$Ql|0 zLnc55jQ|0r1xjdnL7)Tm36Y_o8Udha00u#j27m@kKmn6L(V?Kw0B8UJXaO0iXZ?02qK|2AXIHG-M2#0Lam%fDJI2 z3`0#C4FCXW(SaId0MIfGGy@=LXblXR02(v^2AByc1y9l@o+d>ji*K-<|GvB_WXANa2Skb7-@`S7{rN84;C^m z00t2RzIYKmAPRsW0&y%t5QKq2QIH(OFvBs5DCP!AB9l|L7>!6m033VFAkR5TYV6^2 zV$H^c zw`m!(d;z}ed_ObG=5{!or+JJ)Sg6mXIAdn_w8)7{N;G{iQV_OtdpABJNq34l7!n&y zUrh;a)yZ^fTGlm%)Ii2kRz%=0Ce|=opi!Z~#4s{P7&VCw7ESOWcu;%bq`obF2GCff zi8qqWss&0V;_IJEKEYcO(QMr@Je;B~Q7y8Y8b<{Liw&+9N;WNuV5D#*EyDp*rH-g* zT8u%HcMjC1+L(Id4PA;8fgRCn+mJkS&ccMFF@GH7XlBrLy(IS?wGLwDV5>!vs0=MC zy#FjK^(o=#3bE>yZIKE;JY9rF%eLkHBDbuBwUPGTyIjz7g6pGg zwl-!CIOBu%`9Sen+s`~{64$QZn3egpq!*QP15Z4^+=mnSSZm3a$#`M1TRU5&I5eTI zq8KMdPzywJE;^YZTcD0#)x#Qhu812;IYV-^ndWIU+5_ zG7)7V6|k68Vw9@UZA?j5R95bIP7gxf=|Ky&bAi0+h!rs^Yh+4FN}n2f(Xbc7t(}KW8pjc{D4KWA%goH`pDc>sH@bZf>PMv zMHjoiK+>%46TzbOJMOYpJe&iQ(9yQnX+xGNseQN#dETa&6_)g2 zej(0K@Vp4WAast_4RiSH7k8>y1@E|zzAnQnpogrn!_npi(qE8qZ`X8Noj|iSQ5G<4 zb!Naih{{K9!y`*DD}qv6*`6C)P3ulF*}SmOUj%eRu=47~Hh_9bQtZyivryN64;Sat z?AK$a7@1*+rh_6YM83gMOFb&80=t1q!O(9dFC%KC^o1{gjR5_(`=y{tY7traISaARV diff --git a/tests/bundles/rebase.sh b/tests/bundles/rebase.sh new file mode 100755 --- /dev/null +++ b/tests/bundles/rebase.sh @@ -0,0 +1,24 @@ +#!/bin/bash +hg init rebase +cd rebase + +echo A > A +hg ci -Am A +echo B > B +hg ci -Am B +hg up -q -C 0 +echo C > C +hg ci -Am C +hg up -q -C 0 +echo D > D +hg ci -Am D +hg merge -r 2 +hg ci -m E +hg up -q -C 3 +echo F > F +hg ci -Am F + +hg bundle -a ../rebase.hg + +cd .. +rm -Rf rebase diff --git a/tests/test-rebase-named-branches.t b/tests/test-rebase-named-branches.t --- a/tests/test-rebase-named-branches.t +++ b/tests/test-rebase-named-branches.t @@ -7,45 +7,16 @@ > tglog = log -G --template "{rev}: '{desc}' {branches}\n" > EOF - $ hg init a $ cd a - - $ echo A > A - $ hg ci -Am A - adding A - - $ echo B > B - $ hg ci -Am B - adding B - - $ hg up -q -C 0 - - $ echo C > C - $ hg ci -Am C - adding C - created new head - - $ hg up -q -C 0 - - $ echo D > D - $ hg ci -Am D - adding D - created new head - - $ hg merge -r 2 - 1 files updated, 0 files merged, 0 files removed, 0 files unresolved - (branch merge, don't forget to commit) - - $ hg ci -m E - - $ hg up -q -C 3 - - $ echo F > F - $ hg ci -Am F - adding F - created new head - + $ hg unbundle $TESTDIR/bundles/rebase.hg + adding changesets + adding manifests + adding file changes + added 6 changesets with 5 changes to 5 files (+2 heads) + (run 'hg heads' to see heads, 'hg merge' to merge) + $ hg up tip + 3 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd .. diff --git a/tests/test-rebase-scenario-global.t b/tests/test-rebase-scenario-global.t --- a/tests/test-rebase-scenario-global.t +++ b/tests/test-rebase-scenario-global.t @@ -10,42 +10,14 @@ $ hg init a $ cd a - - $ echo A > A - $ hg ci -Am A - adding A - - $ echo B > B - $ hg ci -Am B - adding B - - $ hg up -q -C 0 - - $ echo C > C - $ hg ci -Am C - adding C - created new head - - $ hg up -q -C 0 - - $ echo D > D - $ hg ci -Am D - adding D - created new head - - $ hg merge -r 2 - 1 files updated, 0 files merged, 0 files removed, 0 files unresolved - (branch merge, don't forget to commit) - - $ hg ci -m E - - $ hg up -q -C 3 - - $ echo F > F - $ hg ci -Am F - adding F - created new head - + $ hg unbundle $TESTDIR/bundles/rebase.hg + adding changesets + adding manifests + adding file changes + added 6 changesets with 5 changes to 5 files (+2 heads) + (run 'hg heads' to see heads, 'hg merge' to merge) + $ hg up tip + 3 files updated, 0 files merged, 0 files removed, 0 files unresolved $ cd ..