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

Re: problem with dialog box uisng Tortoisesvn

From: Ryan Schmidt <subversion-2012c_at_ryandesign.com>
Date: Wed, 12 Sep 2012 07:22:28 -0500

On Sep 12, 2012, at 06:12, Carmit Shiran <carmit.shiran_at_gmail.com> wrote:

> Do you know if there's a way to know what is the current tag I'm working on? Meaning: If I want to use 'svn copy' on the file I'm working on now without sending the argument of the source file but only the tag name, is it possible to send the 'current file path' as the first argument?
> For instance, if the user doesn't know on what tag he's working on, assuming he's not working on the 'trunk' but rather on 'tag= Release_60'. And now he wants to copy 'Release_60' to 'Release_61'. But he doesn't know he's working on 'Release_60'. How do I find out using svn command lines?

The user runs "svn info" and examines the output to discover what tag he's working on.

Usually one wouldn't be "working on" a tag though. Tags are supposed to be considered as read-only entities. You "work on" branches or trunk.

> If you look at my example I sent in the previous email, you can see I filled in the argument= $target_path :
> my $target_path = "file:///C:/svn_repos3/trunk/Widget3"
> But I'm looking for a way to fill it automatically with the "current path/tag".
> Is it possible?

Sure, you could write a script to extract that information out of "svn info".
Received on 2012-09-12 14:23:11 CEST

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.