|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
update and checkout hook scripts
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:
Is there an easier way to achieve what I'm trying to do? Gunther |
|
|
RE: update and checkout hook scriptsHi Gunther,
Changing the contents of a transaction in a hook script is
discouraged.
My suggestion would be to provide a vb/shell script in the
project to be run by the developer after checkout.
Don't try to automate it. It could be more trouble than
it's worth.
Thanks LakshmanFrom: Gunther Mayer [mailto:gunther.mayer@...] Sent: Sunday, 1 November 2009 10:45 PM To: users@... Subject: update and checkout hook scripts 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:
Is there an easier way to achieve what I'm trying to do? Gunther ================================================================================================ EMAIL DISCLAIMER This email and any attachments are confidential. They may also be subject to copyright. If you are not an intended recipient of this email please immediately contact us by replying to this email and then delete this email. You must not read, use, copy, retain, forward or disclose this email or any attachment. We do not accept any liability arising from or in connection with unauthorised use or disclosure of the information contained in this email or any attachment. We make reasonable efforts to protect against computer viruses but we do not accept liability for any liability, loss or damage caused by any computer virus contained in this email. ================================================================================================ |
| Free embeddable forum powered by Nabble | Forum Help |