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

Re: specifying revisions using their distance (in days) from the current date

From: Peter Hercek <peter_at_syncad.com>
Date: 2004-07-29 00:58:53 CEST

----- Original Message -----
From: <kfogel@collab.net>
Newsgroups: gmane.comp.version-control.subversion.user
Cc: <users@subversion.tigris.org>
Sent: Wednesday, July 28, 2004 12:51
Subject: Re: specifying revisions using their distance (in days) from the current date

> I like it. If you add support for year/month, you could have an
> optional character after what is currently the day number:
> {-3dT12:30}
> {-3mT12:30}
> {-3yT12:30}
> Also, how do you want it to behave when two timestamps are give, that
> is:
> svn CMD -r{DATE1}:{DATE2}
> What if exactly one of those dates is in your new format? And what if
> *both* are?

Hmmm, I'm not committed to implement it myself. I want to add it into
 the issue list at least if more people think it is a good idea. I may implement
 it sometimes; although I do not have idea how code contributions are
 done here yet :)

I'm not sure about d, m, and y sufixes. I would not have any use for them in
 my ussage patterns. I would be using this more in situations when I know
 that something worked a few days ago and want to quickly check what
 changed from *about* that time. I'm not even sure whether hours and
 minutes options should be added at all.

The whole reason I think about extension at all is that it is easier to think
 in terms of "a few days ago" than in terms "on this date". Oh, and it is
 also less to type :)

As for as two dates on command line: both would be relative to the currnet
 time. It is just to keep it simple. If one of the dates should be relative
 to the other one, then we would need more prefixes:
* relative to the current time
* relative to the other time; add the value
* relative to the other time; substract the value
Looks to me complicated already.

BTW, if you have installed perl (not common on win32) there is
 a nice workaround form Eric Hanchrow:

> #!/usr/bin/env perl
> use warnings;
> use strict;
> my $since_when=shift;
> my $zdate = qx(date --utc +%Y-%m-%dT%XZ --date='$since_when');
> die unless $zdate;
> chomp $zdate;
> exec ("svn", "log", "-r{$zdate}:HEAD", @ARGV);

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 29 02:42:59 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.