You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Gary Shi <ga...@gmail.com> on 2006/03/22 06:18:49 UTC

How to know from which revision a tag is copied?

For example, after I issue "svn cp http://localhost/svn/project/trunk
http://localhost/svn/project/tags/release-1.0" and after some while,
how can I tell from which revision that tag branch is created? I can
check the output of "svn log" but is there a single command?

--
regards,
Gary Shi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: How to know from which revision a tag is copied?

Posted by Nick Thompson <ni...@agere.com>.
On Wednesday 22 March 2006 20:14, Jacob Atzen wrote:
> On Wed, Mar 22, 2006 at 02:18:49PM +0800, Gary Shi wrote:
> > For example, after I issue "svn cp
> > http://localhost/svn/project/trunk
> > http://localhost/svn/project/tags/release-1.0" and after some
> > while, how can I tell from which revision that tag branch is
> > created? I can check the output of "svn log" but is there a
> > single command?
>
> svn log --stop-on-copy

I think you might want to add the -v flag to that, which forces the 
log output to show the source of the copy and the revision of the 
source that was used.

On its own, the --stop-on-copy option only reveals which revision the 
copy was created in, which is not the same thing at all.

HTH,
-- 
> Nick Thompson

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to know from which revision a tag is copied?

Posted by Dominic Anello <da...@danky.com>.
On 2006-03-22 21:14:42 +0100, Jacob Atzen wrote:
> On Wed, Mar 22, 2006 at 02:18:49PM +0800, Gary Shi wrote:
> > For example, after I issue "svn cp http://localhost/svn/project/trunk
> > http://localhost/svn/project/tags/release-1.0" and after some while,
> > how can I tell from which revision that tag branch is created? I can
> > check the output of "svn log" but is there a single command?
> 
> svn log --stop-on-copy

If you want the output to be super concise, you can do this:
[~src/5.0.0.0]$ svn log -r 1:HEAD --stop-on-copy -v -q --limit 1
------------------------------------------------------------------------
r5681 | danello | 2006-01-16 14:00:22 -0500 (Mon, 16 Jan 2006)
Changed paths:
   A /branches/eCommerce/5.0.0.0 (from /branches/eCommerce/4.10.0.0:5680)
------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to know from which revision a tag is copied?

Posted by Jacob Atzen <ja...@aub.dk>.
On Wed, Mar 22, 2006 at 02:18:49PM +0800, Gary Shi wrote:
> For example, after I issue "svn cp http://localhost/svn/project/trunk
> http://localhost/svn/project/tags/release-1.0" and after some while,
> how can I tell from which revision that tag branch is created? I can
> check the output of "svn log" but is there a single command?

svn log --stop-on-copy

-- 
Cheers,
- Jacob Atzen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org