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

Re: Downgrade repository's version (1.4->1.3) without losing local modifications

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: Thu, 27 May 2010 09:12:47 +0200

On Wednesday 26 May 2010, Sergei Dyshel wrote:
> I have a single checked out SVN repository, shared between 2 machines (lets
> call them A and B). Until now I was using it only on A which has SVN 1.3
> installed. Today I updated it on B which has version 1.4 installed. It
> turned out that repository's internal structure's version was bumped from
> 1.3 to 1.4 and now I can't work with it on A.

Yes. Generally, don't share working copies.

> Unfortunately I can't upgrade SVN's version on A (and can't even install my
> local version of SVN) so I have to downgrade repository back to 1.3
> somehow.
> Is there a way to do it without losing numerous modifications I've done?
> (and without committing too, I have read-only access...)

There is one thing I would mention here: You are making obviously important
modifications without version control. Yes, even though you use SVN, _your_
numerous changes aren't versioned!

Solution A: If you can't change the repository because it is an upstream one
you simply don't have access to, you can still create a local repository and
import the upstream sources as a vendor branch. The documentation actually
covers this use case.

Solution B: If you can change the repository but you don't want, because your
changes aren't stable yet, you should create a branch. When eventually done,
you can then merge your changes back to trunk. It also makes it easier for
others to read and understand your changes when they are in small, separate
pieces if possible.

That said, don't share working copies. However, that first requires that you
have a repository that you can change in order to propagate changes between
the working copies, and for that either of the above two solutions work.

Good luck!

Uli

-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Received on 2010-05-27 09:13:25 CEST

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.