Fossil

Check-in [acc0200a]
Login

Check-in [acc0200a]

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

Overview
Comment:Restore historical behavior of allowing both pull-only and pullonly in autosync setting.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: acc0200a4ab9b4c59782153095daff4f6e25cc8c
User & Date: andybradford 2015-11-22 05:30:43
Context
2015-11-23
20:53
fixed typo as suggested on ML ... (check-in: 565d1b0a user: m.ramakers@gmail.com tags: trunk)
2015-11-22
05:30
Restore historical behavior of allowing both pull-only and pullonly in autosync setting. ... (check-in: acc0200a user: andybradford tags: trunk)
2015-11-21
18:37
Revise TH1 proc_command fix from the previous check-in so it more closely matches the original fix from [f2d87242503d7a7d]. ... (check-in: c66083ed user: mistachkin tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/sync.c.
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
    return 0;
  }
  if( flags==SYNC_PUSH && db_get_boolean("dont-push",0) ){
    return 0;
  }
  zAutosync = db_get("autosync", 0);
  if( zAutosync ){
    if( (flags & SYNC_PUSH)!=0 && fossil_strcmp(zAutosync,"pull")==0 ){
      return 0;   /* Do not auto-push when autosync=pullonly */
    }
    if( is_false(zAutosync) ){
      return 0;   /* Autosync is completely off */
    }
  }else{
    /* Autosync defaults on.  To make it default off, "return" here. */







|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
    return 0;
  }
  if( flags==SYNC_PUSH && db_get_boolean("dont-push",0) ){
    return 0;
  }
  zAutosync = db_get("autosync", 0);
  if( zAutosync ){
    if( (flags & SYNC_PUSH)!=0 && fossil_strncmp(zAutosync,"pull",4)==0 ){
      return 0;   /* Do not auto-push when autosync=pullonly */
    }
    if( is_false(zAutosync) ){
      return 0;   /* Autosync is completely off */
    }
  }else{
    /* Autosync defaults on.  To make it default off, "return" here. */