[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: Bob Proulx <bob_at_proulx.com>
Date: 2005-09-21 18:16:32 CEST

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.

GNU date will handle these for you.

> svn up -r{10 days ago}

This works:

  svn up -r{"$(date -d '10 days ago' '+%F %T')"}

Note that the date --iso-8601 option is deprecated. A new --rfc-3339
will appear in the future. So I would avoid that format (suggested in
the svn docs) until things settle.

Bob

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

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