Mercurial > hg-stable
diff tests/test-transplant.t @ 23048:ee5f834077be stable
merge default into stable for 3.2 freeze
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 18 Oct 2014 18:04:31 -0500 |
parents | c63a09b6b337 |
children | 501dc6b1ca78 |
line wrap: on
line diff
--- a/tests/test-transplant.t Fri Oct 10 11:38:00 2014 -0500 +++ b/tests/test-transplant.t Sat Oct 18 18:04:31 2014 -0500 @@ -1,4 +1,4 @@ - $ "$TESTDIR/hghave" killdaemons || exit 80 +#require killdaemons $ cat <<EOF >> $HGRCPATH > [extensions] @@ -95,8 +95,13 @@ $ hg ci -qm "b4" $ hg status --rev "7^1" --rev 7 A b3 - $ HGEDITOR=cat hg transplant --edit 7 + $ cat > $TESTTMP/checkeditform.sh <<EOF + > env | grep HGEDITFORM + > true + > EOF + $ HGEDITOR="sh $TESTTMP/checkeditform.sh; cat" hg transplant --edit 7 applying ffd6818a3975 + HGEDITFORM=transplant.normal b3 @@ -373,7 +378,8 @@ patch failed to apply abort: fix up the merge and run hg transplant --continue [255] - $ hg transplant --continue + $ HGEDITOR="sh $TESTTMP/checkeditform.sh" hg transplant --continue -e + HGEDITFORM=transplant.normal 46ae92138f3c transplanted as 9159dada197d $ hg transplant 1:3 skipping already applied revision 1:46ae92138f3c @@ -430,9 +436,30 @@ transplant - $ hg transplant -m 1 + $ HGEDITOR="sh $TESTTMP/checkeditform.sh" hg transplant -m 1 -e applying 42dc4432fd35 + HGEDITFORM=transplant.merge 1:42dc4432fd35 merged at a9f4acbac129 + $ hg update -q -C 2 + $ cat > a <<EOF + > x + > y + > z + > EOF + $ hg commit -m replace + $ hg update -q -C 4 + $ hg transplant -m 5 + applying 600a3cdcb41d + patching file a + Hunk #1 FAILED at 0 + 1 out of 1 hunks FAILED -- saving rejects to file a.rej + patch failed to apply + abort: fix up the merge and run hg transplant --continue + [255] + $ HGEDITOR="sh $TESTTMP/checkeditform.sh" hg transplant --continue -e + HGEDITFORM=transplant.merge + 600a3cdcb41d transplanted as a3f88be652e0 + $ cd .. test transplant into empty repository @@ -481,15 +508,20 @@ > c > EOF 0:17ab29e464c6 - apply changeset? [ynmpcq?]: --- /dev/null Thu Jan 01 00:00:00 1970 +0000 + apply changeset? [ynmpcq?]: p + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/r1 Thu Jan 01 00:00:00 1970 +0000 @@ -0,0 +1,1 @@ +r1 - apply changeset? [ynmpcq?]: 1:d11e3596cc1a - apply changeset? [ynmpcq?]: 2:37a1297eb21b - apply changeset? [ynmpcq?]: 3:722f4667af76 - apply changeset? [ynmpcq?]: 4:a53251cdf717 - apply changeset? [ynmpcq?]: (no-eol) + apply changeset? [ynmpcq?]: y + 1:d11e3596cc1a + apply changeset? [ynmpcq?]: n + 2:37a1297eb21b + apply changeset? [ynmpcq?]: n + 3:722f4667af76 + apply changeset? [ynmpcq?]: m + 4:a53251cdf717 + apply changeset? [ynmpcq?]: c $ hg log -G --template "{node|short}" @ 88be5dde5260 |\ @@ -506,16 +538,19 @@ > q > EOF 1:d11e3596cc1a - apply changeset? [ynmpcq?]: unrecognized response - apply changeset? [ynmpcq?]: y: yes, transplant this changeset + apply changeset? [ynmpcq?]: x + unrecognized response + apply changeset? [ynmpcq?]: ? + y: yes, transplant this changeset n: no, skip this changeset m: merge at this changeset p: show patch c: commit selected changesets q: quit and cancel transplant ?: ? (show this help) - apply changeset? [ynmpcq?]: 4:a53251cdf717 - apply changeset? [ynmpcq?]: (no-eol) + apply changeset? [ynmpcq?]: y + 4:a53251cdf717 + apply changeset? [ynmpcq?]: q $ hg heads --template "{node|short}\n" 88be5dde5260 @@ -633,7 +668,7 @@ $ cd twin2 $ echo '[patch]' >> .hg/hgrc $ echo 'eol = crlf' >> .hg/hgrc - $ python -c "file('b', 'wb').write('b\r\nb\r\n')" + $ $PYTHON -c "file('b', 'wb').write('b\r\nb\r\n')" $ hg ci -Am addb adding b $ hg transplant -s ../twin1 tip