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

RE: Previous revision before move at new location

From: Giulio Troccoli <giulio.troccoli_at_uk.linedata.com>
Date: Thu, 5 Nov 2009 08:53:29 +0000

>

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

-----Original Message-----

> From: Patrick Kulle [mailto:pkulle_at_gmx.de]
> Sent: 04 November 2009 17:06
> To: users_at_subversion.tigris.org
> Subject: Previous revision before move at new location
>
> Dear list,
>
> I'm currently investigating on switching from CVS to SVN for
> our projects in the office. Now I stumbled over a problem
> that I wasn't able to solve by checking the book, FAQ,
> colleagues or Google. Maybe you can help.
>
> Assume the following scenario.
>
> - There is a certain history on all objects (r1 to r199)
> - At some point of time (r200) a directory is renamed in the
> repository ("svn move ^/trunk/foo ^/trunk/bar")
> - The development goes on (r201 to ...)
> - Someone wants to use trunk/bar/somefile.c with the code from r100 at
> the current location.
>
> a) If the moving in r200 would not have happened 'someone' could
> simply go back locally by "svn up -r100 somefile.c". But in the
> above scenario this would just remove the file.
>
> b) What he could do is "svn merge -r HEAD:100 somefile.c". But in this
> case there is no easy way of tracking/seeing which revision is 'in'
> somefile.c now. It is just locally modified.
>
> Is there some way to get a behavior like in a) just in the
> new location?
>

I believe you want to use peg revision. Something like the following should work in your case

svn export <URL to repo>/trunk/foo/somefile.c_at_100

Check the book for a full explanation on peg revisions.

Giulio

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414641

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-05 09:54:27 CET

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.