You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Patwardhan, Rajesh" <ra...@etrade.com> on 2007/09/13 21:08:43 UTC
Question about svn checkout by time
> Hi,
> 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.09.13.19.02.00
> 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....
> Thank you very much in advance for your time ...
> Regards,
> Rajesh
Re: Question about svn checkout by time
Posted by Ryan Schmidt <su...@ryandesign.com>.
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.09.13.19.02.00
> 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'
Output:
2007-08-08T21:50:40.468585Z
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: RE: Question about svn checkout by time
Posted by "Patwardhan, Rajesh" <ra...@etrade.com>.
Thanks to Ryan, I did get the reply...but missed reading it.
http://svn.haxx.se/users/archive-2007-09/0455.shtml
Regards,
Rajesh
PS: For those who may have missed too. Here is the reply ...
================================================
Im 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'
Output:
2007-08-08T21:50:40.468585Z
________________________________
From: Patwardhan, Rajesh [mailto:rajesh.patwardhan@etrade.com]
Sent: Monday, September 17, 2007 10:32 PM
To: users@subversion.tigris.org
Subject: RE: Question about svn checkout by time
Any help or pointer would be greatly appreciated...
Regards,
Rajesh
________________________________
From: Patwardhan, Rajesh [mailto:rajesh.patwardhan@etrade.com]
Sent: Thursday, September 13, 2007 2:09 PM
To: users@subversion.tigris.org
Subject: Question about svn checkout by time
Hi,
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.09.13.19.02.00
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....
Thank you very much in advance for your time ...
Regards,
Rajesh
RE: Question about svn checkout by time
Posted by "Patwardhan, Rajesh" <ra...@etrade.com>.
Any help or pointer would be greatly appreciated...
Regards,
Rajesh
________________________________
From: Patwardhan, Rajesh [mailto:rajesh.patwardhan@etrade.com]
Sent: Thursday, September 13, 2007 2:09 PM
To: users@subversion.tigris.org
Subject: Question about svn checkout by time
Hi,
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.09.13.19.02.00
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....
Thank you very much in advance for your time ...
Regards,
Rajesh