Overview
SHA1 Hash: | d1b948b0c73f24c143b0cc2f395754fcb3ffd695 |
---|---|
Date: | 2009-09-04 19:28:12 |
User: | drh |
Comment: | Add the dont-push setting to help facilitate private branches. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/db.c from [63926039f3] to [6b2ea97719].
@@ -1432,10 +1432,13 @@ ** after commit or tag or branch creation. ** ** diff-command External command to run when performing a diff. ** If undefined, the internal text diff will be used. ** +** dont-push Prevent this repository from pushing from client to +** server. Useful when setting up a private branch. +** ** editor Text editor command used for check-in comments. ** ** http-port The TCP/IP port number to use by the "server" ** and "ui" commands. Default: 8080 ** @@ -1469,10 +1472,11 @@ */ void setting_cmd(void){ static const char *azName[] = { "autosync", "diff-command", + "dont-push", "editor", "gdiff-command", "http-port", "localauth", "clearsign",
Modified src/xfer.c from [e2586d1f32] to [299a9163c2].
@@ -894,10 +894,13 @@ Blob send; /* Text we are sending to the server */ Blob recv; /* Reply we got back from the server */ Xfer xfer; /* Transfer data */ const char *zSCode = db_get("server-code", "x"); const char *zPCode = db_get("project-code", 0); + + if( db_get_boolean("dont-push", 0) ) pushFlag = 0; + if( pushFlag + pullFlag + cloneFlag == 0 ) return; transport_stats(0, 0, 1); socket_global_init(); memset(&xfer, 0, sizeof(xfer)); xfer.pIn = &recv;