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

Re: git-cvsimport-3 and incremental imports

From
John Keeping <john@keeping.me.uk>
Date
Jan 21, 2013, 13:27 UTC
Message-ID
<20130121132706.GF7498@serenity.lan>
In-Reply-To
<20130121124340.GA32219@thyrsus.com>
On Mon, Jan 21, 2013 at 07:43:40AM -0500, Eric S. Raymond wrote:
Show 8 quoted lines
> John Keeping <john@keeping.me.uk>:
>> I also disagree that cvsps outputs commits *newer* than T since it will
>> also output commits *at* T, which is what I changed with the patch in my
>> previous message.
> 
> Ah.  OK, that is yet another bug inherited from 2.x - the code doesn't
> match the documented (and correct) behavior.  Please send me a patch
> against the cvsps repo, I'll merge it.
Should now be in your inbox.
Show 5 quoted lines
> > Perhaps it is simplest to just save a CVS_LAST_IMPORT_TIME file in
> > $GIT_DIR and not worry about it any more.
> 
> Yes, I think you're right. Trying to carry that information in-band would
> probably doom us to all sorts of bug-prone complications.

I think the only way to do it without needing to save local state in the Git repository would be to teach cvsps to read a table of refs and times from its stdin so that we could do something like:

    git for-each-ref --format='%(refname)%09%(*authordate:raw)' refs/heads/ |
    cvsps -i --branch-times-from-stdin |
    git fast-import

Then cvsps could create a hash table from this and use that to decide whether a patch set is interesting or not.

John
Previous: Eric S. RaymondNext: Eric S. Raymond
Message 15 of 16 in “git-cvsimport-3 and incremental imports”
  1. John KeepingJan 20, 2013
  2. Eric S. RaymondJan 20, 2013
  3. Jonathan NiederJan 20, 2013
  4. Junio C HamanoJan 21, 2013
  5. Junio C HamanoJan 21, 2013
  6. Jonathan NiederJan 20, 2013
  7. Eric S. RaymondJan 21, 2013
  8. Jonathan NiederJan 21, 2013
  9. Junio C HamanoJan 21, 2013
  10. Junio C HamanoJan 21, 2013
  11. John KeepingJan 21, 2013
  12. Eric S. RaymondJan 21, 2013
  13. John KeepingJan 21, 2013
  14. Eric S. RaymondJan 21, 2013
  15. John KeepingJan 21, 2013
  16. Eric S. RaymondJan 21, 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.