Mercurial > evolve
changeset 4566:1e31e225942c mercurial-4.9
test-compat: merge stable into mercurial-4.9
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 23 Apr 2019 14:18:05 +0200 |
parents | 393a58d71b30 (current diff) e914abb05c6a (diff) |
children | d548830ed30d d0d8c0e2f3fc |
files | |
diffstat | 3 files changed, 18 insertions(+), 71 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-split.t Mon Apr 22 22:14:26 2019 -0700 +++ b/tests/test-split.t Tue Apr 23 14:18:05 2019 +0200 @@ -779,18 +779,9 @@ (remaining changes gathered with unmatched one) -adding content in files to make sure that it prompt us to select the changes, -as it won't prompt if a file has no changes at hunk level and passed in cli -(for more look into hg db72f9f6580e which made it to not prompt "examine changes to fileX" -for files which are explicitly mentioned by user) - $ echo sp2 > SPLIT2 - $ echo sp3 > SPLIT3 - $ echo sp4 > SPLIT4 - $ hg amend - $ hg split SPLIT2 SPLIT3 << EOF > y - > s + > n > c > EOF 0 files updated, 0 files merged, 3 files removed, 0 files unresolved @@ -799,18 +790,13 @@ adding SPLIT4 diff --git a/SPLIT2 b/SPLIT2 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp2 - record change 1/2 to 'SPLIT2'? [Ynesfdaq?] y + examine changes to 'SPLIT2'? [Ynesfdaq?] y diff --git a/SPLIT3 b/SPLIT3 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp3 - record change 2/2 to 'SPLIT3'? [Ynesfdaq?] s + examine changes to 'SPLIT3'? [Ynesfdaq?] n continue splitting? [Ycdq?] c - $ hg status --change '.~1' A SPLIT2 $ hg status --change '.' @@ -824,7 +810,7 @@ $ hg split SPLIT2 SPLIT3 << EOF > y - > s + > n > y > y > EOF @@ -834,25 +820,18 @@ adding SPLIT4 diff --git a/SPLIT2 b/SPLIT2 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp2 - record change 1/2 to 'SPLIT2'? [Ynesfdaq?] y + examine changes to 'SPLIT2'? [Ynesfdaq?] y diff --git a/SPLIT3 b/SPLIT3 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp3 - record change 2/2 to 'SPLIT3'? [Ynesfdaq?] s + examine changes to 'SPLIT3'? [Ynesfdaq?] n continue splitting? [Ycdq?] y diff --git a/SPLIT3 b/SPLIT3 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp3 - record this change to 'SPLIT3'? [Ynesfdaq?] y + examine changes to 'SPLIT3'? [Ynesfdaq?] y no more change to split - $ hg status --change '.~2' A SPLIT2 $ hg status --change '.~1' @@ -875,15 +854,11 @@ adding SPLIT4 diff --git a/SPLIT2 b/SPLIT2 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp2 - record change 1/2 to 'SPLIT2'? [Ynesfdaq?] y + examine changes to 'SPLIT2'? [Ynesfdaq?] y diff --git a/SPLIT3 b/SPLIT3 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp3 - record change 2/2 to 'SPLIT3'? [Ynesfdaq?] y + examine changes to 'SPLIT3'? [Ynesfdaq?] y no more change to split $ hg status --change '.~1' @@ -899,7 +874,7 @@ $ hg split SPLIT2 SPLIT3 << EOF > y - > s + > n > d > EOF 0 files updated, 0 files merged, 3 files removed, 0 files unresolved @@ -908,15 +883,11 @@ adding SPLIT4 diff --git a/SPLIT2 b/SPLIT2 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp2 - record change 1/2 to 'SPLIT2'? [Ynesfdaq?] y + examine changes to 'SPLIT2'? [Ynesfdaq?] y diff --git a/SPLIT3 b/SPLIT3 new file mode 100644 - @@ -0,0 +1,1 @@ - +sp3 - record change 2/2 to 'SPLIT3'? [Ynesfdaq?] s + examine changes to 'SPLIT3'? [Ynesfdaq?] n continue splitting? [Ycdq?] d discarding remaining changes
--- a/tests/test-topic.t Mon Apr 22 22:14:26 2019 -0700 +++ b/tests/test-topic.t Tue Apr 23 14:18:05 2019 +0200 @@ -860,10 +860,6 @@ 3: featureA $ tlog 'featureA#topic[0]' 3: featureA - $ tlog 'featureA#topic[:]' - 1: featureA - 2: featureA - 3: featureA $ tlog '2#t[-2]' $ tlog '2#t[-1]' @@ -873,10 +869,6 @@ $ tlog '2#t[1]' 3: featureA $ tlog '2#t[2]' - $ tlog '2#t[-1:1]' - 1: featureA - 2: featureA - 3: featureA stack subscript relation @@ -906,28 +898,6 @@ $ tlog 'featureA#s[0]' 0: - $ tlog 'featureA#s[0:0]' - 0: - $ tlog 'featureA#s[:]' - 1: featureA - 2: featureA - 3: featureA - $ tlog 'featureA#s[2:]' - 2: featureA - 3: featureA - $ tlog 'featureA#s[:2]' - 1: featureA - 2: featureA - $ tlog 'featureA#s[0:1]' - 0: - 1: featureA - $ tlog 'featureA#s[-1:0]' - 0: - 3: featureA - $ tlog 'featureA#s[-3:3]' - 1: featureA - 2: featureA - 3: featureA $ tlog 'featureA#s[1] and featureA#s[-3]' 1: featureA $ tlog 'featureA#s[2] and featureA#s[-2]'
--- a/tests/test-uncommit-interactive.t Mon Apr 22 22:14:26 2019 -0700 +++ b/tests/test-uncommit-interactive.t Tue Apr 23 14:18:05 2019 +0200 @@ -780,9 +780,12 @@ $ hg uncommit -i a << DONE > y + > y > DONE diff --git a/a b/a 1 hunks, 1 lines changed + examine changes to 'a'? [Ynesfdaq?] y + @@ -9,3 +9,4 @@ 4 5 @@ -843,10 +846,13 @@ $ hg uncommit -i a << DONE > y + > y > n > DONE diff --git a/a b/a 2 hunks, 2 lines changed + examine changes to 'a'? [Ynesfdaq?] y + @@ -1,3 +1,4 @@ +-3 -2