Skip to content

svn-fe: support for property deltas (but not text deltas yet)

Jonathan Nieder git 1 version In review

Get series with b4
b4 am 20101120004525.GA17445@burratino

Versions newest first

  1. v1 Latest15 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15vcs-svn: Check for errors from open()contrib/svn-fe/svn-fe.c test-svn-fe.c vcs-svn/svndump.c +1 more+9 -50 replies
2/15vcs-svn: Eliminate node_ctx.srcRev globalt/t9010-svn-fe.sh vcs-svn/svndump.c+166 -70 replies
3/15vcs-svn: Eliminate node_ctx.mark globalvcs-svn/svndump.c+11 -120 replies
4/15vcs-svn: Unclutter handle_node by introducing have_props varvcs-svn/svndump.c+5 -40 replies
5/15vcs-svn: Use mark to indicate nodes with included textvcs-svn/svndump.c+8 -80 replies
6/15vcs-svn: handle_node: Handle deletion case earlyvcs-svn/svndump.c+8 -30 replies
7/15vcs-svn: Replace = Delete + Addvcs-svn/svndump.c+7 -60 replies
8/15vcs-svn: Combine repo_replace and repo_modify functionsvcs-svn/repo_tree.c vcs-svn/repo_tree.h vcs-svn/svndump.c+12 -200 replies
9/15vcs-svn: Delay read of per-path propertiesvcs-svn/svndump.c+19 -230 replies
10/15vcs-svn: Reject path nodes without Node-actiont/t9010-svn-fe.sh vcs-svn/svndump.c+25 -21 reply
11/15vcs-svn: More dump format sanity checkst/t9010-svn-fe.sh vcs-svn/svndump.c+35 -46 replies
12/15vcs-svn: Make source easier to read on small screensvcs-svn/svndump.c+0 -80 replies
13/15vcs-svn: Split off function for handling of individual propertiesvcs-svn/svndump.c+19 -140 replies
14/15vcs-svn: Sharpen parsing of property linesvcs-svn/svndump.c+19 -110 replies
15/15vcs-svn: Implement Prop-delta handlingt/t9010-svn-fe.sh vcs-svn/svndump.c+144 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC/PATCH 0/15] svn-fe: support for property deltas (but not text deltas yet)

Hi,

Quoted 2 lines · Jonathan Nieder

This mini-series is part of an effort to get David and Ram's svn import work integrated into mainline git[1].

Another chapter. This one is mostly David's work. One can test it (I haven't tried) by taking out the safety

	die("text deltas not supported");

and letting it import from some real-world deltified dump file, treating deltas as the full text. Then one can validate as usual, by checking the modes of files in each revision of the imported tree.

I've done a little refactoring to more easily understand the patch, but the heart of the work is still David's. Any bugs and infelicities are probably mine (especially the evil hack to support switching between executables and symlinks).

Especially useful would be a nicer set of tests. A tool to create dump files based on a more concise description would make this and some future tasks a lot easier (hint, hint).

Thoughts? Improvements? Any of these ready to go? I can rearrange to put the uncontroversial patches at the beginning once it is clear what those are.

David Barr (1):
vcs-svn: Implement Prop-delta handling

Jonathan Nieder (14):
vcs-svn: Check for errors from open()
vcs-svn: Eliminate node_ctx.srcRev global
vcs-svn: Eliminate node_ctx.mark global
vcs-svn: Unclutter handle_node by introducing have_props var
vcs-svn: Use mark to indicate nodes with text
vcs-svn: handle_node: Handle deletion case early
vcs-svn: Replace = Delete + Add
vcs-svn: Merge repo_replace and repo_modify functions
vcs-svn: Delay read of per-path properties
vcs-svn: Reject path nodes without Node-action
vcs-svn: More dump format sanity checks
vcs-svn: Make source easier to read on small screens
vcs-svn: Split off function for handling of individual properties
vcs-svn: Sharpen parsing of property lines

 contrib/svn-fe/svn-fe.c |    3 +-
 t/t9010-svn-fe.sh       |  301 ++++++++++++++++++++++++++++++++++++++++++++++-
 test-svn-fe.c           |    3 +-
 vcs-svn/repo_tree.c     |   21 +--
 vcs-svn/repo_tree.h     |    3 +-
 vcs-svn/svndump.c       |  191 +++++++++++++++++++-----------
 vcs-svn/svndump.h       |    2 +-
 7 files changed, 436 insertions(+), 88 deletions(-)
Signature · 1 line
1.7.2.3