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

Bug Report: notes disassociated after history edits

From
CMChristopher Sean Morrison <brlcad@mac.com>
Date
Aug 22, 2019, 20:44 UTC
Message-ID
<01F35983-BC98-4518-8ED3-C0E1AFC7507A@mac.com>
Hi,
We’re migrating a very large old repository to Git (the oldest in continuous development!) and using the notes feature to preserve Svn data like revision IDs and branch information.  We’ve run into what seems like an incomplete feature or bug in that notes get orphaned/disassociated if an old commit is changed (e.g., edit a committer's e-mail or the commit message).
The changed commit and all children commits get sha updates, but the notes remain associated with the original sha.  This can be particularly catastrophic, for example, if an early commit is changed as all notes become orphaned.
I presume this is a bug but perhaps we may be doing something wrong?  Is there a better way to preserve old Svn information that will work with filter-branch?
We want to be able to look up commits by the old Svn commit ID because they are pervasively referenced in commit messages, issue trackers, mailing lists, etc.  We also simply don’t want to lose the data on philosophical grounds as we have a detailed continuous development history that goes back 30+ years.  Thank you in advance for any assistance or insights.

Cheers! Sean

Next: Jeff King
Message 1 of 3 in “Bug Report: notes disassociated after history edits”
  1. Christopher Sean MorrisonAug 22, 2019
  2. Jeff KingAug 23, 2019
  3. Junio C HamanoAug 23, 2019

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.