git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH v2] patch-ids: cache patch IDs in a notes tree

From
John Keeping <john@keeping.me.uk>
Date
May 12, 2013, 11:57 UTC
Message-ID
<20130512115743.GJ2299@serenity.lan>
In-Reply-To
<20130512114131.GI2299@serenity.lan>
On Sun, May 12, 2013 at 12:41:31PM +0100, John Keeping wrote:
Show 17 quoted lines
> diff --git a/t/t6007-rev-list-cherry-pick-file.sh b/t/t6007-rev-list-cherry-pick-file.sh
> index 28d4f6b..378cf3e 100755
> --- a/t/t6007-rev-list-cherry-pick-file.sh
> +++ b/t/t6007-rev-list-cherry-pick-file.sh
> @@ -207,4 +207,20 @@ test_expect_success '--count --left-right' '
>  	test_cmp expect actual
>  '
>  
> +cat >expect <<EOF
> +3	2	0
> +EOF
> +
> +test_expect_success 'rev-list --cherry-mark caches patch ids' '
> +	test_config patchid.cacheref patchids &&
> +	git rev-list --cherry-mark --left-right --count F...E >actual &&
> +	test_cmp expect actual &&
> +	git notes --ref patchids show master >cached_master &&

I forgot to update this test, it needs a "| sed -e 1q" in the middle of this line to make sure that we're only checking the patch ID and not the diffopts hash and Git version.

Show 8 quoted lines
> +	git log -p -1 master | git patch-id | sed -e "s/ .*//" >patch-id_master &&
> +	test_cmp patch-id_master cached_master &&
> +	# Get the patch IDs again, now they should be cached
> +	git rev-list --cherry-mark --left-right --count F...E >actual &&
> +	test_cmp expect actual
> +'
> +
>  test_done
Previous: John KeepingNext: Junio C Hamano
Message 8 of 18 in “patch-ids.c: cache patch IDs in a notes tree”
  1. patch-ids.c: cache patch IDs in a notes treeJohn Keeping, May 11, 2013
  2. Linus TorvaldsMay 11, 2013
  3. John KeepingMay 11, 2013
  4. Linus TorvaldsMay 11, 2013
  5. Johannes SchindelinMay 11, 2013
  6. John KeepingMay 12, 2013
  7. patch-ids: cache patch IDs in a notes treeJohn Keeping, May 12, 2013
  8. John KeepingMay 12, 2013
  9. Junio C HamanoMay 12, 2013
  10. John KeepingMay 12, 2013
  11. Junio C HamanoMay 12, 2013
  12. John KeepingMay 13, 2013
  13. Junio C HamanoMay 13, 2013
  14. John KeepingMay 13, 2013
  15. Junio C HamanoMay 13, 2013
  16. John KeepingMay 13, 2013
  17. Junio C HamanoMay 13, 2013
  18. John KeepingMay 13, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.