Totois Svn Create Local

Posted on

Subversion: is it possible to commit local revisions without pushing them, and push them at a later date - or is the lack of this feature why it's called 'centralized' ?

Sometimes you may want to create a local copy without any of those.svn directories, e.g. To create a zipped tarball of your source. Read the section called “Exporting a Subversion Working Copy” to find out how to do that. May 25, 2011  Creating SVN trunk within current repository. If you're using command-line SVN, you need to create the directory using the 'svn mkdir' and move the files using 'svn move'. Don't try to do the creates and the moves with OS commands - SVN won't know that you've done it.

Adrian PanasiukAdrian Panasiuk
5,4434 gold badges26 silver badges50 bronze badges
Tortoisesvn create local server

8 Answers

It is not possible to do local commits with Subversion.

This is because, as a centralized version control system, your local working copy does not have all the information the server has about past revisions, log entries, etc. which it would have had if it was a Distributed Version Control System (DVCS).

A subversion working copy contains a copy of all files as they were checked out so you can revert changed files without contacting the server.

If you really want to do local commits you should have a look at SVK, which is built on top of Subversion and provides DVCS like features.

user
2,5293 gold badges26 silver badges55 bronze badges
arturharturh
4,5273 gold badges30 silver badges44 bronze badges

Much of the above has become somewhat obsolete, and since this question comes up as a hit in a google search for 'svn local commit' here's an update:

Consider using the package 'git-svn' (along with 'git-gui' if you don't know git) to make local commits both possible and easy, with full remote SVN integration. A decent overview/tutorial/use-case is here. I've just started using this process with Sourceforge projects, so I can't yet report any problems. Be sure to get the Authors file right!

EDIT: Updated link. Thanks, hdl!

BobCBobC
1,7654 gold badges19 silver badges27 bronze badges

You could do such a thing so if you interface the SVN Server with a GIT or Mercurial Bridge. Since GIT and Mercurial are able to do local Commits you could then use them like that. Maybe check out git-svn or something similiar (I remember there being a bazaar-svn but not sure).

SideshowcoderSideshowcoder

That is why it is called centralized. You could try using a repo inside a repo. One is local and the other is remote. You then commit the entire inner repository to the remote.

Manuel FerreriaManuel Ferreria
9991 gold badge10 silver badges23 bronze badges

As others have said, no.

I would strongly recommend trying to use anything remotely janky with svn.

I haven't used SVK enough to recommend against it, it seemed nice enough. However I am skeptical of using anything built on top of SVN for an entire project without anything breaking. I have use SVN enough to know that even regular work cycles can toast it if you're not careful.

We use SVN at work. I have been using bzr and bzr-svn to do all my interaction with and it works wonderfully. My workflow is something like:

$ bzr branch file:///var/svn/project ~/project

(hack, hack, hack)

$ bzr commit -m 'commit log'(repeat)

when I'm ready

$ bzr push

Shani Maharaj is a great devotee of Lord Shiva and Lord Vishnu. Hindi In Sanskrit Shani is called Sanischara, which means, “slowA rainbow is most often viewed as a circular arc in the sky. Shri Shani Mahatmya describes the story of Shani’s life. A rainbow is an excellent demonstration of the dispersion of light.

Yes, instead of updating you have $ bzr merge and commit change (possibly shelving what you are working on) but local commits are a very nice thing, and shelving is too (shelving is like revert with a save)

I think git handles this as well. I've heard it is not as complete as bzr-svn, but I can not corroborate that.

But using a DVCS with a svn repository is a good way to go!

jskulskijskulski
1,9202 gold badges16 silver badges26 bronze badges

Further to BobC's answer, for mercurial you would use hgsubversion.

SethSeth
4,29212 gold badges62 silver badges95 bronze badges

No! git however can do this, and you can use git-svn tokeep in sync with the original repository.

Rhythmic FistmanRhythmic Fistman
25.1k4 gold badges59 silver badges115 bronze badges

To get the best of both worlds, SVK was built on top of Subversion, but maintaining local state so you can do local commits..

StoborStobor
34.2k5 gold badges54 silver badges59 bronze badges

Not the answer you're looking for? Browse other questions tagged svncommit or ask your own question.

i want to move my local repository to http but i couldn't create or move repository. How can i do it? I am using tortoise svn.

Thanks..

bilalbilal
1951 gold badge5 silver badges16 bronze badges

3 Answers

Tortoisesvn Create Local Copy

Actually i don't understand 'move local repo to http', http is a protocol, http deamon/server can serve files over network (using http protocol).

So I understand that you'd like to have your svn repo content available over http, am i right?Tortoise is just svn repo client.So you have to have, repository server.ie. apache + svn modules.

Here I've googled some tut:http://www.howtoforge.com/apache_subversion_repository

Edit:

create root repo on your ie. linux machine using:

svnadmin create

If you want HTTP use apache servermanual http://svnbook.red-bean.com/en/1.0/ch06s04.htmlI won't copy it, since it's step by step howto.

Simpler solution without apache (then you'd use URL's and its internal protocol)set up your server using:

svnserve -d -r /usr/local/repositories

now you could write some access rights on your repo in config filesand access:

Tortoisesvn Create Local Account

svn checkout svn://host.example.com/project1

Complete manual manI won't copy it, since it's step by step howto.

buabua
3,9891 gold badge18 silver badges28 bronze badges

If the remote machine is a Microsft machine try VisualSVN Server.If you are the only user and don't want to use a server, try it like described here

Good luck :)

HoggyHoggy

See my question on SF: https://serverfault.com/questions/96113/read-only-svn-on-apache2-under-windows there you will find example of Apache configs to setup SVN repo over http

Community

Tortoisesvn Create Repository On Remote Server

abatishchevabatishchev
71.4k70 gold badges269 silver badges399 bronze badges

Not the answer you're looking for? Browse other questions tagged svntortoisesvn or ask your own question.