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

Re: How to see when an item was added using svnlook?

From: Branko Čibej <brane_at_apache.org>
Date: Tue, 2 Jan 2018 11:37:49 +0100

On 02.01.2018 10:59, Daniel Shahaf wrote:
> Branko Čibej wrote on Tue, 02 Jan 2018 09:42 +0100:
>> On 01.01.2018 21:28, Bo Berglund wrote:
>>> Is there a command to show the revision when an item (directory or
>>> file) was actually created in svn?
>> Currently the only hack to do this is by using 'svn log --stop-on-copy'
>> in a working copy.
> Wouldn't 'svn log --stop-on-copy URL' work?

It would ... I just didn't want to confuse the issue by introducing the
not-so-subtle difference between the "client" and the "working copy."

> There's also this (not immediately obvious) command for showing the
> revision that created TARGET at that location, via a copy or otherwise:
>
> svn log -r 0:HEAD -q -v --stop-on-copy --limit=1 -- TARGET

Indeed, that's a better hack.

-- Brane
Received on 2018-01-02 11:37:53 CET

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.