Fossil SCM
Add "fossil praise" which is exactly the same as "fossil blame". As in subversion.
Commit
fb573e72030b574674e93e261deb199bc3f4a19c
Parent
866251e87839a3e…
1 file changed
+7
-5
+7
-5
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -2173,10 +2173,11 @@ | ||
| 2173 | 2173 | } |
| 2174 | 2174 | |
| 2175 | 2175 | /* |
| 2176 | 2176 | ** WEBPAGE: annotate |
| 2177 | 2177 | ** WEBPAGE: blame |
| 2178 | +** WEBPAGE: praise | |
| 2178 | 2179 | ** |
| 2179 | 2180 | ** Query parameters: |
| 2180 | 2181 | ** |
| 2181 | 2182 | ** checkin=ID The manifest ID at which to start the annotation |
| 2182 | 2183 | ** filename=FILENAME The filename. |
| @@ -2197,11 +2198,11 @@ | ||
| 2197 | 2198 | const char *zCI; /* The check-in containing zFilename */ |
| 2198 | 2199 | Annotator ann; |
| 2199 | 2200 | HQuery url; |
| 2200 | 2201 | struct AnnVers *p; |
| 2201 | 2202 | unsigned clr1, clr2, clr; |
| 2202 | - int bBlame = g.zPath[0]=='b';/* True for BLAME output. False for ANNOTATE. */ | |
| 2203 | + int bBlame = g.zPath[0]!='a';/* True for BLAME output. False for ANNOTATE. */ | |
| 2203 | 2204 | |
| 2204 | 2205 | /* Gather query parameters */ |
| 2205 | 2206 | showLog = atoi(PD("log","1")); |
| 2206 | 2207 | login_check_credentials(); |
| 2207 | 2208 | if( !g.perm.Read ){ login_needed(); return; } |
| @@ -2355,17 +2356,18 @@ | ||
| 2355 | 2356 | } |
| 2356 | 2357 | |
| 2357 | 2358 | /* |
| 2358 | 2359 | ** COMMAND: annotate |
| 2359 | 2360 | ** COMMAND: blame |
| 2361 | +** COMMAND: praise | |
| 2360 | 2362 | ** |
| 2361 | -** %fossil (annotate|blame) ?OPTIONS? FILENAME | |
| 2363 | +** %fossil (annotate|blame|praise) ?OPTIONS? FILENAME | |
| 2362 | 2364 | ** |
| 2363 | 2365 | ** Output the text of a file with markings to show when each line of |
| 2364 | 2366 | ** the file was last modified. The "annotate" command shows line numbers |
| 2365 | -** and omits the username. The "blame" command shows the user who made each | |
| 2366 | -** checkin and omits the line number. | |
| 2367 | +** and omits the username. The "blame" and "praise" commands show the user | |
| 2368 | +** who made each checkin and omits the line number. | |
| 2367 | 2369 | ** |
| 2368 | 2370 | ** Options: |
| 2369 | 2371 | ** --filevers Show file version numbers rather than check-in versions |
| 2370 | 2372 | ** -l|--log List all versions analyzed |
| 2371 | 2373 | ** -n|--limit N Only look backwards in time by N versions |
| @@ -2390,11 +2392,11 @@ | ||
| 2390 | 2392 | u64 diffFlags = 0;/* Flags to control whitespace handling */ |
| 2391 | 2393 | int fileVers; /* Show file version instead of check-in versions */ |
| 2392 | 2394 | int annFlags = 0; /* Flags to control annotation properties */ |
| 2393 | 2395 | int bBlame = 0; /* True for BLAME output. False for ANNOTATE. */ |
| 2394 | 2396 | |
| 2395 | - bBlame = g.argv[1][0]=='b'; | |
| 2397 | + bBlame = g.argv[1][0]!='a'; | |
| 2396 | 2398 | zLimit = find_option("limit","n",1); |
| 2397 | 2399 | if( zLimit==0 || zLimit[0]==0 ) zLimit = "-1"; |
| 2398 | 2400 | iLimit = atoi(zLimit); |
| 2399 | 2401 | showLog = find_option("log","l",0)!=0; |
| 2400 | 2402 | if( find_option("ignore-space-at-sol",0,0)!=0 ) diffFlags |= DIFF_IGNORE_SOLWS; |
| 2401 | 2403 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -2173,10 +2173,11 @@ | |
| 2173 | } |
| 2174 | |
| 2175 | /* |
| 2176 | ** WEBPAGE: annotate |
| 2177 | ** WEBPAGE: blame |
| 2178 | ** |
| 2179 | ** Query parameters: |
| 2180 | ** |
| 2181 | ** checkin=ID The manifest ID at which to start the annotation |
| 2182 | ** filename=FILENAME The filename. |
| @@ -2197,11 +2198,11 @@ | |
| 2197 | const char *zCI; /* The check-in containing zFilename */ |
| 2198 | Annotator ann; |
| 2199 | HQuery url; |
| 2200 | struct AnnVers *p; |
| 2201 | unsigned clr1, clr2, clr; |
| 2202 | int bBlame = g.zPath[0]=='b';/* True for BLAME output. False for ANNOTATE. */ |
| 2203 | |
| 2204 | /* Gather query parameters */ |
| 2205 | showLog = atoi(PD("log","1")); |
| 2206 | login_check_credentials(); |
| 2207 | if( !g.perm.Read ){ login_needed(); return; } |
| @@ -2355,17 +2356,18 @@ | |
| 2355 | } |
| 2356 | |
| 2357 | /* |
| 2358 | ** COMMAND: annotate |
| 2359 | ** COMMAND: blame |
| 2360 | ** |
| 2361 | ** %fossil (annotate|blame) ?OPTIONS? FILENAME |
| 2362 | ** |
| 2363 | ** Output the text of a file with markings to show when each line of |
| 2364 | ** the file was last modified. The "annotate" command shows line numbers |
| 2365 | ** and omits the username. The "blame" command shows the user who made each |
| 2366 | ** checkin and omits the line number. |
| 2367 | ** |
| 2368 | ** Options: |
| 2369 | ** --filevers Show file version numbers rather than check-in versions |
| 2370 | ** -l|--log List all versions analyzed |
| 2371 | ** -n|--limit N Only look backwards in time by N versions |
| @@ -2390,11 +2392,11 @@ | |
| 2390 | u64 diffFlags = 0;/* Flags to control whitespace handling */ |
| 2391 | int fileVers; /* Show file version instead of check-in versions */ |
| 2392 | int annFlags = 0; /* Flags to control annotation properties */ |
| 2393 | int bBlame = 0; /* True for BLAME output. False for ANNOTATE. */ |
| 2394 | |
| 2395 | bBlame = g.argv[1][0]=='b'; |
| 2396 | zLimit = find_option("limit","n",1); |
| 2397 | if( zLimit==0 || zLimit[0]==0 ) zLimit = "-1"; |
| 2398 | iLimit = atoi(zLimit); |
| 2399 | showLog = find_option("log","l",0)!=0; |
| 2400 | if( find_option("ignore-space-at-sol",0,0)!=0 ) diffFlags |= DIFF_IGNORE_SOLWS; |
| 2401 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -2173,10 +2173,11 @@ | |
| 2173 | } |
| 2174 | |
| 2175 | /* |
| 2176 | ** WEBPAGE: annotate |
| 2177 | ** WEBPAGE: blame |
| 2178 | ** WEBPAGE: praise |
| 2179 | ** |
| 2180 | ** Query parameters: |
| 2181 | ** |
| 2182 | ** checkin=ID The manifest ID at which to start the annotation |
| 2183 | ** filename=FILENAME The filename. |
| @@ -2197,11 +2198,11 @@ | |
| 2198 | const char *zCI; /* The check-in containing zFilename */ |
| 2199 | Annotator ann; |
| 2200 | HQuery url; |
| 2201 | struct AnnVers *p; |
| 2202 | unsigned clr1, clr2, clr; |
| 2203 | int bBlame = g.zPath[0]!='a';/* True for BLAME output. False for ANNOTATE. */ |
| 2204 | |
| 2205 | /* Gather query parameters */ |
| 2206 | showLog = atoi(PD("log","1")); |
| 2207 | login_check_credentials(); |
| 2208 | if( !g.perm.Read ){ login_needed(); return; } |
| @@ -2355,17 +2356,18 @@ | |
| 2356 | } |
| 2357 | |
| 2358 | /* |
| 2359 | ** COMMAND: annotate |
| 2360 | ** COMMAND: blame |
| 2361 | ** COMMAND: praise |
| 2362 | ** |
| 2363 | ** %fossil (annotate|blame|praise) ?OPTIONS? FILENAME |
| 2364 | ** |
| 2365 | ** Output the text of a file with markings to show when each line of |
| 2366 | ** the file was last modified. The "annotate" command shows line numbers |
| 2367 | ** and omits the username. The "blame" and "praise" commands show the user |
| 2368 | ** who made each checkin and omits the line number. |
| 2369 | ** |
| 2370 | ** Options: |
| 2371 | ** --filevers Show file version numbers rather than check-in versions |
| 2372 | ** -l|--log List all versions analyzed |
| 2373 | ** -n|--limit N Only look backwards in time by N versions |
| @@ -2390,11 +2392,11 @@ | |
| 2392 | u64 diffFlags = 0;/* Flags to control whitespace handling */ |
| 2393 | int fileVers; /* Show file version instead of check-in versions */ |
| 2394 | int annFlags = 0; /* Flags to control annotation properties */ |
| 2395 | int bBlame = 0; /* True for BLAME output. False for ANNOTATE. */ |
| 2396 | |
| 2397 | bBlame = g.argv[1][0]!='a'; |
| 2398 | zLimit = find_option("limit","n",1); |
| 2399 | if( zLimit==0 || zLimit[0]==0 ) zLimit = "-1"; |
| 2400 | iLimit = atoi(zLimit); |
| 2401 | showLog = find_option("log","l",0)!=0; |
| 2402 | if( find_option("ignore-space-at-sol",0,0)!=0 ) diffFlags |= DIFF_IGNORE_SOLWS; |
| 2403 |