Fossil Forum

timeline - all commits in a year for a given tag
Login

timeline - all commits in a year for a given tag

timeline - all commits in a year for a given tag

(1) By sean (jungleboogie) on 2022-01-04 18:00:06 [source]

Hi,

This URL will show me all commits that are tagged with "release": https://fossil-scm.org/home/timeline?t=release

How can I further filter this to show commits for a given year? Looks like we can show yearMonth, yearWeek, and a specific day. Do I need to give a range?

Thanks!

(2) By Stephan Beal (stephan) on 2022-01-04 18:23:17 in reply to 1 [link] [source]

How can I further filter this to show commits for a given year? Looks like we can show yearMonth, yearWeek, and a specific day. Do I need to give a range?

It supports several variation of that but apparently not just the year:

   ym=YYYY-MM      Show only events for the given year/month
   yw=YYYY-WW      Show only events for the given week of the given year
   yw=YYYY-MM-DD   Show events for the week that includes the given day
   ymd=YYYY-MM-DD  Show only events on the given day. The use "ymd=now"
                   to see all changes for the current week.

i'll take a look at that. Since we have the ym/etc filtering, it is presumably a simple change to add a year filter. It will have to be called something other than "y", as "y" is for the timeline event type (checkin, ticket, etc.).

(3.1) By JohnQSmith on 2022-01-04 18:27:21 edited from 3.0 in reply to 1 [link] [source]

Check out "a" and "b" (or even "c") in the help.

Edit: I didn't try it so don't know if they stack (can be used together in combination).

(4.1) By JohnQSmith on 2022-01-04 18:35:15 edited from 4.0 in reply to 3.1 [link] [source]

Yes, it works.

Example of "release" tags in 2021: https://fossil-scm.org/home/timeline?t=release&a=20210101&b=20211231

Edit: Ugh... typos.

(5) By sean (jungleboogie) on 2022-01-04 18:34:47 in reply to 3.0 [link] [source]

That does seem to work:

https://fossil-scm.org/home/timeline?t=release&a=2021-01-01&b=2021-12-31

I won't stop Stephan from adding a specific query just for the year, though. ;)

(6) By Stephan Beal (stephan) on 2022-01-04 18:53:28 in reply to 5 [link] [source]

I won't stop Stephan from adding a specific query just for the year, though. ;)

If you were going to try, it's too late ;). Please try out checkin f8681a9c062042d8 and report any problems. It's not, as of this writing, yet deployed on the main repo.

Management summary:

/timeline?year=YYYY

Use year 0 for the current year.

When using multiple time-based filters, which one(s) get(s) applied is unspecified any may change in any given fossil version, so please don't rely on any given multi-time-filter combinations working.