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

Re: [PATCH] git-cvsimport-script: handling of tags

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Sep 6, 2005, 22:59 UTC
Message-ID
<46a038f9050906155962d33869@mail.gmail.com>
In-Reply-To
<431E0B25.5000104@zytor.com>
On 9/7/05, H. Peter Anvin <hpa@zytor.com> wrote:
Show 8 quoted lines
> Martin Langhoff wrote:
> >
> > Tell me more about how you are trying the 'recognize merge'. It is a
> > pretty unsophisticated thing, as it trusts the commit message in the
> > first place. But when it works, it works.
> >
> 
> Perhaps it would be good to know what it expects in the commit message?
>From the source, with line numbers:

80 our @mergerx = (); 81 if ($opt_m) { 82 @mergerx = ( qr/\W(?:from|of|merge|merging|merged) (\w+)/i ); 83 } 84 if ($opt_M) { 85 push (@mergerx, qr/$opt_M/); 86 }

If your commit messages have a particular format, feed -M a regex that captures the branchname/tagname in $1.

> My style has always be to use tags for merges; tag the origin branch as
> well as before and after on the receiving branch.

Do you move the tags with cvs tag -F? If that's the case, the data you need to merge is lost... otherwise, you could hack an alternative merge detection based on your tagnames.

cheers,
martin
Previous: H. Peter AnvinNext: H. Peter Anvin
Message 6 of 10 in “git-cvsimport-script: handling of tags”
  1. git-cvsimport-script: handling of tagsH. Peter Anvin, Sep 6, 2005
  2. H. Peter AnvinSep 6, 2005
  3. H. Peter AnvinSep 6, 2005
  4. Martin LanghoffSep 6, 2005
  5. H. Peter AnvinSep 6, 2005
  6. Martin LanghoffSep 6, 2005
  7. H. Peter AnvinSep 6, 2005
  8. Junio C HamanoSep 6, 2005
  9. Martin LanghoffSep 7, 2005
  10. H. Peter AnvinSep 7, 2005

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.