Ben Collins-Sussman wrote:
> I don't think this is a Subversion bug, because it doesn't call
> GetTickCount() anywhere at all. I think it is more likely a bug in
> Cygwin's "unix translation" layer. My suspicion is that Subversion
> calls the APR time functions to get the current system time, then APR
> calls the standard unix time functions, and then Cygwin translates the
> unix call into a windows GetTickCount().
I see. I'll explain this to Corinna Vinschen, maybe she can fix this in
Cygwin.
> How about this: don't run an svn server under cygwin. There's
> absolutely no reason to use cygwins hack-y "translation" layer when
> true, 100% native windows binaries are available. Sure, cygwin is
> generally convenient, and so is the 'native' cygwin svn client. But
> for something as important as a server process, I wouldn't trust
> cygwin any farther than I can throw it.
Accepted. I set up the Cygwin server for two reasons: I wanted to use
the pysvn bindings which are much simpler than the Python bindings that
come with Subversion and I needed a system to compile it (Cygwin). This
approach didn't work very well, and now I'm using pre-commit-check.py as
a starting point for my pre-commit validations. Second reason was not
to have to do MSDOS .bat file programming. Since we will move our
repository to a different server in a few days, that well be an
opportunity to change to the native Windows binary.
CHANGE REQUEST:
===============
Currently, hook scripts on Windows are invoked as pre-commit.bat or
pre-commit.exe but nothing else (example for pre-commit). Could this
be changed to a Windows-like behaviour? Instead of trying just ".bat"
and ".exe", each extension listed in the $PATHEXT should be tried. The
Windows cmd.exe works this way.
Hook scripts could then be written as pre-commit.py with ".PY" added to
$PATHEXT for instance, allowing the hook script to be written in Python
in this case.
Oh, I noticed that svnserve is started with an empty environment, so
the PATHEXT approach wouldn't work, but what about an option
svnserve --pathext ".bat;.exe;.py" .....
Regards,
Servatius
------------------------------------------------------------------------
Servatius Brandt Phone: +49 89 636-41504
Fujitsu Siemens Computers Fax: +49 89 636-48716
EP SW AD C++ Email: Servatius.Brandt@fujitsu-siemens.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 6 17:47:04 2005