How to synchronize local svn with official svn?
hi all,
I have a question about using svn: how can i synchronize the local copy with the local svn and official svn?
for examle:
1. i checkout the official grub2 from SA (svn://svn.sv.gnu.org/grub/trunk/grub2) to LD (/home/grub2);
2. and then, i create a local site to host the grub2 - SB ( i.e. svn://local/grub2 ),
now, i can 'Relocate' LD's url to SB, and 'Update' LD to SB. here, i get a local svn copy, and can do anythings but the synchronization from SA.
so, how to synchronize local svn with official svn? any suggestion?
Y.Volta
Quoted 4 lines · y.volta
hi all,
I have a question about using svn: how can i synchronize the local copy with the local svn and official svn?
I've solved that problem by using a different source control tool for the local repository. Currently I'm using git, in other cases I've used CVS. That way each revision control program keeps track of their own revisions in its own files which don't conflict with the other. Synchronization is, commit local changes, update remote, commit remote changes to local repository.
Signature · 2 lines
David Fries <[email protected]> http://fries.net/~david/ (PGP encryption key available)
Quoted 14 lines · On Sun, 10 Aug 2008 09:42:39 +0800 "y.volta" <[email protected]> wrote:
hi all,
I have a question about using svn: how can i synchronize the
local copy with the local svn and official svn? for examle:1. i checkout the official grub2 from SA
(svn://svn.sv.gnu.org/grub/trunk/grub2) to LD (/home/grub2);2. and then, i create a local site to host the grub2 - SB ( i.e.
svn://local/grub2 ),
now, i can 'Relocate' LD's url to SB, and 'Update' LD to SB.
here, i get a local svn copy, and can do anythings but the synchronization from SA.
Quoted 4 lines
so, how to synchronize local svn with official svn? any
suggestion?Y.Volta
Well, I'm not sure since you are kind of creating a local mirror, it sounds like... and Subversion is not a distributed version control system. However, if you want to have full distributed VCS features, you can do what I do and use the Bazaar VCS (bzr) with the 'bzr-svn' plugin, which allows seamless access to svn branches as if they were bzr branches. And then you can use bzr (which is a DVCS like git or hg) to make local branches and merge changes back and forth between your branch and the bzr-svn branch which is the upstream GRUB. It's really easy, all I had to do was install bzr, the bzr-svn plugin, and then do:
bzr branch svn://svn.savannah.gnu.org/grub/trunk/grub2
and that created a local 'grub2' branch with full history from the svn branch. (This takes quite a while the first time. But bzr-svn caches all the history data in ~/.bazaar/svn-cache so it only has to do the full download once.
Anyway, that's one solution that works great if you want distributed version control features. Otherwise, I'll let someone with more recent svn experience help you (I haven't used svn myself for the past 2 years since I discovered bzr...).
Regards,
Colin