[Bug 5307] New: Support shorthand for date ranges relative to today

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Jul 19 20:16:25 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5307

            Bug ID: 5307
           Summary: Support shorthand for date ranges relative to today
           Product: Mercurial
           Version: stable branch
          Hardware: PC
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: joshgold at alum.mit.edu
                CC: mercurial-devel at selenic.com

I would like to be able to specify the range from 200 to 100 days ago like so:
  date(-200 to -100)

The best way I know to do this is "date(-200) and not date(-100)"

I'm not sure if it's most natural to include day -200 and exclude day -100, or
to include both -- but I would probably include both (unlike my workaround) for
consistency with other ranges.

With this capability, one could easily, for instance step back through a repo
checking for date(-100), then date(-200 to -100) then date(-300 to -200)...
without missing any changes.


I'll add that if I scratch my head I can see that the documentation is actually
correct, although I spent a while thinking it was inconsistent for not
supporting this format.  It's correct because "date(-200)" is really a date
*range*, not a date, so it doesn't fit in

     - "DATE to DATE" - a date range, inclusive

Until I thought that hard, though, I expected (and certainly wished) it to be
allowed.

If this is changed, the help should probably be changed as well

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list