subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@apache.org>
Subject Re: How to see when an item was added using svnlook?
Date Tue, 02 Jan 2018 12:49:35 GMT
On 02.01.2018 13:29, Bo Berglund wrote:
> On Tue, 02 Jan 2018 09:59:15 +0000, Daniel Shahaf
> <d.s@daniel.shahaf.name> 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?
>>
>> 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
> I believe this only works in a working copy, not on the server in a
> hook...

Yes it does work on the server in a hook if TARGET is an URL.

$ svn log -r 0:HEAD -q -v --stop-on-copy --limit=1 https://svn.apache.org/repos/asf/subversion/branches/1.10.x
------------------------------------------------------------------------
r1817773 | julianfoad | 2017-12-11 14:22:31 +0100 (Mon, 11 Dec 2017)
Changed paths:
   A /subversion/branches/1.10.x (from /subversion/trunk:1817772)
------------------------------------------------------------------------


Of course, on the server, you can use a file:// URL to avoid looping
through HTTP(S).

-- Brane

Mime
View raw message