Fossil SCM
Always print the SSH command used to implement "fossil patch push/pull". No longer require the -v option to see the ssh command. This is in the interest of full disclosure - letting the operator know what Fossi is doing behind the scenes.
Commit
97ec767f4b3de68c840603332962c7b3cf777f7b6fa1e9873e4de576cc017b0b
Parent
8cb116407933bb3…
1 file changed
+2
-4
+2
-4
| --- src/patch.c | ||
| +++ src/patch.c | ||
| @@ -700,14 +700,12 @@ | ||
| 700 | 700 | blob_appendf(&remote, "%$ patch %s%s --dir64 %z -", |
| 701 | 701 | zFossilCmd, zRemoteCmd, zForce, encode64(zDir, -1)); |
| 702 | 702 | blob_append_escaped_arg(&cmd, blob_str(&remote), 0); |
| 703 | 703 | blob_reset(&remote); |
| 704 | 704 | } |
| 705 | - if( mFlags & PATCH_VERBOSE ){ | |
| 706 | - fossil_print("# %s\n", blob_str(&cmd)); | |
| 707 | - fflush(stdout); | |
| 708 | - } | |
| 705 | + fossil_print("%s\n", blob_str(&cmd)); | |
| 706 | + fflush(stdout); | |
| 709 | 707 | f = popen(blob_str(&cmd), zRW); |
| 710 | 708 | if( f==0 ){ |
| 711 | 709 | fossil_fatal("cannot run command: %s", blob_str(&cmd)); |
| 712 | 710 | } |
| 713 | 711 | blob_reset(&cmd); |
| 714 | 712 |
| --- src/patch.c | |
| +++ src/patch.c | |
| @@ -700,14 +700,12 @@ | |
| 700 | blob_appendf(&remote, "%$ patch %s%s --dir64 %z -", |
| 701 | zFossilCmd, zRemoteCmd, zForce, encode64(zDir, -1)); |
| 702 | blob_append_escaped_arg(&cmd, blob_str(&remote), 0); |
| 703 | blob_reset(&remote); |
| 704 | } |
| 705 | if( mFlags & PATCH_VERBOSE ){ |
| 706 | fossil_print("# %s\n", blob_str(&cmd)); |
| 707 | fflush(stdout); |
| 708 | } |
| 709 | f = popen(blob_str(&cmd), zRW); |
| 710 | if( f==0 ){ |
| 711 | fossil_fatal("cannot run command: %s", blob_str(&cmd)); |
| 712 | } |
| 713 | blob_reset(&cmd); |
| 714 |
| --- src/patch.c | |
| +++ src/patch.c | |
| @@ -700,14 +700,12 @@ | |
| 700 | blob_appendf(&remote, "%$ patch %s%s --dir64 %z -", |
| 701 | zFossilCmd, zRemoteCmd, zForce, encode64(zDir, -1)); |
| 702 | blob_append_escaped_arg(&cmd, blob_str(&remote), 0); |
| 703 | blob_reset(&remote); |
| 704 | } |
| 705 | fossil_print("%s\n", blob_str(&cmd)); |
| 706 | fflush(stdout); |
| 707 | f = popen(blob_str(&cmd), zRW); |
| 708 | if( f==0 ){ |
| 709 | fossil_fatal("cannot run command: %s", blob_str(&cmd)); |
| 710 | } |
| 711 | blob_reset(&cmd); |
| 712 |