Re: [PATCH] -r { DATE } with words
From: Neels J Hofmeyr <neels_at_elego.de>
Date: Fri, 20 May 2011 16:28:55 +0200
On 05/18/2011 09:38 PM, Branko Čibej wrote:
I liked 'yesterday' as 'yesterday' == 'one day ago', even add 'fortnight'
BUT, why don't we just use standardized unit letters? e.g. {-1d} means one
[-+]<float-nr>[YyMDdHhmSs]
(M = months, m = minutes, the others are case insensitive)
svn log -r {-1.5d}
Heh and we'd drop the '+' too, I guess, making the '-' optional.
svn log -r {1y} -r {+1M}
(get the log from one year ago to a month after that.)
svn log -r {-1d} -r {5M}
(get the log from five months and a day ago until five months ago.)
If I were to write this feature, this would be my choice. stsp?
~Neels
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.