Thursday, 19 September 2013

Get UTC date of last commit

Get UTC date of last commit

I'm trying to put together a bash/sh script that gets the UTC time of the
last commit from a svn repo (the other VCSs are easy) I understand that i
can just do svn propget --revprop -rHEAD svn:date and get it rather
easily, but there is no guarantee that the svn checkout will be online, so
I'd prefer an offline version, if possible.
Maybe something to do with getting the UTC time from svn info? (by
screwing with the timezones)
Summary: How can i get the UTC time of a svn commit, while not having
access to the server?
Thanks

No comments:

Post a Comment