From 34cb4f24151a18f73428efd96184bd8899b14123 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 28 Jun 2024 20:49:23 +0900 Subject: [PATCH] Add a round-trip test for the git_commit feature --- tests/push.t | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/push.t b/tests/push.t index 07ed130c6..85a69b33b 100755 --- a/tests/push.t +++ b/tests/push.t @@ -366,6 +366,8 @@ In that corner case, we don't store metadata. $ git -C uvw-git cinnabar rollback --candidates 2836e453f32b1ecccd3acca412f75b07c88176bf (current) +Test the git_commit experimental feature. + $ rm -rf $REPO/.hg $ hg init $REPO $ git -C abc-git cinnabar rollback 0000000000000000000000000000000000000000 @@ -392,3 +394,12 @@ In that corner case, we don't store metadata. | o f92470d7f6966a39dfbced6a525fe81ebf5c37b9 default a + +Round-trips back to the same commits, despite the Mercurial changesets being +different than without the feature enabled. + + $ git -c fetch.prune=true clone -q hg::$REPO $REPO-git + $ git -C $REPO-git log --graph --remotes --oneline --no-abbrev-commit + * 687e015f9f646bb19797d991f2f53087297fbe14 c + * d04f6df4abe2870ceb759263ee6aaa9241c4f93c b + * 8b86a58578d5270969543e287634e3a2f122a338 a