Fossil SCM

Rename the "fossil chat backup" command to "fossil chat pull".

drh 2022-02-18 20:49 trunk
Commit 8ee8f03a77f23d3630c6c0264f08cdeb42b960efb263534067f27fc02b55bbec
1 file changed +5 -3
+5 -3
--- src/chat.c
+++ src/chat.c
@@ -822,10 +822,12 @@
822822
** WEBPAGE: chat-backup hidden
823823
**
824824
** Download an SQLite database containing all chat content with a
825825
** message-id larger than the "msgid" query parameter. Setup
826826
** privilege is required to use this URL.
827
+**
828
+** This is used to implement the "fossil chat pull" command.
827829
*/
828830
void chat_backup_webpage(void){
829831
int msgid;
830832
unsigned char *pDb = 0;
831833
sqlite3_int64 szDb = 0;
@@ -868,14 +870,14 @@
868870
** the response is to bring up a web-browser window to the chatroom
869871
** on the default system web-browser. You can accomplish the same by
870872
** typing the appropriate URL into the web-browser yourself. This
871873
** command is merely a convenience for command-line oriented people.
872874
**
873
-** > fossil chat backup
875
+** > fossil chat pull
874876
**
875877
** 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.
877879
**
878880
** --all Download all chat content. Normally only
879881
** previously undownloaded content is retrieved.
880882
** --debug Additional debugging output.
881883
** --out DATABASE Store CHAT table in separate database file
@@ -1023,11 +1025,11 @@
10231025
fossil_print("ERROR: %s\n", blob_str(&down));
10241026
}
10251027
fossil_fatal("unable to send the chat message");
10261028
}
10271029
blob_reset(&down);
1028
- }else if( strcmp(g.argv[2],"backup")==0 ){
1030
+ }else if( strcmp(g.argv[2],"pull")==0 ){
10291031
/* Pull the CHAT table from the default server down into the repository
10301032
** here on the local side */
10311033
int allowUnsafe = find_option("unsafe",0,0)!=0;
10321034
int bDebug = find_option("debug",0,0)!=0;
10331035
const char *zOut = find_option("out",0,1);
10341036
--- 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

Keyboard Shortcuts

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