You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Tim Landscheidt <ti...@tim-landscheidt.de> on 2010/02/02 15:07:46 UTC

Re: Usage for svn list

Ryan Schmidt <su...@ryandesign.com> wrote:

>> Anyhow, is there a "proper" way to deduce a revision num-
>> ber from a date for a given path? At the moment (I'm brows-
>> ing the output of cvs2svn to see if the repository has been
>> converted correctly), I use "svn log --verbose" on the
>> trunk.

> Yes, you can use "svn log" to do the lookup of what revision corresponds to what date, or rather, what revision occurs immediately before the specified date. For example:

> $ svn log -r '{2010-01-01}' --limit 1 -q \
> http://svn.macosforge.org/repository/macports
> ------------------------------------------------------------------------
> r62218 | portindex@macports.org | 2009-12-31 18:54:29 -0600 (Thu, 31 Dec 2009)
> ------------------------------------------------------------------------
> $

> (The last revision committed to the MacPorts repository before January 1, 2010 was r62218 committed the evening of December 31, 2009.)
> [...]

Thanks. Could it be that the "--limit 1" parameter is redun-
dant? If I supply a single "-r" parameter (i. e. not a
range), only one entry is displayed anyhow.

Tim

Re: Usage for svn list

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 2, 2010, at 09:07, Tim Landscheidt wrote:

> Ryan Schmidt <su...@ryandesign.com> wrote:
> 
>> $ svn log -r '{2010-01-01}' --limit 1 -q \
>> http://svn.macosforge.org/repository/macports
>> ------------------------------------------------------------------------
>> r62218 | portindex@macports.org | 2009-12-31 18:54:29 -0600 (Thu, 31 Dec 2009)
>> ------------------------------------------------------------------------
>> $
> 
> Thanks. Could it be that the "--limit 1" parameter is redun-
> dant? If I supply a single "-r" parameter (i. e. not a
> range), only one entry is displayed anyhow.

Yes, you're right.