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

How to see when an item was added using svnlook?

From: Bo Berglund <bo.berglund_at_gmail.com>
Date: Mon, 01 Jan 2018 21:28:26 +0100

I am trying to use svnlook to find the revision when a directory was
created. I want to use this to dig out the timestamps of tags and
branches. My svn version is 1.9.7 (both server and client).

So far I have not found a way to do it...

svnlook history <repo> <project>/branches/<branchdir>
shows a lot of revisions which are for changes to any file within the
directory, but not the addition commit for the actual directory itself
AND unrelated directories (the command below is on one line):

D:\>svnlook history D:\SVN\test\bosse
/CVSMailer/branches/Branch_Rel_1-2-9 -l 5
REVISION PATH
-------- ----
     120 /CVSMailer/branches/Branch_Rel_1-2-9
     119 /CVSMailer/branches/Branch_Rel_1-2-9
     103 /CVSMailer/branches/Branch_Rel_1-2-9
     100 /CVSMailer/trunk
      98 /CVSMailer/trunk
... and the list continues in *trunk* for about 50 lines ...

Is there a command to show the revision when an item (directory or
file) was actually created in svn?

I have read the whole SVNBook 1.7 chapter on svnlook but did not find
an obvious candidate.

If I know the revision I can get additional information using svnlook:

D:\>svnlook info -r 699 D:\SVN\test\bosse
cvs2svn
2006-04-22 23:17:29 +0200 (lö, 22 apr 2006)
79
This commit was manufactured by cvs2svn to create tag
'Rel_1-5-2-50_20060422'.

D:\>svnlook changed -r 699 D:\SVN\test\bosse --copy-info
A + CVSMailer/tags/Rel_1-5-2-50_20060422/
    (from CVSMailer/trunk/:r698)

But lacking the revision number when it was added I cannot find the
extra info like the date...

-- 
Bo Berglund
Developer in Sweden
Received on 2018-01-01 21:29:03 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.