[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: Steven Woody <narkewoody_at_gmail.com>
Date: 2007-03-14 04:03:38 CET

On 3/14/07, Kylo Ginsberg <kylo.ginsberg@gmail.com> wrote:
> 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
>

thank you Kylo, i think you're right. i am going to read the chapter
four of svn-book grabing some merging knowledge.

-- 
woody
then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.
---------------------------------------------------------------------
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:03:59 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.