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

Re: -r{DATE} with cvs-like relative dates?

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2005-09-18 18:17:12 CEST

On Fri, 2005-09-16 at 09:24 -0600, Warren Young wrote:
> Is there a reason Subversion doesn't yet support fuzzy dates like
> "yesterday", or "3 weeks ago"? This is the only thing about CVS that I
> miss in Subversion. It makes backing up to a previous state in an ad
> hoc way much easier.
>
> Reasons you might want this:
>
> - you want to see what happened since yesterday: svn diff -r{yesterday}
>
> - you're trying to find out when a feature was inadvertently broken, so
> you use a binary search between the date of the last release and today:
>
> svn up -r{21 days ago}
> ...check...
> svn up -r{10 days ago}
> ...check...
> svn up -r{5 days ago}
> ...check...ah, it's broken here...
> svn up -r{7 days ago}
> ...etc...
>

Just FYI, this use case is not necessary with subversion, like it is
with CVS, since you have global revision numbers.

You simply binary search between revnum of last release and now.
That will give you an exact revision number instead of a fuzzy time like
CVS does.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Sep 18 18:18:44 2005

This is an archived mail posted to the Subversion Users mailing list.