Subversion dump parsing library
Get series with b4
b4 am 20100624105004.GA12336@burratinoVersions newest first
- v2 Latest9 patches 25 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | Export parse_date_basic() to convert a date string to timestampcache.h date.c | +7 | 1 reply | |
| 2/9 | Introduce vcs-svn libMakefile | +7 | 1 reply | |
| 3/9 | Add memory pool libraryMakefile vcs-svn/ vcs-svn/ | +108 | 5 replies | |
| 4/9 | Add treap implementationMakefile vcs-svn/ vcs-svn/ +1 more | +314 | 2 replies | |
| 5/9 | Add string-specific memory poolMakefile vcs-svn/ vcs-svn/ | +131 | 1 reply | |
| 6/9 | Add stream helper libraryMakefile vcs-svn/ vcs-svn/ | +110 | 2 replies | |
| 7/9 | Add infrastructure to write revisions in fast-export formatMakefile vcs-svn/ vcs-svn/ +2 more | +453 | 4 replies | |
| 8/9 | Add SVN dump parserMakefile vcs-svn/ vcs-svn/ +1 more | +304 | 1 reply | |
| 9/9 | Add a sample user for the svndump librarycontrib/ contrib/ contrib/ +1 more | +165 | 5 replies |
Reviews trailers per patch
4 of 9 patches have a Reviewed-by or Acked-by.
| Patch | Ramkumar Ramachandra |
|---|---|
| 1/9 | A-b |
| 2/9 | A-b |
| 3/9 | |
| 4/9 | |
| 5/9 | R-b |
| 6/9 | |
| 7/9 | |
| 8/9 | R-b |
| 9/9 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH/RFC v2 0/9] Subversion dump parsing library
Hi gitsters,
Ram last sent this series a couple of weeks ago[1], and it was merged to pu then as rr/svn-export. Here’s another iteration of the same for discussion, now including David Barr’s program that demonstrates the functionality.
Patch 1 is not so closely related; it just modifies parse_date_toffset() to keep me a little saner while using it.
Patches 2-8 are very similar to the versions Ram sent. I expanded the commit messages, took the latest code fromgit://github.com/barrbrain/svn-dump-fast-export where possible, and added a simple example build system so one can see the result of compiling with
make vcs-svn/lib.a
Probably more interesting is what the patches do not do:
- they do not include any tests
- they do not remove the persistent object pool functionality. If you try this code out, be sure to remove all the .bin files from the current directory after each run.
- they are not guaranteed to have fewer bugs than the version Ram sent. In fact, the opposite is more likely, since the code is only lightly tested
You can try it out with
; cd contrib/svn-fe
; wget http://github.com/barrbrain/svn-dump-fast-export/raw/master/test.dump
; make svn-fe
; ./svn-fe <test.dump
or
; make svn-fe.1
; man ./svn-fe.1
and go from there.
Any feedback is appreciated, especially on how to make this fit better with git. I would be particularly interested in making vcs-svn/lib.a self-sufficient --- that is, would there be a simple way to pull out the required code from date.c?
David Barr (5):
Add memory pool library
Add string-specific memory pool
Add stream helper library
Add infrastructure to write revisions in fast-export format Add SVN dump parser
Jason Evans (1):
Add treap implementation
Jonathan Nieder (3):
Export parse_date_basic() to convert a date string to timestamp Introduce vcs-svn lib
Add a sample user for the svndump library
Makefile | 12 ++- cache.h | 1 + contrib/svn-fe/.gitignore | 3 + contrib/svn-fe/Makefile | 63 +++++++++ contrib/svn-fe/svn-fe.c | 43 ++++++ contrib/svn-fe/svn-fe.txt | 56 ++++++++ date.c | 14 +- vcs-svn/LICENSE | 33 +++++ vcs-svn/fast_export.c | 75 ++++++++++ vcs-svn/fast_export.h | 14 ++ vcs-svn/line_buffer.c | 93 +++++++++++++ vcs-svn/line_buffer.h | 14 ++ vcs-svn/obj_pool.h | 80 +++++++++++ vcs-svn/repo_tree.c | 335 +++++++++++++++++++++++++++++++++++++++++++++ vcs-svn/repo_tree.h | 26 ++++ vcs-svn/string_pool.c | 114 +++++++++++++++ vcs-svn/string_pool.h | 15 ++ vcs-svn/svndump.c | 289 ++++++++++++++++++++++++++++++++++++++ vcs-svn/svndump.h | 8 + vcs-svn/trp.h | 220 +++++++++++++++++++++++++++++ vcs-svn/trp.txt | 90 ++++++++++++ 21 files changed, 1589 insertions(+), 9 deletions(-) create mode 100644 contrib/svn-fe/.gitignore create mode 100644 contrib/svn-fe/Makefile create mode 100644 contrib/svn-fe/svn-fe.c create mode 100644 contrib/svn-fe/svn-fe.txt create mode 100644 vcs-svn/LICENSE create mode 100644 vcs-svn/fast_export.c create mode 100644 vcs-svn/fast_export.h create mode 100644 vcs-svn/line_buffer.c create mode 100644 vcs-svn/line_buffer.h create mode 100644 vcs-svn/obj_pool.h create mode 100644 vcs-svn/repo_tree.c create mode 100644 vcs-svn/repo_tree.h create mode 100644 vcs-svn/string_pool.c create mode 100644 vcs-svn/string_pool.h create mode 100644 vcs-svn/svndump.c create mode 100644 vcs-svn/svndump.h create mode 100644 vcs-svn/trp.h create mode 100644 vcs-svn/trp.txt
[1] http://thread.gmane.org/gmane.comp.version-control.git/148866