Fossil SCM

In the Checkins By File report, use filenames as the secondary sort key.

drh 2015-01-27 03:10 UTC trunk
Commit 840343d4be1774bb37a0e0e6aab38ef82b32019c
1 file changed +1 -1
+1 -1
--- src/statrep.c
+++ src/statrep.c
@@ -471,11 +471,11 @@
471471
" FROM filename, mlink"
472472
" WHERE filename.fnid=mlink.fnid"
473473
" GROUP BY 1"
474474
);
475475
db_prepare(&query,
476
- "SELECT filename, cnt FROM statrep ORDER BY cnt DESC /*sort*/"
476
+ "SELECT filename, cnt FROM statrep ORDER BY cnt DESC, filename /*sort*/"
477477
);
478478
mxEvent = db_int(1, "SELECT max(cnt) FROM statrep");
479479
@ <h1>Checkins Per File</h1>
480480
@ <table class='statistics-report-table-events' border='0'
481481
@ cellpadding='2' cellspacing='0' id='statsTable'>
482482
--- src/statrep.c
+++ src/statrep.c
@@ -471,11 +471,11 @@
471 " FROM filename, mlink"
472 " WHERE filename.fnid=mlink.fnid"
473 " GROUP BY 1"
474 );
475 db_prepare(&query,
476 "SELECT filename, cnt FROM statrep ORDER BY cnt DESC /*sort*/"
477 );
478 mxEvent = db_int(1, "SELECT max(cnt) FROM statrep");
479 @ <h1>Checkins Per File</h1>
480 @ <table class='statistics-report-table-events' border='0'
481 @ cellpadding='2' cellspacing='0' id='statsTable'>
482
--- src/statrep.c
+++ src/statrep.c
@@ -471,11 +471,11 @@
471 " FROM filename, mlink"
472 " WHERE filename.fnid=mlink.fnid"
473 " GROUP BY 1"
474 );
475 db_prepare(&query,
476 "SELECT filename, cnt FROM statrep ORDER BY cnt DESC, filename /*sort*/"
477 );
478 mxEvent = db_int(1, "SELECT max(cnt) FROM statrep");
479 @ <h1>Checkins Per File</h1>
480 @ <table class='statistics-report-table-events' border='0'
481 @ cellpadding='2' cellspacing='0' id='statsTable'>
482

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button