Sync SVN repo from local to server?

So, I have this local SVN repo that I use to work on my device on a specific project, and I also have the SVN repo setup on the client temple account in the vault for a more secure backup.

I do all my development on my laptop, so I don’t always have an Internet connection (hence, local SVN), so I was wondering if there is an easy way to push the changes that I make to my local repo on the server repo?

+4
source share
6 answers

You probably want to use svn merge versions between repositories.

There are some useful guides on how you can do this. Check out http://blog.red-bean.com/sussman/?p=92 or http://subversion.tigris.org/faq.html#multi-merge for a good introduction to this topic

+3
source

I know this stretches, but what you are trying to do is not necessarily suitable for Subversion, as it is a centralized version control system (only one master copy of the repository).

Git is a distributed version control system that will allow you to commit autonomous commits, delimit and merge. You have to check it out.

+3
source

You just have to merge SVN.

+1
source

You can use Bazaar as a local repository and then return to the central SVN server. Bazaar has some good plugins for integrating distributed source control into an existing client-server source control system.

+1
source

If you are stuck with an SVN server, but want a local repository and simple synchronization between them, you must use SVK . It creates a local mirror that can be forked; oblige the mirror to merge with the trunk again.

+1
source

So, the solution I came across is to use the svnadmin dump / load functions. I mainly use this with a Ruby on Rails project, which I deploy to a media stored account. The idea is that when the new version of the site is ready for deployment, the code that is checked in my local repository will be dumped to a file, this file will be copied to the server via ssh. Once on the server, I will use ssh to run a shell script that uploads to the SVN server. Then I will check this server code, copy it to the rails application directory, start the migration, and restart the server.

The idea is that with this method, I can guarantee that the code that is currently in production reflects the latest revision of SVN repo servers.

Thanks for Fernando for providing a link to dump / load functions.

For the record, I appreciated the Git solution before I posted this question, and because I use NetBeans as my IDE for this project (NetBeans have a really great Ruby / RoR plugin), the Git plugin for NB looks like- it’s not good and doesn’t work perfectly right, while the SVN plugin is robust.

0
source

Source: https://habr.com/ru/post/1277505/


All Articles