[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Pre connect hook to relocate a working copy prior committing/updating?

From: Wayne Johnson <wayne_at_zk.com>
Date: Wed, 9 Jan 2013 13:59:35 -0800

Apology in advance for breaking the threading on this message.

>>> Would it be possible to use a small pre connect script in tortoise
svn, in which the repository is relocated if it needs to, to solve the
problem?
>>> I am open to all other suggestions
>>
>> I think the best way to solve this would be to edit your hosts file and
>> just add the DNS to your local ip in there.
>
>I was going to suggest that, but then there would be no daily
>relocate, so I'm assuming this working copy is on a laptop that
>sometimes needs to access the repo on the local network (at home) and
>sometimes remotely (from work). I don't know a lot about DNS, but
>maybe you can set up a DNS server on the homelinux machine (and
>disable DNS on the router) with that specific entry routed and
>everything else falling back to an external DNS server.
>
>You could do it by editing the hosts file on the laptop, but you would
>need to edit it each time you change location.
>
>Simon

Maybe the information here:
http://superuser.com/questions/262799/how-to-launch-a-command-on-network-c
onnection-disconnection

Could help you figure out how to automate the hosts file update on network
connection. This describes how to run a task when a specific network is
available.

Wayne

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3042231

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-01-09 22:59:44 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.