From: David Mansfield <david@cobite.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Matthias Urlichs <smurf@smurf.noris.de>,
Sven Verdoolaege <skimo@liacs.nl>,
Git Mailing List <git@vger.kernel.org>,
David Mansfield <cvsps@dm.cobite.com>
Subject: Re: [PATCH] git-cvsimport-script: parse multidigit revisions
Date: Tue, 26 Jul 2005 17:46:04 -0400 [thread overview]
Message-ID: <42E6AF1C.9050606@cobite.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0507252028220.6074@g5.osdl.org>
Linus Torvalds wrote:
>
> 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
next prev parent reply other threads:[~2005-07-26 21:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-12 21:35 [PATCH] git-cvsimport-script: parse multidigit revisions Sven Verdoolaege
2005-07-13 1:18 ` Matthias Urlichs
2005-07-25 23:00 ` Linus Torvalds
2005-07-25 23:42 ` Matthias Urlichs
2005-07-26 3:07 ` Linus Torvalds
2005-07-26 3:43 ` Linus Torvalds
2005-07-26 16:50 ` Linus Torvalds
2005-07-26 17:41 ` Rene Scharfe
2005-07-26 21:46 ` David Mansfield [this message]
2005-07-26 22:01 ` Linus Torvalds
2005-07-26 4:22 ` Ryan Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42E6AF1C.9050606@cobite.com \
--to=david@cobite.com \
--cc=cvsps@dm.cobite.com \
--cc=git@vger.kernel.org \
--cc=skimo@liacs.nl \
--cc=smurf@smurf.noris.de \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox