Fossil SCM
Rename the "fossil chat backup" command to "fossil chat pull".
Commit
8ee8f03a77f23d3630c6c0264f08cdeb42b960efb263534067f27fc02b55bbec
Parent
e983a7dc9329621…
1 file changed
+5
-3
+5
-3
| --- src/chat.c | ||
| +++ src/chat.c | ||
| @@ -822,10 +822,12 @@ | ||
| 822 | 822 | ** WEBPAGE: chat-backup hidden |
| 823 | 823 | ** |
| 824 | 824 | ** Download an SQLite database containing all chat content with a |
| 825 | 825 | ** message-id larger than the "msgid" query parameter. Setup |
| 826 | 826 | ** privilege is required to use this URL. |
| 827 | +** | |
| 828 | +** This is used to implement the "fossil chat pull" command. | |
| 827 | 829 | */ |
| 828 | 830 | void chat_backup_webpage(void){ |
| 829 | 831 | int msgid; |
| 830 | 832 | unsigned char *pDb = 0; |
| 831 | 833 | sqlite3_int64 szDb = 0; |
| @@ -868,14 +870,14 @@ | ||
| 868 | 870 | ** the response is to bring up a web-browser window to the chatroom |
| 869 | 871 | ** on the default system web-browser. You can accomplish the same by |
| 870 | 872 | ** typing the appropriate URL into the web-browser yourself. This |
| 871 | 873 | ** command is merely a convenience for command-line oriented people. |
| 872 | 874 | ** |
| 873 | -** > fossil chat backup | |
| 875 | +** > fossil chat pull | |
| 874 | 876 | ** |
| 875 | 877 | ** Copy chat content from the server down into the local clone, |
| 876 | -** as a backup. Setup privilege is required on the server. | |
| 878 | +** as a backup or archive. Setup privilege is required on the server. | |
| 877 | 879 | ** |
| 878 | 880 | ** --all Download all chat content. Normally only |
| 879 | 881 | ** previously undownloaded content is retrieved. |
| 880 | 882 | ** --debug Additional debugging output. |
| 881 | 883 | ** --out DATABASE Store CHAT table in separate database file |
| @@ -1023,11 +1025,11 @@ | ||
| 1023 | 1025 | fossil_print("ERROR: %s\n", blob_str(&down)); |
| 1024 | 1026 | } |
| 1025 | 1027 | fossil_fatal("unable to send the chat message"); |
| 1026 | 1028 | } |
| 1027 | 1029 | blob_reset(&down); |
| 1028 | - }else if( strcmp(g.argv[2],"backup")==0 ){ | |
| 1030 | + }else if( strcmp(g.argv[2],"pull")==0 ){ | |
| 1029 | 1031 | /* Pull the CHAT table from the default server down into the repository |
| 1030 | 1032 | ** here on the local side */ |
| 1031 | 1033 | int allowUnsafe = find_option("unsafe",0,0)!=0; |
| 1032 | 1034 | int bDebug = find_option("debug",0,0)!=0; |
| 1033 | 1035 | const char *zOut = find_option("out",0,1); |
| 1034 | 1036 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -822,10 +822,12 @@ | |
| 822 | ** WEBPAGE: chat-backup hidden |
| 823 | ** |
| 824 | ** Download an SQLite database containing all chat content with a |
| 825 | ** message-id larger than the "msgid" query parameter. Setup |
| 826 | ** privilege is required to use this URL. |
| 827 | */ |
| 828 | void chat_backup_webpage(void){ |
| 829 | int msgid; |
| 830 | unsigned char *pDb = 0; |
| 831 | sqlite3_int64 szDb = 0; |
| @@ -868,14 +870,14 @@ | |
| 868 | ** the response is to bring up a web-browser window to the chatroom |
| 869 | ** on the default system web-browser. You can accomplish the same by |
| 870 | ** typing the appropriate URL into the web-browser yourself. This |
| 871 | ** command is merely a convenience for command-line oriented people. |
| 872 | ** |
| 873 | ** > fossil chat backup |
| 874 | ** |
| 875 | ** Copy chat content from the server down into the local clone, |
| 876 | ** as a backup. Setup privilege is required on the server. |
| 877 | ** |
| 878 | ** --all Download all chat content. Normally only |
| 879 | ** previously undownloaded content is retrieved. |
| 880 | ** --debug Additional debugging output. |
| 881 | ** --out DATABASE Store CHAT table in separate database file |
| @@ -1023,11 +1025,11 @@ | |
| 1023 | fossil_print("ERROR: %s\n", blob_str(&down)); |
| 1024 | } |
| 1025 | fossil_fatal("unable to send the chat message"); |
| 1026 | } |
| 1027 | blob_reset(&down); |
| 1028 | }else if( strcmp(g.argv[2],"backup")==0 ){ |
| 1029 | /* Pull the CHAT table from the default server down into the repository |
| 1030 | ** here on the local side */ |
| 1031 | int allowUnsafe = find_option("unsafe",0,0)!=0; |
| 1032 | int bDebug = find_option("debug",0,0)!=0; |
| 1033 | const char *zOut = find_option("out",0,1); |
| 1034 |
| --- src/chat.c | |
| +++ src/chat.c | |
| @@ -822,10 +822,12 @@ | |
| 822 | ** WEBPAGE: chat-backup hidden |
| 823 | ** |
| 824 | ** Download an SQLite database containing all chat content with a |
| 825 | ** message-id larger than the "msgid" query parameter. Setup |
| 826 | ** privilege is required to use this URL. |
| 827 | ** |
| 828 | ** This is used to implement the "fossil chat pull" command. |
| 829 | */ |
| 830 | void chat_backup_webpage(void){ |
| 831 | int msgid; |
| 832 | unsigned char *pDb = 0; |
| 833 | sqlite3_int64 szDb = 0; |
| @@ -868,14 +870,14 @@ | |
| 870 | ** the response is to bring up a web-browser window to the chatroom |
| 871 | ** on the default system web-browser. You can accomplish the same by |
| 872 | ** typing the appropriate URL into the web-browser yourself. This |
| 873 | ** command is merely a convenience for command-line oriented people. |
| 874 | ** |
| 875 | ** > fossil chat pull |
| 876 | ** |
| 877 | ** Copy chat content from the server down into the local clone, |
| 878 | ** as a backup or archive. Setup privilege is required on the server. |
| 879 | ** |
| 880 | ** --all Download all chat content. Normally only |
| 881 | ** previously undownloaded content is retrieved. |
| 882 | ** --debug Additional debugging output. |
| 883 | ** --out DATABASE Store CHAT table in separate database file |
| @@ -1023,11 +1025,11 @@ | |
| 1025 | fossil_print("ERROR: %s\n", blob_str(&down)); |
| 1026 | } |
| 1027 | fossil_fatal("unable to send the chat message"); |
| 1028 | } |
| 1029 | blob_reset(&down); |
| 1030 | }else if( strcmp(g.argv[2],"pull")==0 ){ |
| 1031 | /* Pull the CHAT table from the default server down into the repository |
| 1032 | ** here on the local side */ |
| 1033 | int allowUnsafe = find_option("unsafe",0,0)!=0; |
| 1034 | int bDebug = find_option("debug",0,0)!=0; |
| 1035 | const char *zOut = find_option("out",0,1); |
| 1036 |