svn-fe: recognize v3 dumps
Get series with b4
b4 am 20101118050023.GA14861@burratinoVersions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | vcs-svn: Error out for v3 dumpst/ vcs-svn/ | +47 | 0 replies | |
| 1/2 | treap: make treap_insert return inserted nodetest-treap.c vcs-svn/ vcs-svn/ | +18 | 0 replies | |
| 2/2 | vcs-svn: Allow simple v3 dumps (no deltas yet)t/ vcs-svn/ | +365 | 0 replies | |
| 2/2 | vcs-svn: fix intermittent repo_tree corruptionvcs-svn/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] svn-fe: recognize v3 dumps
This mini-series is part of an effort to get David and Ram's svn import work integrated into mainline git[1]. It fixes a longstanding svn-fe bug that bit me a few times: when fed v3 (= --deltas) dumps, current svn-fe produces nonsense --- a directory full of svn-format deltas --- rather than erroring out. For example:
; git init
; svnrdump dump -r1:10 http://cvs2svn.tigris.org/svn/cvs2svn |
svn-fe |
git fast-import
; git show HEAD:trunk/README
SVN^@^@^@M-^N^D^CM-^N^DM-^@M-^N^DThis is a program to convert a CVS repository to Subversion.
After this series, svn-fe would instead die with the message "fatal:
text and property deltas not supported".
Ram and David: this code will probably look familiar. It is roughly based on David's "vcs-svn: Extend svndump to parse version 3 format" from about a month ago[2]. I would be particularly interested in hearing whether this still seems sensible in design and execution, so it can be deployed to a wider audience with your blessing if appropriate.
Thoughts? Improvements?
David Barr (1):
vcs-svn: Allow simple v3 dumps (no deltas yet)
Jonathan Nieder (1):
vcs-svn: Error out for v3 dumps
t/t9010-svn-fe.sh | 403 ++++++++++++++++++++++++++++++++++++++++++++++++++--- vcs-svn/svndump.c | 28 ++++- 2 files changed, 406 insertions(+), 25 deletions(-)
[1] http://thread.gmane.org/gmane.comp.version-control.git/160875
The dumpfile v3 code proper has been proving more trouble to review than anticipated. Mostly because it involves tracking down details of the svn repository model that aren't clearly documented in any obvious place:
* What do the five node actions (replace, delete, add, modify, unknown) represent? How can we deal with them without repeating the same code four times?
* Which actions preserve properties? Which preserve text?
[2] http://thread.gmane.org/gmane.comp.version-control.git/159117/focus=159114