Hi guys,
I've run into the following challenge: I manage kml (Google Earth) files
through my repository and need to get absolute paths within them to work
transparently across linux and windows platforms. Google Earth itself
cannot treat "C:\repo\myimage.jpg" identical to "/repo/myimage.jpg" so I
have to do some magic in my repository by choosing a server side scheme
(the unix paths) and transparently converting the paths back to windows
paths on windows clients.
Can anybody think of a creative, low-overhead solution to this problem?
I thought commit-hooks are the answer but I need it in two places:
* post-commit on the server to translate windows to unix paths with
sed (I know that leaves me with stale client issues but I'll just
have to be careful in the step below) - this is fairly easy to achieve
* pre- or post- update/checkout somewhere which translates the paths
back to the windows scheme
The latter is the tricky part because if I run it on the server, not
only do I need special svn support which isn't available (although I saw
proposed patches for pre-checkout hooks on this list sometime ago they
seemingly were never committed) but I also need some way of telling
whether the connecting client is a Windows one (also not supported
afaik). If I try do to do this on the client then I'm limited by the
availability of client side hook scripts which afaik are only supported
in TortoiseSVN, plus I'll have to ensure that I change the corresponding
.svn/text-base/ file at the same time to avoid the above client
consistency issues.
Is there an easier way to achieve what I'm trying to do?
Gunther
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2413411
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-01 13:15:57 CET