Fossil

View Ticket
Login

View Ticket

2011-08-23
15:14 Fixed ticket [13fd567b51]: "new branch --private" tries to push plus 1 other change ... (artifact: a06b4bafe6 user: drh)
15:14
Do not auto-push when creating a new private branch. Ticket [13fd567b51fac8] ... (check-in: 649efeb43d user: drh tags: trunk)
01:52 Ticket [13fd567b51] "new branch --private" tries to push status still Open with 2 other changes ... (artifact: 02c0ee60b3 user: dmitry)
2011-07-10
18:42 New ticket [13fd567b51]. ... (artifact: 42fe684163 user: anonymous)

Ticket Hash: 13fd567b51fac826aa1ffcdfa70e27715a7a9172
Title: "new branch --private" tries to push
Status: Fixed Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: Fixed
Last Modified: 2011-08-23 15:14:41
14.61 years ago
Created: 2011-07-10 18:42:38
14.73 years ago
Version Found In: [0448438c56] 2011-05-28 18:51:22 UTC
Description:
I cloned to official Fossil repository. Then ran a command to create a new private branch:
C:\scratch\fossil\tree>fossil branch new private_branch trunk --private
New branch: eb017cd99578e07ee0ff221fbc57ace0a240c3a8
Autosync:  http://www.fossil-scm.org/
                Bytes      Cards  Artifacts     Deltas
Sent:            2702         56          0          0
Server says: pull only - not authorized to push
Received:        2473         54          0          0
Total network traffic: 1601 bytes sent, 1523 bytes received

Notice the output line: "Server says: pull only - not authorized to push".

Why does creating a private branch cause a push?


dmitry added on 2011-08-23 01:52:02 UTC:
Something like this might work?

--- src/branch.c
+++ src/branch.c
@@ -173,12 +173,14 @@
 
 
   /* Commit */
   db_end_transaction(0);
   
-  /* Do an autosync push, if requested */
-  autosync(AUTOSYNC_PUSH);
+  if( !isPrivate ) {
+    /* Do an autosync push, if requested */
+    autosync(AUTOSYNC_PUSH);
+  }
 }