Comments (3)
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.
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.
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)
- crap-clone gives up when encountering "malformed version" HOT 7
- Does not compile on Mac OS X 10.9 HOT 4
- Relative paths to local CVS repositories HOT 1
- Problem importing CVS module HOT 13
- Relative path patch reverted HOT 2
- Leaving a dirty working tree after incremental import HOT 3
- New tip does not contain ... warning message HOT 4
- Does not compile with C99 HOT 5
- Segfault in fill_in_versions_and_parents() for version without '.' HOT 5
- Not an issue, just deep thank you! HOT 4
- A commit renaming a file with only a change of case breaks crap-clone on Cygwin HOT 4
- fatal error: pipeline.h: No such file or directory HOT 1
- crap fails to notice my password in .cvspas HOT 4
- Attempt to open a non-existent file HOT 2
- Support specifying a pserver password via the command-line
- Don't just accept git-forbidden tags HOT 1
- Fails to get a specific revision of a specific file HOT 3
- `libpipeline-devel` is not available on Centos8 stream. HOT 1
- No files after import HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crap.