Skip to content

vcs-svn: Port to Windows

Jonathan Nieder git 1 version New

Get series with b4
b4 am 20100813234723.GC2153@burratino

Versions newest first

  1. v2 Latest5 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5compat: add strtok_r()Makefile compat/strtok_r.c config.mak.in +2 more+81 -00 replies
2/5vcs-svn: Rename dirent pool to build on Windowsvcs-svn/repo_tree.c+73 -730 replies
3/5vcs-svn: Avoid %z in format stringvcs-svn/fast_export.c+3 -20 replies
4/5t9010 (svn-fe): use Unix-style path in URIt/t9010-svn-fe.sh+1 -10 replies
5/5t9010 (svn-fe): avoid symlinks in testt/t9010-svn-fe.sh+1 -10 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by.

PatchJohannes SixtJakub Narebski
1/5A-b Helped-by
2/5
3/5
4/5
5/5A-b

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 v2 jn/svn-fe 0/5] vcs-svn: Port to Windows
Quoted 18 lines · Johannes Sixt

Am 13.08.2010 02:08, schrieb Jonathan Nieder:

Quoted 9 lines

Subject: vcs-svn: Port to Windows

MSys #define-s dirent away. Avoid trouble by avoiding that identifier.

Windows does not have strtok_r (and while does have an identical strtok_s, but it is not obvious how to use it). Grab an implementation from glibc.

Quoted 6 lines

The svn-fe test fails in the “svn export” step because of the lack of symlink support. With a less ambitious dump, it passes.

Cc Johannes Sixt <[email protected]>
Cc Ramkumar Ramachandra <[email protected]>
Quoted 5 lines

Thanks, it compiles with this patch and passes the test suite.

The license, LGPL 2.1 or later is OK, I assume?

xdiff uses it, so I think that should be fine. If not, it shouldn’t be hard to rewrite based on the man page; I only took the glibc version because it was easy to do.

Here’s a split-up patch. Patch 1 adds an autoconf test (thanks, Jakub!). Patch 2 is a little (though not much) shorter than the blind search-and-replace I sent before. This uses uint32_t instead of int in patch 3 because the vcs-svn lib uses 32-bit lengths elsewhere.

Not tested on Windows but it is not so different from v1 which was.

Thanks again for the help.

Jonathan Nieder (5):
compat: add strtok_r()
vcs-svn: Rename dirent pool to build on Windows
vcs-svn: Avoid %z in format string
t9010 (svn-fe): use Unix-style path in URI
t9010 (svn-fe): avoid symlinks in test

 Makefile              |    8 +++
 compat/strtok_r.c     |   61 ++++++++++++++++++++
 config.mak.in         |    1 +
 configure.ac          |    6 ++
 git-compat-util.h     |    5 ++
 t/t9010-svn-fe.sh     |    4 +-
 vcs-svn/fast_export.c |    5 +-
 vcs-svn/repo_tree.c   |  146 ++++++++++++++++++++++++------------------------
 8 files changed, 159 insertions(+), 77 deletions(-)
 create mode 100644 compat/strtok_r.c
Signature · 1 line
1.7.2.1.544.ga752d.dirty