[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: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Wed, 9 Jan 2013 00:09:18 +0000

On 8 January 2013 18:59, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
> On 08.01.2013 09:14, Fabian Trampusch wrote:
>> Hi!
>> I've got a problem with the access to my repository.
>> I've set up a svn repository on my homelinux.
>> It it is behind a router.
>> If i try to access the server from work i use a dynamic DNS to resolve the external IP of my homelinux, it is behind a router.
>> When i am at home i need to relocate the working copy to use the internal IP of the svn server, because the router doesn't forward the internal request to my external ip.
>> When i am the next day at work i have to relocate the repository again to use the dynamic DNS again.
>> I want to automate the relocate process.
>> 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.


:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-01-09 01:09:24 CET

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