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

Re: Question about svn checkout by time

From: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-09-13 23:31:07 CEST

On Sep 13, 2007, at 16:08, Patwardhan, Rajesh wrote:

> Scenario: cvs co "09/10/2007 19:02 UTC" module_name
> Now if I do a
> cvs stat module_name/filename
> I see a sticky date
> Sticky Date: 2007.
> I am wondering if I do the same in svn
> Svn co -r{2007-09-10T19:02Z-07:00} modulename
> I get the revisions etc properly (if I look at the svn info for the
> checkout) but how do I get the time I used for the checkout in the
> first place.
> Getting a revision number is of no great use since it is a very
> abstract value.
> We use this for internal build process or checkouts and would help
> to have the time displayed in my workspace in some way….

I'm not familiar with CVS. But if you want to know the timestamp of a
particular revision, that can be easily parsed out of the output of
"svn info" or "svn log", with or without the --xml switch. For example:

svn log http://svn.collab.net/repos/svn/ -q -r 26000 --xml \
| sed -n -E 's%.*<date>(.*)</date>.*%\1%p'



To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 13 23:30:01 2007

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.