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

Re: [PATCH] git-cvsimport-script: parse multidigit revisions

From
DMDavid Mansfield <david@cobite.com>
Date
Jul 26, 2005, 21:46 UTC
Message-ID
<42E6AF1C.9050606@cobite.com>
In-Reply-To
<Pine.LNX.4.58.0507252028220.6074@g5.osdl.org>
Linus Torvalds wrote:
Show 28 quoted lines
> 
> On Mon, 25 Jul 2005, Linus Torvalds wrote:
> 
>>And they are in the wrong order, so "cvsimport" ends up committing the 
>>last one, which is the _empty_ one.
>>
>>Notice? We'll end up committing "COPYING 1.1" (the empty initial create)
>>even though we _should_ have committed "COPYING 1.2" (the actual thing
>>that BK committed).
> 
> 
> David, how about a patch like this to cvsps? My very very limited testing
> seems to say that it does the right thing..
> 
> It's very simple: if we are adding the same file twice to the same 
> PatchSet, we just look at the ordering of the revisions. If the revision 
> we're adding is older than the revision we already have, we just drop that 
> revision entirely. If it's the same, something is really wrong, and we add 
> it to the "collisions" list. And if it's newer, then we remove the old 
> revision for that file, and add the new one instead.
> 
> As far as I can tell, the old code really was broken, since it would
> happen to list different revisions in a random order when you had multiple
> changes to the same file in the same patchset. This one always selects the
> last one, which would seem to be the sane behaviour.
> 
> And this all seem to make "git cvsimport -p --bkcvs" do the right thing. 
> 
I've been 'off the web' for a few weeks on vacation.  I'll look at the 
context of the thread.  It 'smells' wierd to have to revisions in the 
same patchset at all, but I suppose you've all been through that before. 
  So let me catch up with this thread and get back to you...
David
Previous: Rene ScharfeNext: Linus Torvalds
Message 9 of 11 in “git-cvsimport-script: parse multidigit revisions”
  1. git-cvsimport-script: parse multidigit revisionsSven Verdoolaege, Jul 12, 2005
  2. Matthias UrlichsJul 13, 2005
  3. Linus TorvaldsJul 25, 2005
  4. Matthias UrlichsJul 25, 2005
  5. Linus TorvaldsJul 26, 2005
  6. Linus TorvaldsJul 26, 2005
  7. Linus TorvaldsJul 26, 2005
  8. Rene ScharfeJul 26, 2005
  9. David MansfieldJul 26, 2005
  10. Linus TorvaldsJul 26, 2005
  11. Ryan AndersonJul 26, 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.