Check-in [e4517465f3]
Not logged in
Overview

SHA1 Hash:e4517465f35f02639c67c92a96462154cd99b86c
Date: 2007-09-25 07:19:55
User: jnc
Comment:Autosync is now working. Added autosync to tag add, tag branch and branch create.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/branch.c from [97ebfed53d] to [1d4c15b285].

@@ -156,10 +156,17 @@
   /* Clear the undo/redo stack */
   undo_reset();
 
   /* Commit */
   db_end_transaction(0);
+
+  /* Autosync and do a push? */
+  if( do_autosync() ){
+    g.argc=2;
+    g.argv[1]="push";
+    push_cmd();
+  }
 }
 
 /*
 ** COMMAND: branch
 **

Modified src/tag.c from [c707ca1de0] to [9d05af9d92].

@@ -273,10 +273,17 @@
   blob_appendf(&ctrl, "Z %b\n", &cksum);
   db_begin_transaction();
   nrid = content_put(&ctrl, 0, 0);
   manifest_crosslink(nrid, &ctrl);
   db_end_transaction(0);
+
+  /* Autosync and do a push? */
+  if( do_autosync() ){
+    g.argc=2;
+    g.argv[1]="push";
+    push_cmd();
+  }
 }
 
 /*
 ** COMMAND: tag
 ** Usage: %fossil tag SUBCOMMAND ...