From: Antoine Pelisse <apelisse@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Felipe Contreras <felipe.contreras@gmail.com>,
git <git@vger.kernel.org>, Antoine Pelisse <apelisse@gmail.com>
Subject: [PATCH] remote-hg: test 'shared_path' in a moved clone
Date: Mon, 23 Dec 2013 21:23:43 +0100 [thread overview]
Message-ID: <1387830223-19780-1-git-send-email-apelisse@gmail.com> (raw)
In-Reply-To: <xmqqzjnzktdr.fsf@gitster.dls.corp.google.com>
Since e71d1378 (remote-hg: fix 'shared path' path, 2013-12-07),
Mercurial 'shared_path' file is correctly updated whenever a clone is
moved. Make sure it keeps working, especially as this is depending on a
private Mercurial file.
Signed-off-by: Antoine Pelisse <apelisse@gmail.com>
---
contrib/remote-helpers/test-hg.sh | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh
index 0b7df11..5d128a5 100755
--- a/contrib/remote-helpers/test-hg.sh
+++ b/contrib/remote-helpers/test-hg.sh
@@ -337,6 +337,17 @@ test_expect_success 'remote cloning' '
check gitrepo HEAD zero
'
+test_expect_success 'moving remote clone' '
+ test_when_finished "rm -rf gitrepo*" &&
+
+ (
+ git clone "hg::hgrepo" gitrepo &&
+ mv gitrepo gitrepo2 &&
+ cd gitrepo2 &&
+ git fetch
+ )
+'
+
test_expect_success 'remote update bookmark' '
test_when_finished "rm -rf gitrepo*" &&
--
1.8.5.1.97.g8d784da.dirty
next prev parent reply other threads:[~2013-12-23 20:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-07 13:09 [PATCH 0/4] remote-helpers: fixes Felipe Contreras
2013-12-07 13:09 ` [PATCH 1/4] remote-hg: avoid buggy strftime() Felipe Contreras
2013-12-07 13:09 ` [PATCH 2/4] remote-helpers: add extra safety checks Felipe Contreras
2013-12-07 13:09 ` [PATCH 3/4] remote-hg: fix 'shared path' path Felipe Contreras
2013-12-13 17:58 ` Antoine Pelisse
2013-12-17 22:25 ` Junio C Hamano
2013-12-23 20:23 ` Antoine Pelisse [this message]
2013-12-07 13:09 ` [PATCH 4/4] remote-hg: add tests for special filenames Felipe Contreras
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=1387830223-19780-1-git-send-email-apelisse@gmail.com \
--to=apelisse@gmail.com \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).