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

Re: working from two machines

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Thu, 30 Oct 2008 14:06:04 -0500

H.S. wrote:
>
> I am working on a project which I have hosted as a repository on our
> university's network. The repository is on my home directory.
>
> Now, I either work in my lab at the univ. or from home. Till now I have
> been using my univ. computer only for svn commands (update, commit,
> etc.). I just rsync from my lab machine to my home machine when I want
> to work from home and then rsync back to update my lab machine. The
> rsync command I use at home is this:
> $> rsync -auCvze ssh ./ labmachine:~/project/
>
> However, this way I cannot give svn commands at my home machine. It
> would be nice to do so though. Basically, only my lab machine is the
> working copy in this situation.
>
> What do others do in such a situation? Sorry if this is a basic
> question. I am relatively new to SVN.
>
> I am trying to see if there is a way such that I can use both my lab
> machine and home machine copies of the source code as working copies.
> The way I understand is that when I am in the middle of some change, I
> will have to commit back from home or lab in that unfinished state,
> update my copy at home or lab and then continue working. Is this what is
> commonly done in such situations?

Unless your partially finished work would confuse someone else (and you
could branch if it would), the straightforward way is to check out 2
working copies and commit/update as you switch locations.

> Or perhaps there is way to rsync between two working copies while I am
> working on an unfinished change?

That works too - if you omit the -C option on the rsync command you'll
bring along the metadata needed to access the repository - and
subversion doesn't track where the working copy is. Either way you have
to be careful to commit/update or rsync every time you change locations.
  If you have reasonable bandwidth/latency and it is permitted, you
might try some form of remote access to the machine holding the working
copy. Remote Desktop on Windows or www.nomachine.com's NX (or the
freenx variation) for X systems can be surprisingly responsive.

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-30 20:06:32 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.