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

Re: Listing peg versions?

From: Lorenz <lorenznl_at_yahoo.com>
Date: 2006-12-19 08:19:21 CET

Hi Byron,

>I have a directory that has been created and deleted a few times in its
>history. How do I find the peg versions of each?

if you mean: "each last revision before the directory has been
deleted", then you need to look though the output of "svn log -v URL"
for lines having a "D" in the forth column followed by the path toyour
directory.

I'd use something like:

        svn log -v URL | gawk "/^r[0-9]+ \|/ {rev=$1}; /^...D
path\/to\/your\/dir\/here/ {print rev, $0}"

(that should be one line)

I'm using gawk here, because that's what I familiar with, but there
other test processing tools/languages out there (grep, perl, ...)

HTH
     Lorenz

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 19 13:12:03 2006

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.