Skip to content

Subversion dump parsing library

Jonathan Nieder git 1 version In review

Get series with b4
b4 am 20100624105004.GA12336@burratino

Versions newest first

  1. v2 Latest9 patches 25 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Export parse_date_basic() to convert a date string to timestampcache.h date.c+7 -81 reply
2/9Introduce vcs-svn libMakefile+7 -11 reply
3/9Add memory pool libraryMakefile vcs-svn/LICENSE vcs-svn/obj_pool.h+108 -15 replies
4/9Add treap implementationMakefile vcs-svn/LICENSE vcs-svn/trp.h +1 more+314 -12 replies
5/9Add string-specific memory poolMakefile vcs-svn/string_pool.c vcs-svn/string_pool.h+131 -21 reply
6/9Add stream helper libraryMakefile vcs-svn/line_buffer.c vcs-svn/line_buffer.h+110 -22 replies
7/9Add infrastructure to write revisions in fast-export formatMakefile vcs-svn/fast_export.c vcs-svn/fast_export.h +2 more+453 -24 replies
8/9Add SVN dump parserMakefile vcs-svn/LICENSE vcs-svn/svndump.c +1 more+304 -21 reply
9/9Add a sample user for the svndump librarycontrib/svn-fe/.gitignore contrib/svn-fe/Makefile contrib/svn-fe/svn-fe.c +1 more+165 -05 replies

Reviews trailers per patch

4 of 9 patches have a Reviewed-by or Acked-by.

PatchRamkumar Ramachandra
1/9A-b
2/9A-b
3/9
4/9
5/9R-b
6/9
7/9
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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 from
git://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