You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Peter Jakab <ja...@rogers.com> on 2006/02/14 14:38:05 UTC

Newbie question - Commit same file to two repositories?

Since I spend a lot of time on the road I would like to have this setup in subversion:

1) A repository on my laptop, so as I make changes on the road (with no internet access) I can keep in control of my changes.
2) A repository on my server somewhere in the office, so when I come back from my trip I can take my latest committed code and commit it to that repository.

Is this possible?  If so what would be the best way to set this up.

Any suggestions/solutions greatly appreciated.

Peter.

Re: Newbie question - Commit same file to two repositories?

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Tue, 14 Feb 2006 09:38:05 -0500, "Peter Jakab" <ja...@rogers.com>
wrote:

>1) A repository on my laptop, so as I make changes on the road (with 
> no internet access) I can keep in control of my changes.
>2) A repository on my server somewhere in the office, so when I come
> back from my trip I can take my latest committed code and commit it
> to that repository.
>
>Is this possible?  If so what would be the best way to set this up.

How important is the history of the changes you make when you are
away? If you need them, you need svk - http://svk.elixus.org/

If no idea if the following will work, but if you can throw away the
history of the changes you make out of the office, you could try
messing around with the SVN_ASP_DOT_NET_HACK -
http://subversion.tigris.org/svn_1.3_releasenotes.html#_svn-hack. 

I'm thinking of;

1. Checkout wc from office repository. Meta data stored in .svn.
2. Enable SVN_ASP_DOT_NET_HACK. Checkout wc from local repos in the
same folder. Meta data stored in _svn.
3. Work on local repos, committing changes, etc. to local repository
(using the _svn directory).
4. Return to office, disable SVN_ASP_DOT_NET_HACK, and commit the
chanegs you've made as one large chunk to the office repository, using
the .svn directory.

OK, you'll lose any meta-data changes to the files, but it may be
easier to setup than svk. 

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Newbie question - Commit same file to two repositories?

Posted by William Nagel <bi...@stagelogic.com>.
On Feb 14, 2006, at 9:38 AM, Peter Jakab wrote:

> Since I spend a lot of time on the road I would like to have this  
> setup in subversion:
>
> 1) A repository on my laptop, so as I make changes on the road  
> (with no internet access) I can keep in control of my changes.
> 2) A repository on my server somewhere in the office, so when I  
> come back from my trip I can take my latest committed code and  
> commit it to that repository.
>
> Is this possible?  If so what would be the best way to set this up.

It is not readily possible with SVN by itself.  However, there is a  
project called SVK that is built on top of SVN and designed to do  
exactly what you want.  I've not used it, but I've heard good things  
from those I know who have.

http://svk.elixus.org/

-Bill

>
> Any suggestions/solutions greatly appreciated.
>
> Peter.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org