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

Re: [BUG/TEST] git-svn: fetch fails with deleted tag

From
David D. Kilzer <ddkilzer@kilzer.net>
Date
Aug 12, 2010, 05:18 UTC
Message-ID
<765385.99383.qm@web30004.mail.mud.yahoo.com>
In-Reply-To
<1281159415-60900-1-git-send-email-ddkilzer@kilzer.net>
On Fri, August 6, 2010 at 10:36:55 PM, David D. Kilzer wrote:
Show 8 quoted lines
> The attached test fails when fetching the svn repo:
> 
>      Checksum mismatch: ChangeLog 065854....
>     expected:  ce771b....
>          got: 9563fd....
> 
> The issue  seems to be that the tag was created, deleted and then
> recreated from the  same source revision but at different paths.
I have a fix for this.  I hope to send it out by Friday for further review.

This bug affects svn tags that are created, deleted and recreated with the following criteria:

- Both tags have the same name (since the second one replaces the first one 
after it's deleted).
- Both tags were created from the same revision in the repository.
- Each tag used a different repository path, e.g., one was from trunk while the 
other was from a branch.
- [Optional] Both tags had a file with the same path name but different content.

If the optional fourth criteria is met, the checksum mismatch occurs and git-svn fails during import.

However, if only the first three criteria are met, git-svn actually creates a tag with the first (deleted) tag's content! The second tag's content is never imported, leaving the user with a tag in git whose content doesn't match the latest tag in svn.

Dave
Previous: David D. KilzerNext: Eric Wong
Message 2 of 3 in “[BUG/TEST] git-svn: fetch fails with deleted tag”
  1. David D. KilzerAug 7, 2010
  2. David D. KilzerAug 12, 2010
  3. Eric WongAug 12, 2010

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.