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

Re: stick to an old file

From: Kylo Ginsberg <kylo.ginsberg_at_gmail.com>
Date: 2007-03-14 04:00:12 CET

On 3/13/07, Ryan Schmidt <subversion-2007a@ryandesign.com> wrote:
> On Mar 13, 2007, at 20:46, Steven Woody wrote:
> > if i found a recent file in the repository get some problem and i want
> > to use one of its old revision as well as keeping other files as their
> > latest, so what do i do in svn? the 'svn -rxxx co' command only
> > supports directory rather than single file. you see, my requirement
> > is some like the stick option of cvs's update command.
>
> I don't know CVS or it's stick option. But perhaps you are looking
> for "svn up -r$REV $FILE"

svn doesn't have the equivalent of non-branch sticky tags in cvs (a
good thing IMHO). The downside of the "svn up -r" approach for your
problem is that a subsequent "svn up" will put you back to the current
unwanted version.

Another possibility is to merge in the old version:
svn merge -r HEAD:$REV $FILE

Now you can do updates without picking up the unwanted file, *but*
unlike a cvs sticky tag, you can commit the modified version to the
repository. This may or may not be what you want.

Kylo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 14 04:00:40 2007

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.