Fossil SCM
minor pedantic cleanup to my last commit. it was just bugging me.
Commit
59e26ebe94845245056ed07a50e338ed0fb1ce94
Parent
1e0e0753f6946c7…
1 file changed
+3
-3
+3
-3
| --- src/browse.c | ||
| +++ src/browse.c | ||
| @@ -732,21 +732,22 @@ | ||
| 732 | 732 | |
| 733 | 733 | /* |
| 734 | 734 | ** Look at all file containing in the version "vid". Construct a |
| 735 | 735 | ** temporary table named "fileage" that contains the file-id for each |
| 736 | 736 | ** files, the pathname, the check-in where the file was added, and the |
| 737 | -** mtime on that checkin. If zGlob is not NULL then only files | |
| 738 | -** matching the given glob are computed. | |
| 737 | +** mtime on that checkin. If zGlob and *zGlob then only files matching | |
| 738 | +** the given glob are computed. | |
| 739 | 739 | */ |
| 740 | 740 | int compute_fileage(int vid, char const * zGlob){ |
| 741 | 741 | Manifest *pManifest; |
| 742 | 742 | ManifestFile *pFile; |
| 743 | 743 | int nFile = 0; |
| 744 | 744 | double vmtime; |
| 745 | 745 | Stmt ins; |
| 746 | 746 | Stmt q1, q2, q3; |
| 747 | 747 | Stmt upd; |
| 748 | + if(zGlob && !*zGlob) zGlob = NULL; | |
| 748 | 749 | db_multi_exec( |
| 749 | 750 | /*"DROP TABLE IF EXISTS temp.fileage;"*/ |
| 750 | 751 | "CREATE TEMP TABLE fileage(" |
| 751 | 752 | " fid INTEGER," |
| 752 | 753 | " mid INTEGER," |
| @@ -832,11 +833,10 @@ | ||
| 832 | 833 | fossil_fatal("not a valid check-in: %s", zName); |
| 833 | 834 | } |
| 834 | 835 | style_submenu_element("Tree-View", "Tree-View", "%R/tree?ci=%T", zName); |
| 835 | 836 | style_header("File Ages", zName); |
| 836 | 837 | zGlob = P("glob"); |
| 837 | - if(zGlob && !*zGlob) zGlob = NULL; | |
| 838 | 838 | compute_fileage(rid,zGlob); |
| 839 | 839 | baseTime = db_double(0.0, "SELECT mtime FROM event WHERE objid=%d", rid); |
| 840 | 840 | zBaseTime = db_text("","SELECT datetime(%.20g%s)", baseTime, timeline_utc()); |
| 841 | 841 | @ <h2>File Ages For Check-in |
| 842 | 842 | @ %z(href("%R/info?name=%T",zName))%h(zName)</a></h2> |
| 843 | 843 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -732,21 +732,22 @@ | |
| 732 | |
| 733 | /* |
| 734 | ** Look at all file containing in the version "vid". Construct a |
| 735 | ** temporary table named "fileage" that contains the file-id for each |
| 736 | ** files, the pathname, the check-in where the file was added, and the |
| 737 | ** mtime on that checkin. If zGlob is not NULL then only files |
| 738 | ** matching the given glob are computed. |
| 739 | */ |
| 740 | int compute_fileage(int vid, char const * zGlob){ |
| 741 | Manifest *pManifest; |
| 742 | ManifestFile *pFile; |
| 743 | int nFile = 0; |
| 744 | double vmtime; |
| 745 | Stmt ins; |
| 746 | Stmt q1, q2, q3; |
| 747 | Stmt upd; |
| 748 | db_multi_exec( |
| 749 | /*"DROP TABLE IF EXISTS temp.fileage;"*/ |
| 750 | "CREATE TEMP TABLE fileage(" |
| 751 | " fid INTEGER," |
| 752 | " mid INTEGER," |
| @@ -832,11 +833,10 @@ | |
| 832 | fossil_fatal("not a valid check-in: %s", zName); |
| 833 | } |
| 834 | style_submenu_element("Tree-View", "Tree-View", "%R/tree?ci=%T", zName); |
| 835 | style_header("File Ages", zName); |
| 836 | zGlob = P("glob"); |
| 837 | if(zGlob && !*zGlob) zGlob = NULL; |
| 838 | compute_fileage(rid,zGlob); |
| 839 | baseTime = db_double(0.0, "SELECT mtime FROM event WHERE objid=%d", rid); |
| 840 | zBaseTime = db_text("","SELECT datetime(%.20g%s)", baseTime, timeline_utc()); |
| 841 | @ <h2>File Ages For Check-in |
| 842 | @ %z(href("%R/info?name=%T",zName))%h(zName)</a></h2> |
| 843 |
| --- src/browse.c | |
| +++ src/browse.c | |
| @@ -732,21 +732,22 @@ | |
| 732 | |
| 733 | /* |
| 734 | ** Look at all file containing in the version "vid". Construct a |
| 735 | ** temporary table named "fileage" that contains the file-id for each |
| 736 | ** files, the pathname, the check-in where the file was added, and the |
| 737 | ** mtime on that checkin. If zGlob and *zGlob then only files matching |
| 738 | ** the given glob are computed. |
| 739 | */ |
| 740 | int compute_fileage(int vid, char const * zGlob){ |
| 741 | Manifest *pManifest; |
| 742 | ManifestFile *pFile; |
| 743 | int nFile = 0; |
| 744 | double vmtime; |
| 745 | Stmt ins; |
| 746 | Stmt q1, q2, q3; |
| 747 | Stmt upd; |
| 748 | if(zGlob && !*zGlob) zGlob = NULL; |
| 749 | db_multi_exec( |
| 750 | /*"DROP TABLE IF EXISTS temp.fileage;"*/ |
| 751 | "CREATE TEMP TABLE fileage(" |
| 752 | " fid INTEGER," |
| 753 | " mid INTEGER," |
| @@ -832,11 +833,10 @@ | |
| 833 | fossil_fatal("not a valid check-in: %s", zName); |
| 834 | } |
| 835 | style_submenu_element("Tree-View", "Tree-View", "%R/tree?ci=%T", zName); |
| 836 | style_header("File Ages", zName); |
| 837 | zGlob = P("glob"); |
| 838 | compute_fileage(rid,zGlob); |
| 839 | baseTime = db_double(0.0, "SELECT mtime FROM event WHERE objid=%d", rid); |
| 840 | zBaseTime = db_text("","SELECT datetime(%.20g%s)", baseTime, timeline_utc()); |
| 841 | @ <h2>File Ages For Check-in |
| 842 | @ %z(href("%R/info?name=%T",zName))%h(zName)</a></h2> |
| 843 |