Giter Club home page Giter Club logo

Comments (3)

rcls avatar rcls commented on September 8, 2024

Ugh. You are having fun. I am not sure I will find time to work on this, but you may be able to work around the problem without changing crap-clone:

The quickest way to ignore the attic files may well be to make a copy of your repo, delete all the Attic/*,v files and run crap-clone on the result.
[Please understand the consequences of doing this - a file is in the attic if it has been deleted (or never existed) on the trunk. It may still be present on a branch.]

Slightly more work would be to attempt to use 'rcs -o' (or 'cvs admin -o') to remove the broken revisions from the ',v' files. Again, I recommend doing that on a copy of the cvs repo, at least until you understand the consequences.

If you feel like attempting the crap-clone change yourself, do something like the following: In crap-clone.c, about line 115, function read_version(), don't call fatal() when the error is detected. Instead, close and reopen the CVS connection, and return.

Then at the end of grab_version() about line 241 of crap-clone.c, if we have failed to retrieve the version, then instead of calling fatal(), set version->mark = parent->version->mark. (The latter should be filled in by then).

NB. It is very likely completely essential to close and re-open the CVS connection after an error, even if it looks like both sides have recovered. CVS maintains working state on the server side, and it is likely that state is invalid after an error.

from crap.

PerMildner avatar PerMildner commented on September 8, 2024

Thanks. I just removed the offending ',v' files (there were two, both in Attic) so now it looks as if our CVS repo, with history from 1994, can be migrated to git. Nice!

from crap.

sylvandb avatar sylvandb commented on September 8, 2024

I see this is still a problem :(

So far this tool has been awesome, I'm going to try and fix the ',v' and see... otherwise I may work on fixing crap-clone!

Edit: I was able to "fix" my ',v' file (identified the bad version using cvs up -p -r# then found line numbers part way thru that file were off by 1, causing the last change for that version to extend past the end of the file).

Crap-clone is by far the best cvs conversion I've found!

from crap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.