Fossil

Check-in [8478bfe2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Abort the update if autosync fails.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | per-round-trip-commit
Files: files | file ages | folders
SHA1:8478bfe27e7733053f324d8c21e0f6f635185277
User & Date: andybradford 2014-05-05 07:26:12
Context
2014-05-07
04:00
Make error message less redundant. check-in: d02f144d user: andybradford tags: per-round-trip-commit
2014-05-05
07:26
Abort the update if autosync fails. check-in: 8478bfe2 user: andybradford tags: per-round-trip-commit
04:50
Restore variable definitions at the top of the block. check-in: 21f6dc95 user: andybradford tags: per-round-trip-commit
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/update.c.

125
126
127
128
129
130
131
132


133
134
135
136
137
138
139
  debugFlag = find_option("debug",0,0)!=0;
  setmtimeFlag = find_option("setmtime",0,0)!=0;
  capture_case_sensitive_option();
  db_must_be_within_tree();
  vid = db_lget_int("checkout", 0);
  user_select();
  if( !dryRunFlag && !internalUpdate ){
    autosync(SYNC_PULL + SYNC_VERBOSE*verboseFlag);


  }
  
  /* Create any empty directories now, as well as after the update,
  ** so changes in settings are reflected now */
  if( !dryRunFlag ) ensure_empty_dirs_created();

  if( internalUpdate ){







|
>
>







125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
  debugFlag = find_option("debug",0,0)!=0;
  setmtimeFlag = find_option("setmtime",0,0)!=0;
  capture_case_sensitive_option();
  db_must_be_within_tree();
  vid = db_lget_int("checkout", 0);
  user_select();
  if( !dryRunFlag && !internalUpdate ){
    if( autosync(SYNC_PULL + SYNC_VERBOSE*verboseFlag) ){
      fossil_fatal("Autosync failed, cannot update");
    }
  }
  
  /* Create any empty directories now, as well as after the update,
  ** so changes in settings are reflected now */
  if( !dryRunFlag ) ensure_empty_dirs_created();

  if( internalUpdate ){