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

Re: [RFC] svnimport/cvsimport: force creation of tags that already exist.

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 7, 2007, 20:54 UTC
Message-ID
<7vzlzy2o46.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<Pine.LNX.4.64.0709071125090.6203@juice.ott.cti.com>
Michael Smith <msmith@cbnco.com> writes:
> I understand moving tags is frowned upon in Git. I don't know how common 
> the practise is in Subversion and CVS, or whether it makes sense to 
> make the import scripts force tag creation by default.

I think the patch itself makes sense. If for some reason the importer detects that the CVS or SVN history moved a tag, we either:

    (1) have a way to keep track of the versions of the tag; or
    (2) allow it and make it "last one wins" semantics; or
    (3) ignore it and make it "first one wins" semantics.  

Erroring out complaining that the tag cannot be created, as the current code does, does not make any sense.

The patch needs to be accompanied with a better commit log description. I am guessing that with your change the semantics would become (2) above (assuming that cvsps or whoever reads the history of the other side gives events in chronological order), but you should not force readers of your commit log message to guess.

Previous: Michael SmithNext: Michael Smith
Message 2 of 3 in “[RFC] svnimport/cvsimport: force creation of tags that already exist.”
  1. Michael SmithSep 7, 2007
  2. Junio C HamanoSep 7, 2007
  3. (cvs|svn)import: Ask git-tag to overwrite old tags.Michael Smith, Sep 7, 2007

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.