Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C797C105E5 for ; Wed, 3 Dec 2014 13:19:17 +0000 (UTC) Received: (qmail 80269 invoked by uid 500); 3 Dec 2014 13:19:17 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 80235 invoked by uid 500); 3 Dec 2014 13:19:17 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 80222 invoked by uid 99); 3 Dec 2014 13:19:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2014 13:19:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2014 13:19:13 +0000 Received: by mail-wi0-f177.google.com with SMTP id l15so24370577wiw.4 for ; Wed, 03 Dec 2014 05:18:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kJuiluWJs/Khx4N4qoN83GdvbOy8wgknUjChdewI25I=; b=fs5GZCP78qNTh0Th2DHDcq7+wNvYM8s/nTGHb3szXt9VkComNl8bc6D+5Adr2yW6OG KKE9s3XcIkOubjOcVgOfPrN26M2ULI/MOPyOinNRashly6oevSorIpiIzjLL1w7QIIXf fINnsvrFianxmt2qH9Bp+K445qPJk2YWnS18ekPs3c2vpr7KKGwlGvydtfWGx3vRBaYa toTvD6f3+KCTvFWe67fjkvh7ttlHSNhr9RTtqtQcBb+p0gLZlZyEiY+srz/a89+poeyf /lcgpAHVFbAq8rKSmKl4aBPfmrNBCrAHwlJSCnUBnFDSSz6ZpFWJICzCRP2Pxrwn/fiT tkqw== MIME-Version: 1.0 X-Received: by 10.195.11.68 with SMTP id eg4mr7384345wjd.18.1417612687216; Wed, 03 Dec 2014 05:18:07 -0800 (PST) Received: by 10.194.138.101 with HTTP; Wed, 3 Dec 2014 05:18:07 -0800 (PST) In-Reply-To: <20141203130041.GO22601@ted.stsp.name> References: <20141203130041.GO22601@ted.stsp.name> Date: Wed, 3 Dec 2014 13:18:07 +0000 Message-ID: Subject: Re: Problems with selecting log revision by date: -r {yyyy-mm-dd} From: sebb To: sebb , users@subversion.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On 3 December 2014 at 13:00, Stefan Sperling wrote: > On Wed, Dec 03, 2014 at 12:22:02PM +0000, sebb wrote: >> I cannot get the examples in the manual to work. >> They don't produce any output apart from the separator. >> >> Is this a known bug? >> >> How to reproduce: >> >> svn co --depth files https://svn.apache.org/repos/asf/subversion/trunk >> subversion >> >> $ svn log -l 10 subversion >> -- this works OK >> >> $ svn log -r {2014-11-30} subversion >> ------------------------------------------------------------------------ >> $ svn log -r {2014-11-30T00:00:00} subversion >> ------------------------------------------------------------------------ >> >> This was tried on minotaur, using >> >> svn, version 1.7.9 (r1462340) >> compiled Jun 3 2013, 11:33:48 >> >> I have the same problems with the following version >> >> svn, version 1.8.10 (r1615264) >> compiled Aug 11 2014, 11:33:45 on x86_64-apple-darwin13.0.0 >> >> ================= >> >> There's also a minor documentation error, the manual says: >> >> If you want to include the 27th in your search, you can either specify >> the 27th with the time ({"2006-11-27 23:59"}), or just specify the >> next day ({2006-11-28}). >> >> The phrase "the next day" should be "the previous day" or "the day before" > > Date search doesn't work on the ASF repository because svn:date properties > of revisions aren't monotonically increasing. > > See the note at the very bottom of http://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html#svn.tour.revs.dates This says: "... If this ordering isn't maintained, you will likely find that trying to use dates to specify revision ranges in your repository doesn't always return the data you might have expected." Although this may be strictly true, it's not immediately obvious that nothing might be returned. It would be helpful if the docs made it a lot clearer that date selection may not work at all. This should be stated at the start of the section, rather than a note at the bottom. Is the ASF repo unusual in not having monotonic dates? Or is this a common occurrence (as I suspect)? Further, it would help if SVN returned some indication that dates cannot be used on the particular repository. Though ideally of course it would be nice if the feature worked across all SVN installations.