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

Re: Feature suggestion: relocation-helper

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Mon, 15 Aug 2011 11:59:50 +0200

On Friday 12 August 2011, you wrote:
> On 09.08.2011 12:24, Ulrich Eckhardt wrote:
> > Hi!
> >
> > We have recently moved our SVN repos from foo.example.com to
> > bar.example.net. I have several dozen working copies here, so I'm
> > relocating a lot. I noticed two things:
> >
> > 1. The history is useless, since it always includes both the repository
> > and the path inside the repository. This doesn't make sense to me, since
> > the only thing I can change with a "switch --relocate" should be the
> > repository URL but not the path inside the repository.
> >
> > 2. I get a button "..." there. The button opens a repository browser
> > which stalls until it finds that the former server doesn't exist any
> > more. Further, I believe it would offer me the path inside the
> > repository as well which I believe isn't very useful, see above.
> >
> > What I would like is if the dialog offered just the repository URL and
> > offered recently-used repository URLs as history. For extra bonus points
> > you could offer just those as history than have the same UUID, but I
> > don't think that many user have too many repositories there anyway. The
> > button to open a repository browser is IMHO superfluous here and could
> > be removed.
>
> Using the TSVN repo as an example:
> imagine someone had a working copy checked out from
> http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/www
> now that needed to be relocated to the new place:
> https://tortoisesvn.googlecode.com/svn/trunk/www
>
> As you can see, both 'trunk' and 'www' are folders inside the repository.
> So we have to include paths inside a repository.

No you don't:

   svn relocate --switch \
      http://tortoisesvn.tigris.org/svn \
      https://tortoisesvn.googlecode.com/svn \
      path/to/WC

The path inside the repo that the WC references doesn't matter, you only want
to inform the WC that the root of the repo changed location.

> If you really only want the repository urls, then I guess you're one of
> very very few who check out the whole repository, not just trunk or a
> branch or even a subfolder.

Sorry for the misunderstanding, but that's not what I meant. Quoting the SVN
manpage:

 | This is used when repository's root URL changes (such as a scheme
 | or hostname change) but your working copy still reflects the same
 | directory within the same repository.

There are two points here:
1. The repo's root URL changes.
2. The directory within the repository doesn't.

The relocate dialog offers both for change, but changing the path inside the
repository is not useful and not even supported according to the manpage. For
that reason, it should only offer that part of the URL for change that
represents the repository root.

Hope that clears it...

Cheers!

Uli

-- 
ML: http://tortoisesvn.tigris.org/list_etiquette.html
FAQ: http://tortoisesvn.net/faq
**************************************************************************************
Domino 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.dominolaser.com
**************************************************************************************
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. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2821096
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-08-15 11:50:42 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.