Change in cvsps maintainership, abd a --fast-export option
Earlier today David Mansfield handed off to me the cvsps project. This is the code used as an engine for reading CVS repositories by git-cvsimport.
His reason (aside from general overwork and no longer having a strong interest on the code) is that I have added a --fast-export option to cvsps-3.0 that emits a git fast-import stream representing the CVS history.
I did this so that reposurgeon could use cvsps as a front end. But I expect it will be of some interest to whoever is maintaining git-cvsimport. That code can now become much, *much* smaller and simpler.
The new --fast-export mode solves at least one bug mentioned on the git-cvsimport man page; multiple tags pointing at the same CVS changeset will be passed through correctly.
Possibly it fixes some other problems described there as well. I don't understand all the bug warnings on that page and would like to discuss them with the author, whoever that is. Possibly cvsps can be further enhanced to address these problems; I'm willing to work on that.
Signature · 5 lines
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a> To stay young requires the unceasing cultivation of the ability to unlearn old falsehoods. -- Lazarus Long
Quoted 11 lines · Eric S. Raymond
Earlier today David Mansfield handed off to me the cvsps project. This is the code used as an engine for reading CVS repositories by git-cvsimport.
[...] I have added a --fast-export option to
cvsps-3.0 that emits a git fast-import stream representing the CVS history.
[...]
Possibly it fixes some other problems described there as well. I don't understand all the bug warnings on that page and would like to discuss them with the author, whoever that is. Possibly cvsps can be further enhanced to address these problems; I'm willing to work on that.
In 2009 I added tests demonstrating some of the erroneous behavior of git-cvsimport. The failing tests in t9601-t9603 are concrete examples of the problems mentioned in the manpage.
If you haven't yet seen it, there is a writeup of the algorithm used by cvs2git to infer the history of a CVS repository [1]. If your goal is to make cvsps more robust, you might want to consider the ideas described there.
Michael
[1] File doc/design-notes.txt in the cvs2svn source tree, also visible here:
http://cvs2svn.tigris.org/source/browse/*checkout*/cvs2svn/trunk/doc/design-notes.txt
Signature · 3 lines
Michael Haggerty [email protected] http://softwareswirl.blogspot.com/
Michael Haggerty <[email protected]>:
Quoted 3 lines
In 2009 I added tests demonstrating some of the erroneous behavior of git-cvsimport. The failing tests in t9601-t9603 are concrete examples of the problems mentioned in the manpage.
Thanks, that will be extremely useful. One of the things I'm putting effort into is building a good test suite for the tool; I may well be able to adapt your tests directly.
Quoted 5 lines
If you haven't yet seen it, there is a writeup of the algorithm used by cvs2git to infer the history of a CVS repository [1]. If your goal is to make cvsps more robust, you might want to consider the ideas described there.
I shall do so. Their design ideas may well be interesting, even though I don't trust their code. I've seem cvs2svn drop far too many weird artifacts and just plain broken commits in the back history of Subversion repositories. I don't know if this is due to design problems, implementation bugs, or both.
Signature · 1 line
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Quoted 10 lines · Eric S. Raymond
Michael Haggerty <[email protected]>:
Quoted 4 lines
If you haven't yet seen it, there is a writeup of the algorithm used by cvs2git to infer the history of a CVS repository [1]. If your goal is to make cvsps more robust, you might want to consider the ideas described there.
I shall do so. Their design ideas may well be interesting, even though I don't trust their code. I've seem cvs2svn drop far too many weird artifacts and just plain broken commits in the back history of Subversion repositories. I don't know if this is due to design problems, implementation bugs, or both.
If you have seen any problems with cvs2svn/cvs2git, please file bug reports. In the past years there have been very few valid bugs reported. We very often find that artifacts that users thought were bugs are in fact intentional workarounds required to make the contents of branches and tags in the target VCS agree with those in the CVS repository.
Perhaps your experience is with an older version of cvs2svn? If not, please be specific rather than just making complaints that are too vague to be rebutted or fixed (whichever is appropriate). I put a *lot* of effort into getting cvs2svn to run correctly, and I take bug reports very seriously.
Michael
(the cvs2svn maintainer)
Signature · 3 lines
Michael Haggerty [email protected] http://softwareswirl.blogspot.com/
Michael Haggerty <[email protected]>:
Quoted 1 line
Perhaps your experience is with an older version of cvs2svn?
Well, it has been at least four years since I ran it on anything. Maybe that counts as old.
I'm willing to believe it's working better now, but I've had to deal with geological strata of nastiness older versions produced in various Subversion repositories (cleaning up that crud was a major motivation for reposurgeon) and I'm fairly sure I haven't seen the last such fossils. Every sufficiently old Subversion repository seems to have few.
Quoted 5 lines
If not,
please be specific rather than just making complaints that are too vague to be rebutted or fixed (whichever is appropriate). I put a *lot* of effort into getting cvs2svn to run correctly, and I take bug reports very seriously.
I can't be specific now, but that may change shortly. I'm putting together a test suite for cvsps with the specific intention of capturing as many odd corner cases as I can. (I just finished writing a small Python framework for expressing interleaved CVS command sequences on multiple checkouts in a way that can be easily run.)
It wouldn't be difficult for me to test whether these break cvs2svn. You've established that someone over there is paying attention, so I'll do that, I guess.
I'm willing to share my test suite as well. Do you have your own zoo of odd cases I could test on?
Signature · 1 line
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Quoted 5 lines · Eric S. Raymond
Michael Haggerty <[email protected]>:
Quoted 1 line
Perhaps your experience is with an older version of cvs2svn?
Well, it has been at least four years since I ran it on anything. Maybe that counts as old.
cvs2svn version 2.0 (Aug 2007) totally changed how cvs2svn deduces changesets. Any results from before that are utterly irrelevant to modern times.
The changes between version 2.0 and version 2.4 (Sep 2012) have done a lot more to improve the quality of the conversion. The state of the art is far beyond what it was four years ago.
Quoted 12 lines
Quoted 5 lines
If not,
please be specific rather than just making complaints that are too vague to be rebutted or fixed (whichever is appropriate). I put a *lot* of effort into getting cvs2svn to run correctly, and I take bug reports very seriously.I can't be specific now, but that may change shortly. I'm putting together a test suite for cvsps with the specific intention of capturing as many odd corner cases as I can. (I just finished writing a small Python framework for expressing interleaved CVS command sequences on multiple checkouts in a way that can be easily run.)
Quoted 3 lines
It wouldn't be difficult for me to test whether these break cvs2svn. You've established that someone over there is paying attention, so I'll do that, I guess.
I look forward to your results (whether positive or negative).
Quoted 2 lines
I'm willing to share my test suite as well. Do you have your own zoo of odd cases I could test on?
Yes, we have a rather extensive test suite that includes lots of CVS perversions. See run-tests.py and the CVS repositories under test-data.
Unfortunately, the tests mostly cover only 2svn conversions, but since
most of the tricky work is in the common code that infers the CVS history, cvs2git benefits from the tests too.
This discussion is getting pretty cvs2svn-specific, so we should probably move it over to the cvs2svn-dev mailing list.
Michael
Signature · 3 lines
Michael Haggerty [email protected] http://softwareswirl.blogspot.com/
Hi,
Quoted 8 lines · Eric S. Raymond
Michael Haggerty <[email protected]>:
Quoted 3 lines
In 2009 I added tests demonstrating some of the erroneous behavior of git-cvsimport. The failing tests in t9601-t9603 are concrete examples of the problems mentioned in the manpage.
Thanks, that will be extremely useful. One of the things I'm putting effort into is building a good test suite for the tool; I may well be able to adapt your tests directly.
Back then when I was converting some repositories to git and I also wrote a quick testsuite for cvsps in an attempt to fix the bugs but gave up. That was the point when I wrote about cvsimports limitations in the documentation.
My commits can be found here:
http://repo.or.cz/w/cvsps-hv.git
I just quickly checked and it seems that it does not run cleanly on a modern Linux anymore. If it is of interest to you I can try to get it running again.
Cheers Heiko
Heiko Voigt <[email protected]>:
Quoted 5 lines
Back then when I was converting some repositories to git and I also wrote a quick testsuite for cvsps in an attempt to fix the bugs but gave up. That was the point when I wrote about cvsimports limitations in the documentation.
Quoted 7 lines
My commits can be found here:
http://repo.or.cz/w/cvsps-hv.gitI just quickly checked and it seems that it does not run cleanly on a modern Linux anymore. If it is of interest to you I can try to get it running again.
That would be helpful. Please give it some effort.
I'm going to work on merging the cvsps patches Yann Dirson has been accumulating.
Signature · 1 line
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Hi,
Quoted 8 lines · Eric S. Raymond
Heiko Voigt <[email protected]>:
Quoted 7 lines
Back then when I was converting some repositories to git and I also wrote a quick testsuite for cvsps in an attempt to fix the bugs but gave up. That was the point when I wrote about cvsimports limitations in the documentation.
My commits can be found here:
Quoted 7 lines
Quoted 5 lines
http://repo.or.cz/w/cvsps-hv.gitI just quickly checked and it seems that it does not run cleanly on a modern Linux anymore. If it is of interest to you I can try to get it running again.
That would be helpful. Please give it some effort.
Here you go. I have pushed my changes on the master branch there.
You should now be able to run my tests with
make test
from the root directory of the repository. The expected and actual output can be found in the t[0-9]{4}... directories underneath t/.
Cheers Heiko
Heiko Voigt <[email protected]>:
Quoted 21 lines
Hi,
Quoted 8 lines · Eric S. Raymond
Heiko Voigt <[email protected]>:
Quoted 7 lines
Back then when I was converting some repositories to git and I also wrote a quick testsuite for cvsps in an attempt to fix the bugs but gave up. That was the point when I wrote about cvsimports limitations in the documentation.
My commits can be found here:
Quoted 7 lines
Quoted 5 lines
http://repo.or.cz/w/cvsps-hv.gitI just quickly checked and it seems that it does not run cleanly on a modern Linux anymore. If it is of interest to you I can try to get it running again.
That would be helpful. Please give it some effort.
Here you go. I have pushed my changes on the master branch there.
Quoted 8 lines
You should now be able to run my tests with
make test
from the root directory of the repository. The expected and actual output can be found in the t[0-9]{4}... directories underneath t/.
Cheers Heiko
sr@snark:~/WWW/cvsps/fixrepos$ git clone http://repo.or.cz/w/cvsps-hv.git Cloning into 'cvsps-hv'... fatal: http://repo.or.cz/w/cvsps-hv.git/info/refs not valid: is this a git repository?
Signature · 1 line
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Quoted 3 lines · Eric S. Raymond
sr@snark:~/WWW/cvsps/fixrepos$ git clone http://repo.or.cz/w/cvsps-hv.git Cloning into 'cvsps-hv'... fatal: http://repo.or.cz/w/cvsps-hv.git/info/refs not valid: is this a git repository?
That link refers to the webpage of the repository. The clone url is found on that page. Use this address for cloning:
git://repo.or.cz/cvsps-hv.git
Cheers Heiko
Heiko Voigt <[email protected]>:
Quoted 7 lines
My commits can be found here:
http://repo.or.cz/w/cvsps-hv.gitI just quickly checked and it seems that it does not run cleanly on a modern Linux anymore. If it is of interest to you I can try to get it running again.
esr@snark:~/WWW/cvsps/fixrepos$ git clone http://repo.or.cz/w/cvsps-hv.git Cloning into 'cvsps-hv'... fatal: http://repo.or.cz/w/cvsps-hv.git/info/refs not valid: is this a git repository?
Doesn't seem to be a good day for cloning - I can't get Yann's repo either, something about HEAD pointing to an invalid reference.
Signature · 1 line
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Quoted 3 lines
esr@snark:~/WWW/cvsps/fixrepos$ git clone http://repo.or.cz/w/cvsps-hv.git Cloning into 'cvsps-hv'... fatal: http://repo.or.cz/w/cvsps-hv.git/info/refs not valid: is this a git repository?
I guess 'w' means write, and you don't have write access. You should use
http://repo.or.cz/r/cvsps-hv.git
instead. It works for me.
Antoine Pelisse <[email protected]>:
Quoted 9 lines
Quoted 3 lines
esr@snark:~/WWW/cvsps/fixrepos$ git clone http://repo.or.cz/w/cvsps-hv.git Cloning into 'cvsps-hv'... fatal: http://repo.or.cz/w/cvsps-hv.git/info/refs not valid: is this a git repository?I guess 'w' means write, and you don't have write access. You should use
http://repo.or.cz/r/cvsps-hv.gitinstead. It works for me.
OK, that got it. Looking at the tests now.
Signature · 1 line
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Quoted 1 line · Antoine Pelisse
I guess 'w' means write
No, 'w' mean gitweb.
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 3 lines · Eric S. Raymond
esr@snark:~/WWW/cvsps/fixrepos$ git clone http://repo.or.cz/w/cvsps-hv.gitFrom <http://repo.or.cz/w/cvsps-hv.git>:
URL git://repo.or.cz/cvsps-hv.git
http://repo.or.cz/r/cvsps-hv.git
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."