From: newren@gmail.com
To: git@vger.kernel.org
Cc: Johannes.Schindelin@gmx.de, vmiklos@frugalware.org,
gitster@pobox.com, spearce@spearce.org,
Alexander Gladysh <agladysh@gmail.com>
Subject: [PATCH 2/5] Add another rename + D/F conflict testcase
Date: Mon, 28 Jun 2010 19:12:13 -0600 [thread overview]
Message-ID: <1277773936-12412-3-git-send-email-newren@gmail.com> (raw)
In-Reply-To: <1277773936-12412-1-git-send-email-newren@gmail.com>
From: Alexander Gladysh <agladysh@gmail.com>
This is a simple testcase where both sides of the rename are paths involved
in (separate) D/F merge conflicts.
---
I hope it's not bad style to take someone else's testcase from the mailing
list and submit it on their behalf as a testsuite addition (nor do I know
what to do about the signed-off-by line in this case). This is simply the
testcase Alexander Gladysh posted to the list on March 8. I really like
his example due to how it serves as a simple case where there are two D/F
conflicts with a rename across paths involved in both of those D/F
conflicts.
I'm trying to submit this with Alexander listed as the author, but I'm not
sure how to preserve that when using git-send-email.
t/t6020-merge-df.sh | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/t/t6020-merge-df.sh b/t/t6020-merge-df.sh
index e71c687..99acb89 100755
--- a/t/t6020-merge-df.sh
+++ b/t/t6020-merge-df.sh
@@ -45,4 +45,36 @@ test_expect_failure 'F/D conflict' '
git merge master
'
+test_expect_success 'Setup rename across paths each below D/F conflicts' '
+ git symbolic-ref HEAD refs/heads/newmaster &&
+ rm .git/index &&
+ git clean -fdx &&
+
+ mkdir a &&
+ touch a/f &&
+ git add a &&
+ git commit -m "a" &&
+
+ mkdir b &&
+ ln -s ../a b/a &&
+ git add b &&
+ git commit -m "b" &&
+
+ git checkout -b branch &&
+ rm b/a &&
+ mv a b/ &&
+ ln -s b/a a &&
+ git add . &&
+ git commit -m "swap" &&
+
+ touch f1 &&
+ git add f1 &&
+ git commit -m "f1"
+'
+
+test_expect_failure 'Test rename across paths below D/F conflicts' '
+ git checkout newmaster &&
+ git cherry-pick branch
+'
+
test_done
--
1.7.2.rc0.212.g0c601
next prev parent reply other threads:[~2010-06-29 1:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 1:12 [PATCH 0/5] D/F conflict fixes newren
2010-06-29 1:12 ` [PATCH 1/5] Add additional testcases for D/F conflicts newren
2010-06-29 1:12 ` newren [this message]
2010-06-29 8:49 ` [PATCH 2/5] Add another rename + D/F conflict testcase Alexander Gladysh
2010-06-29 1:12 ` [PATCH 3/5] merge-recursive: Fix D/F conflicts newren
2010-06-29 1:12 ` [PATCH 4/5] merge_recursive: Fix renames across paths below " newren
2010-06-29 7:54 ` Miklos Vajna
2010-06-29 12:52 ` Elijah Newren
2010-06-29 13:36 ` Alex Riesen
2010-06-29 15:55 ` Elijah Newren
2010-06-29 22:33 ` Miklos Vajna
2010-06-30 6:53 ` Alex Riesen
2010-06-29 1:12 ` [PATCH 5/5] fast-import: Handle directories changing into symlinks newren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1277773936-12412-3-git-send-email-newren@gmail.com \
--to=newren@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=agladysh@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=spearce@spearce.org \
--cc=vmiklos@frugalware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).