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

Re: updating to the specified tag?

From: Sylvain Viart <sylvain.viart_at_easyrencontre.com>
Date: 2007-09-26 09:24:28 CEST

Hi,

*From:* Hari Kodungallur

> On 9/25/07, *Sylvain Viart* wrote:
>
> Hi,
>
> Is it possible to update (not to switch or merge) to the same revision
> that were been copied into a tag?
>
> The only way to update the trunk_wc is to update the files in the
> trunk in the repository. This can be achieved only using copying files
> to trunk or merging to trunk.
>
> In this particular case though, you created the tag using the
> trunk_wc. So, updating the trunk_wc using the tag (even if
> hypothetically it was possible) would yield the same set of files,
> isn't it?
Not really, it alters the wc. svn st not empty, many added modified
files, etc. But you're right, the files are probably the same.
switching also alters the wc, and next the wc will not be on trunk anymore.

Bicking, David (HHoldings, IT) a écrit :
> What is the reason you want to update your workspace to a particular
> revision without it affecting the repository or switching to it?
> Perhaps it is to do a build?
It's for deployment purpose.

I've a dedicated trunk wc for deployment, and for now it's more that
often in mixed version states.

ex:

554 deploy/file1
554 deploy/file2
554 deploy/file3
554 deploy/file4
554 deploy/dir2/file5
559 deploy/dir2/file6
554 deploy/dir2/file7
557 deploy/file8
554 deploy/file9
 
May be I try to misuse svn... But in this context:

I've updated (svn up) only the "deploy/dir2/file6" bringing it to
revision 559.

Now I would like to take a snapshot of all revision listed here, of
course I've much more file...

What I would like to do is a bit like David said:
> Your options are:
> 1. "rollback" to revision, which is a reverse merge from HEAD to the
> desired revision. This makes your Trunk HEAD match the tag, which is
> NOT what you porport to desire.
No, because it alters the wc.

I would like to "rollback" this way :

cd deploy
svn up -r 544 .
svn up -r 557 deploy/file8
svn up -r559 deploy/dir2/file6

Now I've the wc, unmodified (svn st empty), still on trunk, and somewhat
matching the revision snapshot.
If I remember well this can be achieved with CVS tags?

cvs up -r tags
> 2. (using TSVN) "revert to revision" by right-clicking on the revision
> while in the log and chosing the option. This pulls that revision
> down to your workspace w/o affecting the repository until you commit.
Yes with only one revision, not a mixed set of revision.
I'm using svn linux command line client.

> I'm sure there is at least one other way to get the desired result.
> Item 2 looks like what you seek, and you can later "update" to get the
> HEAD and continue like normal. Personally, if I wanted to get the
> tag, I'd just switch to the TAG, do my build or whatever, then switch
> back to trunk, which is essentially the equivalent of option #2, but
> much easier.
You're on the way. :-)
Effectively if I want to update some files, so I only have to svn up -r
rev any file I want from the trunk. Especially, that way, I'm also able
to trac change in the deployment wc. svn st is still empty.

May be it's not the intended use of SVN, but how can I achieve that?

Regards,
Sylvain.
Received on Wed Sep 26 09:24:53 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.