Fossil

Diff
Login

Diff

Differences From Artifact [210072a64d]:

To Artifact [f14d1c33a0]:


1632
1633
1634
1635
1636
1637
1638

1639
1640
1641
1642
1643
1644
1645
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646







+







#define SYNC_PUSH           0x0001
#define SYNC_PULL           0x0002
#define SYNC_CLONE          0x0004
#define SYNC_PRIVATE        0x0008
#define SYNC_VERBOSE        0x0010
#define SYNC_RESYNC         0x0020
#define SYNC_UNVERSIONED    0x0040
#define SYNC_FROMPARENT     0x0080
#endif

/*
** Floating-point absolute value
*/
static double fossil_fabs(double x){
  return x>0.0 ? x : -x;
1687
1688
1689
1690
1691
1692
1693











1694
1695
1696
1697
1698
1699
1700
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712







+
+
+
+
+
+
+
+
+
+
+







  int uvStatus = 0;       /* 0: no I/O.  1: pull-only  2: push-and-pull */
  int uvDoPush = 0;       /* If true, generate uvfile messages to send to server */
  sqlite3_int64 mtime;    /* Modification time on a UV file */

  if( db_get_boolean("dont-push", 0) ) syncFlags &= ~SYNC_PUSH;
  if( (syncFlags & (SYNC_PUSH|SYNC_PULL|SYNC_CLONE|SYNC_UNVERSIONED))==0
     && configRcvMask==0 && configSendMask==0 ) return 0;
  if( syncFlags & SYNC_FROMPARENT ){
    configRcvMask = 0;
    configSendMask = 0;
    syncFlags &= ~(SYNC_PUSH);
    zPCode = db_get("parent-project-code", 0);
    if( zPCode==0 || db_get("parent-project-name",0)==0 ){
      fossil_fatal("there is no parent project: set the 'parent-project-code'"
                   " and 'parent-project-name' config parameters set in order"
                   " to pull from a parent project");
    }
  }

  transport_stats(0, 0, 1);
  socket_global_init();
  memset(&xfer, 0, sizeof(xfer));
  xfer.pIn = &recv;
  xfer.pOut = &send;
  xfer.mxSend = db_get_int("max-upload", 250000);