* cvsexportcommit and cvsimport's -k option
@ 2008-04-29 17:15 Lars Alexander Noschinski
2008-04-29 19:46 ` Robin Rosenberg
0 siblings, 1 reply; 3+ messages in thread
From: Lars Alexander Noschinski @ 2008-04-29 17:15 UTC (permalink / raw)
To: git
[Please CC me on answers, as I'm not subscribed.]
Hello!
Im using git to work on an CVS project. My work cycle is as follows:
... hack away ...
git-cvsimport -i -r cvs -kk -v -d $CVSREPOS
git-rebase cvs # If work was done in the meantime
git-cvsexportcommit -cpuv $COMMIT # Multiple times, if necessary
git-cvsimport -i -r cvs -kk -v -d $CVSREPOS
git-checkout -b master cvs # commit ids are changed now
As far as I am concerned, this works fairly well, accept when for any reason
a line containing a CVS keyword (e.g. $Id$) is contained in a changeset. In
this case, patching fails, and I have to investigate why it fails, eventually
just copying the old version from the cvs repository.
Would it be possible to add an option to cvsexportcommit to detect such
killed keywords and ignore them?
Greetings,
Lars.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cvsexportcommit and cvsimport's -k option
2008-04-29 17:15 cvsexportcommit and cvsimport's -k option Lars Alexander Noschinski
@ 2008-04-29 19:46 ` Robin Rosenberg
2008-05-02 20:11 ` Lars Noschinski
0 siblings, 1 reply; 3+ messages in thread
From: Robin Rosenberg @ 2008-04-29 19:46 UTC (permalink / raw)
To: Lars Alexander Noschinski; +Cc: git
tisdagen den 29 april 2008 19.15.06 skrev Lars Alexander Noschinski:
> ... hack away ...
> git-cvsimport -i -r cvs -kk -v -d $CVSREPOS
> git-rebase cvs # If work was done in the meantime
> git-cvsexportcommit -cpuv $COMMIT # Multiple times, if necessary
> git-cvsimport -i -r cvs -kk -v -d $CVSREPOS
> git-checkout -b master cvs # commit ids are changed now
>
> As far as I am concerned, this works fairly well, accept when for any
> reason a line containing a CVS keyword (e.g. $Id$) is contained in a
> changeset. In this case, patching fails, and I have to investigate why it
> fails, eventually just copying the old version from the cvs repository.
>
> Would it be possible to add an option to cvsexportcommit to detect such
> killed keywords and ignore them?
Sure, but is it necessary? If the cvs checkout you use is checked out
with -kk there shouldn't be any problem.
If not, start by thinking up a few testcase for inclusion in
t9200-git-cvsexportcommit.sh that illustrates the problem. Then we can
change cvsexporcommit until the new tests pass.
-- robin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: cvsexportcommit and cvsimport's -k option
2008-04-29 19:46 ` Robin Rosenberg
@ 2008-05-02 20:11 ` Lars Noschinski
0 siblings, 0 replies; 3+ messages in thread
From: Lars Noschinski @ 2008-05-02 20:11 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git
Hello!
* Robin Rosenberg <robin.rosenberg.lists@dewire.com> [08-04-29 22:56]:
>tisdagen den 29 april 2008 19.15.06 skrev Lars Alexander Noschinski:
>> ... hack away ...
>> git-cvsimport -i -r cvs -kk -v -d $CVSREPOS
>> git-rebase cvs # If work was done in the meantime
>> git-cvsexportcommit -cpuv $COMMIT # Multiple times, if necessary
>> git-cvsimport -i -r cvs -kk -v -d $CVSREPOS
>> git-checkout -b master cvs # commit ids are changed now
>>
>> As far as I am concerned, this works fairly well, accept when for any
>> reason a line containing a CVS keyword (e.g. $Id$) is contained in a
>> changeset. In this case, patching fails, and I have to investigate why it
>> fails, eventually just copying the old version from the cvs repository.
>>
>> Would it be possible to add an option to cvsexportcommit to detect such
>> killed keywords and ignore them?
>
>Sure, but is it necessary? If the cvs checkout you use is checked out
>with -kk there shouldn't be any problem.
Errm, now as you mention it ... Even it is clearly mentioned in
git-cvsimport(1), it did not realize, that -k just invokes cvs with -kk.
I think this is a perfectly fine solution.
>If not, start by thinking up a few testcase for inclusion in
>t9200-git-cvsexportcommit.sh that illustrates the problem. Then we can
>change cvsexporcommit until the new tests pass.
As cvs can do this for us, I think it is not necessary to introduce
another source of potential errors.
Thanks for your quick answer and sorry for me being dumb,
Lars
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-02 20:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-29 17:15 cvsexportcommit and cvsimport's -k option Lars Alexander Noschinski
2008-04-29 19:46 ` Robin Rosenberg
2008-05-02 20:11 ` Lars Noschinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).