Hex Artifact Content
Not logged in

Artifact 19641d9e3e99df6cde1591e95bdc6d0b8add5b9b:

Ticket change [19641d9e3e] - Ticket 2aaa8042ca Option to avoid saving the sync URL status still Open with 2 other changes by dmitry on 2009-11-06 12:27:01.

0000: 44 20 32 30 30 39 2d 31 31 2d 30 36 54 31 32 3a  D 2009-11-06T12:
0010: 32 37 3a 30 31 0a 4a 20 2b 63 6f 6d 6d 65 6e 74  27:01.J +comment
0020: 20 5c 6e 5c 6e 3c 68 72 3e 3c 69 3e 64 6d 69 74   \n\n<hr><i>dmit
0030: 72 79 5c 73 61 64 64 65 64 5c 73 6f 6e 5c 73 32  ry\sadded\son\s2
0040: 30 30 39 2d 31 31 2d 30 36 5c 73 31 32 3a 32 37  009-11-06\s12:27
0050: 3a 30 31 3a 3c 2f 69 3e 3c 62 72 3e 5c 6e 53 6f  :01:</i><br>\nSo
0060: 72 72 79 2c 5c 73 66 6f 72 67 6f 74 5c 73 74 6f  rry,\sforgot\sto
0070: 5c 73 61 64 64 5c 73 3f 2d 2d 6f 6e 63 65 3f 5c  \sadd\s?--once?\
0080: 73 74 6f 5c 73 73 6f 6d 65 5c 73 63 6f 6d 6d 61  sto\ssome\scomma
0090: 6e 64 73 5c 73 64 65 73 63 72 69 70 74 69 6f 6e  nds\sdescription
00a0: 2e 5c 73 48 65 72 65 27 73 5c 73 74 68 65 5c 73  .\sHere's\sthe\s
00b0: 75 70 64 61 74 65 64 5c 73 76 65 72 73 69 6f 6e  updated\sversion
00c0: 3a 5c 72 5c 6e 5c 72 5c 6e 3c 76 65 72 62 61 74  :\r\n\r\n<verbat
00d0: 69 6d 3e 5c 72 5c 6e 2d 2d 2d 5c 73 73 72 63 2f  im>\r\n---\ssrc/
00e0: 73 79 6e 63 2e 63 5c 72 5c 6e 2b 2b 2b 5c 73 73  sync.c\r\n+++\ss
00f0: 72 63 2f 73 79 6e 63 2e 63 5c 72 5c 6e 40 40 5c  rc/sync.c\r\n@@\
0100: 73 2d 36 37 2c 31 34 5c 73 2b 36 37 2c 31 37 5c  s-67,14\s+67,17\
0110: 73 40 40 5c 72 5c 6e 5c 73 2f 2a 5c 72 5c 6e 5c  s@@\r\n\s/*\r\n\
0120: 73 2a 2a 5c 73 54 68 69 73 5c 73 72 6f 75 74 69  s**\sThis\srouti
0130: 6e 65 5c 73 70 72 6f 63 65 73 73 65 73 5c 73 74  ne\sprocesses\st
0140: 68 65 5c 73 63 6f 6d 6d 61 6e 64 2d 6c 69 6e 65  he\scommand-line
0150: 5c 73 61 72 67 75 6d 65 6e 74 5c 73 66 6f 72 5c  \sargument\sfor\
0160: 73 70 75 73 68 2c 5c 73 70 75 6c 6c 2c 5c 72 5c  spush,\spull,\r\
0170: 6e 5c 73 2a 2a 5c 73 61 6e 64 5c 73 73 79 6e 63  n\s**\sand\ssync
0180: 2e 5c 73 5c 73 49 66 5c 73 61 5c 73 63 6f 6d 6d  .\s\sIf\sa\scomm
0190: 61 6e 64 2d 6c 69 6e 65 5c 73 61 72 67 75 6d 65  and-line\sargume
01a0: 6e 74 5c 73 69 73 5c 73 67 69 76 65 6e 2c 5c 73  nt\sis\sgiven,\s
01b0: 74 68 61 74 5c 73 69 73 5c 73 74 68 65 5c 73 55  that\sis\sthe\sU
01c0: 52 4c 5c 72 5c 6e 5c 73 2a 2a 5c 73 6f 66 5c 73  RL\r\n\s**\sof\s
01d0: 61 5c 73 73 65 72 76 65 72 5c 73 74 6f 5c 73 73  a\sserver\sto\ss
01e0: 79 6e 63 5c 73 61 67 61 69 6e 73 74 2e 5c 73 5c  ync\sagainst.\s\
01f0: 73 49 66 5c 73 6e 6f 5c 73 61 72 67 75 6d 65 6e  sIf\sno\sargumen
0200: 74 5c 73 69 73 5c 73 67 69 76 65 6e 2c 5c 73 75  t\sis\sgiven,\su
0210: 73 65 5c 73 74 68 65 5c 72 5c 6e 5c 73 2a 2a 5c  se\sthe\r\n\s**\
0220: 73 6d 6f 73 74 5c 73 72 65 63 65 6e 74 6c 79 5c  smost\srecently\
0230: 73 73 79 6e 63 65 64 5c 73 55 52 4c 2e 5c 73 5c  ssynced\sURL.\s\
0240: 73 52 65 6d 65 6d 62 65 72 5c 73 74 68 65 5c 73  sRemember\sthe\s
0250: 63 75 72 72 65 6e 74 5c 73 55 52 4c 5c 73 66 6f  current\sURL\sfo
0260: 72 5c 73 6e 65 78 74 5c 73 74 69 6d 65 2e 5c 72  r\snext\stime.\r
0270: 5c 6e 2b 2a 2a 5c 72 5c 6e 2b 2a 2a 5c 73 49 66  \n+**\r\n+**\sIf
0280: 5c 73 2d 2d 6f 6e 63 65 5c 73 6f 70 74 69 6f 6e  \s--once\soption
0290: 5c 73 69 73 5c 73 73 70 65 63 69 66 69 65 64 2c  \sis\sspecified,
02a0: 5c 73 64 6f 5c 73 6e 6f 74 5c 73 72 65 6d 65 6d  \sdo\snot\sremem
02b0: 62 65 72 5c 73 55 52 4c 2e 5c 72 5c 6e 5c 73 2a  ber\sURL.\r\n\s*
02c0: 2f 5c 72 5c 6e 5c 73 76 6f 69 64 5c 73 70 72 6f  /\r\n\svoid\spro
02d0: 63 65 73 73 5f 73 79 6e 63 5f 61 72 67 73 28 76  cess_sync_args(v
02e0: 6f 69 64 29 7b 5c 72 5c 6e 5c 73 5c 73 5c 73 63  oid){\r\n\s\s\sc
02f0: 6f 6e 73 74 5c 73 63 68 61 72 5c 73 2a 7a 55 72  onst\schar\s*zUr
0300: 6c 5c 73 3d 5c 73 30 3b 5c 72 5c 6e 5c 73 5c 73  l\s=\s0;\r\n\s\s
0310: 5c 73 69 6e 74 5c 73 75 72 6c 4f 70 74 69 6f 6e  \sint\surlOption
0320: 61 6c 5c 73 3d 5c 73 66 69 6e 64 5f 6f 70 74 69  al\s=\sfind_opti
0330: 6f 6e 28 22 61 75 74 6f 75 72 6c 22 2c 30 2c 30  on("autourl",0,0
0340: 29 21 3d 30 3b 5c 72 5c 6e 2b 5c 73 5c 73 69 6e  )!=0;\r\n+\s\sin
0350: 74 5c 73 73 79 6e 63 4f 6e 63 65 5c 73 3d 5c 73  t\ssyncOnce\s=\s
0360: 66 69 6e 64 5f 6f 70 74 69 6f 6e 28 22 6f 6e 63  find_option("onc
0370: 65 22 2c 30 2c 30 29 21 3d 30 3b 5c 72 5c 6e 5c  e",0,0)!=0;\r\n\
0380: 73 5c 73 5c 73 75 72 6c 5f 70 72 6f 78 79 5f 6f  s\s\surl_proxy_o
0390: 70 74 69 6f 6e 73 28 29 3b 5c 72 5c 6e 5c 73 5c  ptions();\r\n\s\
03a0: 73 5c 73 64 62 5f 66 69 6e 64 5f 61 6e 64 5f 6f  s\sdb_find_and_o
03b0: 70 65 6e 5f 72 65 70 6f 73 69 74 6f 72 79 28 31  pen_repository(1
03c0: 29 3b 5c 72 5c 6e 5c 73 5c 73 5c 73 69 66 28 5c  );\r\n\s\s\sif(\
03d0: 73 67 2e 61 72 67 63 3d 3d 32 5c 73 29 7b 5c 72  sg.argc==2\s){\r
03e0: 5c 6e 5c 73 5c 73 5c 73 5c 73 5c 73 7a 55 72 6c  \n\s\s\s\s\szUrl
03f0: 5c 73 3d 5c 73 64 62 5f 67 65 74 28 22 6c 61 73  \s=\sdb_get("las
0400: 74 2d 73 79 6e 63 2d 75 72 6c 22 2c 5c 73 30 29  t-sync-url",\s0)
0410: 3b 5c 72 5c 6e 5c 73 5c 73 5c 73 7d 65 6c 73 65  ;\r\n\s\s\s}else
0420: 5c 73 69 66 28 5c 73 67 2e 61 72 67 63 3d 3d 33  \sif(\sg.argc==3
0430: 5c 73 29 7b 5c 72 5c 6e 40 40 5c 73 2d 38 33 2c  \s){\r\n@@\s-83,
0440: 31 31 5c 73 2b 38 36 2c 31 33 5c 73 40 40 5c 72  11\s+86,13\s@@\r
0450: 5c 6e 5c 73 5c 73 5c 73 69 66 28 5c 73 7a 55 72  \n\s\s\sif(\szUr
0460: 6c 3d 3d 30 5c 73 29 7b 5c 72 5c 6e 5c 73 5c 73  l==0\s){\r\n\s\s
0470: 5c 73 5c 73 5c 73 69 66 28 5c 73 75 72 6c 4f 70  \s\s\sif(\surlOp
0480: 74 69 6f 6e 61 6c 5c 73 29 5c 73 65 78 69 74 28  tional\s)\sexit(
0490: 30 29 3b 5c 72 5c 6e 5c 73 5c 73 5c 73 5c 73 5c  0);\r\n\s\s\s\s\
04a0: 73 75 73 61 67 65 28 22 55 52 4c 22 29 3b 5c 72  susage("URL");\r
04b0: 5c 6e 5c 73 5c 73 5c 73 7d 5c 72 5c 6e 5c 73 5c  \n\s\s\s}\r\n\s\
04c0: 73 5c 73 75 72 6c 5f 70 61 72 73 65 28 7a 55 72  s\surl_parse(zUr
04d0: 6c 29 3b 5c 72 5c 6e 2d 5c 73 5c 73 64 62 5f 73  l);\r\n-\s\sdb_s
04e0: 65 74 28 22 6c 61 73 74 2d 73 79 6e 63 2d 75 72  et("last-sync-ur
04f0: 6c 22 2c 5c 73 67 2e 75 72 6c 49 73 46 69 6c 65  l",\sg.urlIsFile
0500: 5c 73 3f 5c 73 67 2e 75 72 6c 43 61 6e 6f 6e 69  \s?\sg.urlCanoni
0510: 63 61 6c 5c 73 3a 5c 73 7a 55 72 6c 2c 5c 73 30  cal\s:\szUrl,\s0
0520: 29 3b 5c 72 5c 6e 2b 5c 73 5c 73 69 66 5c 73 28  );\r\n+\s\sif\s(
0530: 5c 73 73 79 6e 63 4f 6e 63 65 3d 3d 30 5c 73 29  \ssyncOnce==0\s)
0540: 5c 73 7b 5c 72 5c 6e 2b 5c 73 5c 73 5c 73 5c 73  \s{\r\n+\s\s\s\s
0550: 64 62 5f 73 65 74 28 22 6c 61 73 74 2d 73 79 6e  db_set("last-syn
0560: 63 2d 75 72 6c 22 2c 5c 73 67 2e 75 72 6c 49 73  c-url",\sg.urlIs
0570: 46 69 6c 65 5c 73 3f 5c 73 67 2e 75 72 6c 43 61  File\s?\sg.urlCa
0580: 6e 6f 6e 69 63 61 6c 5c 73 3a 5c 73 7a 55 72 6c  nonical\s:\szUrl
0590: 2c 5c 73 30 29 3b 5c 72 5c 6e 2b 5c 73 5c 73 7d  ,\s0);\r\n+\s\s}
05a0: 5c 72 5c 6e 5c 73 5c 73 5c 73 75 73 65 72 5f 73  \r\n\s\s\suser_s
05b0: 65 6c 65 63 74 28 29 3b 5c 72 5c 6e 5c 73 5c 73  elect();\r\n\s\s
05c0: 5c 73 69 66 28 5c 73 67 2e 61 72 67 63 3d 3d 32  \sif(\sg.argc==2
05d0: 5c 73 29 7b 5c 72 5c 6e 5c 73 5c 73 5c 73 5c 73  \s){\r\n\s\s\s\s
05e0: 5c 73 69 66 28 5c 73 67 2e 75 72 6c 50 6f 72 74  \sif(\sg.urlPort
05f0: 21 3d 67 2e 75 72 6c 44 66 6c 74 50 6f 72 74 5c  !=g.urlDfltPort\
0600: 73 29 7b 5c 72 5c 6e 5c 73 5c 73 5c 73 5c 73 5c  s){\r\n\s\s\s\s\
0610: 73 5c 73 5c 73 70 72 69 6e 74 66 28 22 53 65 72  s\s\sprintf("Ser
0620: 76 65 72 3a 5c 73 5c 73 5c 73 5c 73 25 73 3a 2f  ver:\s\s\s\s%s:/
0630: 2f 25 73 3a 25 64 25 73 5c 5c 6e 22 2c 5c 72 5c  /%s:%d%s\\n",\r\
0640: 6e 5c 73 5c 73 5c 73 5c 73 5c 73 5c 73 5c 73 5c  n\s\s\s\s\s\s\s\
0650: 73 5c 73 5c 73 5c 73 5c 73 5c 73 5c 73 5c 73 67  s\s\s\s\s\s\s\sg
0660: 2e 75 72 6c 50 72 6f 74 6f 63 6f 6c 2c 5c 73 67  .urlProtocol,\sg
0670: 2e 75 72 6c 4e 61 6d 65 2c 5c 73 67 2e 75 72 6c  .urlName,\sg.url
0680: 50 6f 72 74 2c 5c 73 67 2e 75 72 6c 50 61 74 68  Port,\sg.urlPath
0690: 29 3b 5c 72 5c 6e 40 40 5c 73 2d 39 39 2c 31 36  );\r\n@@\s-99,16
06a0: 5c 73 2b 31 30 34 2c 31 38 5c 73 40 40 5c 72 5c  \s+104,18\s@@\r\
06b0: 6e 5c 73 7d 5c 72 5c 6e 5c 73 5c 72 5c 6e 5c 73  n\s}\r\n\s\r\n\s
06c0: 2f 2a 5c 72 5c 6e 5c 73 2a 2a 5c 73 43 4f 4d 4d  /*\r\n\s**\sCOMM
06d0: 41 4e 44 3a 5c 73 70 75 6c 6c 5c 72 5c 6e 5c 73  AND:\spull\r\n\s
06e0: 2a 2a 5c 72 5c 6e 2d 2a 2a 5c 73 55 73 61 67 65  **\r\n-**\sUsage
06f0: 3a 5c 73 25 66 6f 73 73 69 6c 5c 73 70 75 6c 6c  :\s%fossil\spull
0700: 5c 73 3f 55 52 4c 3f 5c 73 3f 2d 52 7c 2d 2d 72  \s?URL?\s?-R|--r
0710: 65 73 70 6f 73 69 74 6f 72 79 5c 73 52 45 50 4f  espository\sREPO
0720: 53 49 54 4f 52 59 3f 5c 72 5c 6e 2b 2a 2a 5c 73  SITORY?\r\n+**\s
0730: 55 73 61 67 65 3a 5c 73 25 66 6f 73 73 69 6c 5c  Usage:\s%fossil\
0740: 73 70 75 6c 6c 5c 73 3f 55 52 4c 3f 5c 73 3f 2d  spull\s?URL?\s?-
0750: 52 7c 2d 2d 72 65 73 70 6f 73 69 74 6f 72 79 5c  R|--respository\
0760: 73 52 45 50 4f 53 49 54 4f 52 59 3f 5c 73 3f 2d  sREPOSITORY?\s?-
0770: 2d 6f 6e 63 65 3f 5c 72 5c 6e 5c 73 2a 2a 5c 72  -once?\r\n\s**\r
0780: 5c 6e 5c 73 2a 2a 5c 73 50 75 6c 6c 5c 73 63 68  \n\s**\sPull\sch
0790: 61 6e 67 65 73 5c 73 66 72 6f 6d 5c 73 61 5c 73  anges\sfrom\sa\s
07a0: 72 65 6d 6f 74 65 5c 73 72 65 70 6f 73 69 74 6f  remote\sreposito
07b0: 72 79 5c 73 69 6e 74 6f 5c 73 74 68 65 5c 73 6c  ry\sinto\sthe\sl
07c0: 6f 63 61 6c 5c 73 72 65 70 6f 73 69 74 6f 72 79  ocal\srepository
07d0: 2e 5c 72 5c 6e 5c 73 2a 2a 5c 72 5c 6e 5c 73 2a  .\r\n\s**\r\n\s*
07e0: 2a 5c 73 49 66 5c 73 74 68 65 5c 73 55 52 4c 5c  *\sIf\sthe\sURL\
07f0: 73 69 73 5c 73 6e 6f 74 5c 73 73 70 65 63 69 66  sis\snot\sspecif
0800: 69 65 64 2c 5c 73 74 68 65 6e 5c 73 74 68 65 5c  ied,\sthen\sthe\
0810: 73 55 52 4c 5c 73 66 72 6f 6d 5c 73 74 68 65 5c  sURL\sfrom\sthe\
0820: 73 6d 6f 73 74 5c 73 72 65 63 65 6e 74 5c 72 5c  smost\srecent\r\
0830: 6e 5c 73 2a 2a 5c 73 63 6c 6f 6e 65 2c 5c 73 70  n\s**\sclone,\sp
0840: 75 73 68 2c 5c 73 70 75 6c 6c 2c 5c 73 72 65 6d  ush,\spull,\srem
0850: 6f 74 65 2d 75 72 6c 2c 5c 73 6f 72 5c 73 73 79  ote-url,\sor\ssy
0860: 6e 63 5c 73 63 6f 6d 6d 61 6e 64 5c 73 69 73 5c  nc\scommand\sis\
0870: 73 75 73 65 64 2e 5c 72 5c 6e 2b 2a 2a 5c 72 5c  sused.\r\n+**\r\
0880: 6e 2b 2a 2a 5c 73 49 66 5c 73 2d 2d 6f 6e 63 65  n+**\sIf\s--once
0890: 5c 73 6f 70 74 69 6f 6e 5c 73 69 73 5c 73 73 70  \soption\sis\ssp
08a0: 65 63 69 66 69 65 64 2c 5c 73 64 6f 5c 73 6e 6f  ecified,\sdo\sno
08b0: 74 5c 73 72 65 6d 65 6d 62 65 72 5c 73 55 52 4c  t\sremember\sURL
08c0: 2e 5c 72 5c 6e 5c 73 2a 2a 5c 72 5c 6e 5c 73 2a  .\r\n\s**\r\n\s*
08d0: 2a 5c 73 53 65 65 5c 73 61 6c 73 6f 3a 5c 73 63  *\sSee\salso:\sc
08e0: 6c 6f 6e 65 2c 5c 73 70 75 73 68 2c 5c 73 73 79  lone,\spush,\ssy
08f0: 6e 63 2c 5c 73 72 65 6d 6f 74 65 2d 75 72 6c 5c  nc,\sremote-url\
0900: 72 5c 6e 5c 73 2a 2f 5c 72 5c 6e 5c 73 76 6f 69  r\n\s*/\r\n\svoi
0910: 64 5c 73 70 75 6c 6c 5f 63 6d 64 28 76 6f 69 64  d\spull_cmd(void
0920: 29 7b 5c 72 5c 6e 5c 73 5c 73 5c 73 70 72 6f 63  ){\r\n\s\s\sproc
0930: 65 73 73 5f 73 79 6e 63 5f 61 72 67 73 28 29 3b  ess_sync_args();
0940: 5c 72 5c 6e 40 40 5c 73 2d 31 31 36 2c 31 36 5c  \r\n@@\s-116,16\
0950: 73 2b 31 32 33 2c 31 38 5c 73 40 40 5c 72 5c 6e  s+123,18\s@@\r\n
0960: 5c 73 7d 5c 72 5c 6e 5c 73 5c 72 5c 6e 5c 73 2f  \s}\r\n\s\r\n\s/
0970: 2a 5c 72 5c 6e 5c 73 2a 2a 5c 73 43 4f 4d 4d 41  *\r\n\s**\sCOMMA
0980: 4e 44 3a 5c 73 70 75 73 68 5c 72 5c 6e 5c 73 2a  ND:\spush\r\n\s*
0990: 2a 5c 72 5c 6e 2d 2a 2a 5c 73 55 73 61 67 65 3a  *\r\n-**\sUsage:
09a0: 5c 73 25 66 6f 73 73 69 6c 5c 73 70 75 73 68 5c  \s%fossil\spush\
09b0: 73 3f 55 52 4c 3f 5c 73 3f 2d 52 7c 2d 2d 72 65  s?URL?\s?-R|--re
09c0: 70 6f 73 69 74 6f 72 79 5c 73 52 45 50 4f 53 49  pository\sREPOSI
09d0: 54 4f 52 59 3f 5c 72 5c 6e 2b 2a 2a 5c 73 55 73  TORY?\r\n+**\sUs
09e0: 61 67 65 3a 5c 73 25 66 6f 73 73 69 6c 5c 73 70  age:\s%fossil\sp
09f0: 75 73 68 5c 73 3f 55 52 4c 3f 5c 73 3f 2d 52 7c  ush\s?URL?\s?-R|
0a00: 2d 2d 72 65 70 6f 73 69 74 6f 72 79 5c 73 52 45  --repository\sRE
0a10: 50 4f 53 49 54 4f 52 59 3f 5c 73 3f 2d 2d 6f 6e  POSITORY?\s?--on
0a20: 63 65 3f 5c 72 5c 6e 5c 73 2a 2a 5c 72 5c 6e 5c  ce?\r\n\s**\r\n\
0a30: 73 2a 2a 5c 73 50 75 73 68 5c 73 63 68 61 6e 67  s**\sPush\schang
0a40: 65 73 5c 73 69 6e 5c 73 74 68 65 5c 73 6c 6f 63  es\sin\sthe\sloc
0a50: 61 6c 5c 73 72 65 70 6f 73 69 74 6f 72 79 5c 73  al\srepository\s
0a60: 6f 76 65 72 5c 73 69 6e 74 6f 5c 73 61 5c 73 72  over\sinto\sa\sr
0a70: 65 6d 6f 74 65 5c 73 72 65 70 6f 73 69 74 6f 72  emote\srepositor
0a80: 79 2e 5c 72 5c 6e 5c 73 2a 2a 5c 72 5c 6e 5c 73  y.\r\n\s**\r\n\s
0a90: 2a 2a 5c 73 49 66 5c 73 74 68 65 5c 73 55 52 4c  **\sIf\sthe\sURL
0aa0: 5c 73 69 73 5c 73 6e 6f 74 5c 73 73 70 65 63 69  \sis\snot\sspeci
0ab0: 66 69 65 64 2c 5c 73 74 68 65 6e 5c 73 74 68 65  fied,\sthen\sthe
0ac0: 5c 73 55 52 4c 5c 73 66 72 6f 6d 5c 73 74 68 65  \sURL\sfrom\sthe
0ad0: 5c 73 6d 6f 73 74 5c 73 72 65 63 65 6e 74 5c 72  \smost\srecent\r
0ae0: 5c 6e 5c 73 2a 2a 5c 73 63 6c 6f 6e 65 2c 5c 73  \n\s**\sclone,\s
0af0: 70 75 73 68 2c 5c 73 70 75 6c 6c 2c 5c 73 72 65  push,\spull,\sre
0b00: 6d 6f 74 65 2d 75 72 6c 2c 5c 73 6f 72 5c 73 73  mote-url,\sor\ss
0b10: 79 6e 63 5c 73 63 6f 6d 6d 61 6e 64 5c 73 69 73  ync\scommand\sis
0b20: 5c 73 75 73 65 64 2e 5c 72 5c 6e 2b 2a 2a 5c 72  \sused.\r\n+**\r
0b30: 5c 6e 2b 2a 2a 5c 73 49 66 5c 73 2d 2d 6f 6e 63  \n+**\sIf\s--onc
0b40: 65 5c 73 6f 70 74 69 6f 6e 5c 73 69 73 5c 73 73  e\soption\sis\ss
0b50: 70 65 63 69 66 69 65 64 2c 5c 73 64 6f 5c 73 6e  pecified,\sdo\sn
0b60: 6f 74 5c 73 72 65 6d 65 6d 62 65 72 5c 73 55 52  ot\sremember\sUR
0b70: 4c 2e 5c 72 5c 6e 5c 73 2a 2a 5c 72 5c 6e 5c 73  L.\r\n\s**\r\n\s
0b80: 2a 2a 5c 73 53 65 65 5c 73 61 6c 73 6f 3a 5c 73  **\sSee\salso:\s
0b90: 63 6c 6f 6e 65 2c 5c 73 70 75 6c 6c 2c 5c 73 73  clone,\spull,\ss
0ba0: 79 6e 63 2c 5c 73 72 65 6d 6f 74 65 2d 75 72 6c  ync,\sremote-url
0bb0: 5c 72 5c 6e 5c 73 2a 2f 5c 72 5c 6e 5c 73 76 6f  \r\n\s*/\r\n\svo
0bc0: 69 64 5c 73 70 75 73 68 5f 63 6d 64 28 76 6f 69  id\spush_cmd(voi
0bd0: 64 29 7b 5c 72 5c 6e 5c 73 5c 73 5c 73 70 72 6f  d){\r\n\s\s\spro
0be0: 63 65 73 73 5f 73 79 6e 63 5f 61 72 67 73 28 29  cess_sync_args()
0bf0: 3b 5c 72 5c 6e 40 40 5c 73 2d 31 33 34 2c 31 31  ;\r\n@@\s-134,11
0c00: 5c 73 2b 31 34 33 2c 31 31 5c 73 40 40 5c 72 5c  \s+143,11\s@@\r\
0c10: 6e 5c 73 5c 72 5c 6e 5c 73 5c 72 5c 6e 5c 73 2f  n\s\r\n\s\r\n\s/
0c20: 2a 5c 72 5c 6e 5c 73 2a 2a 5c 73 43 4f 4d 4d 41  *\r\n\s**\sCOMMA
0c30: 4e 44 3a 5c 73 73 79 6e 63 5c 72 5c 6e 5c 73 2a  ND:\ssync\r\n\s*
0c40: 2a 5c 72 5c 6e 2d 2a 2a 5c 73 55 73 61 67 65 3a  *\r\n-**\sUsage:
0c50: 5c 73 25 66 6f 73 73 69 6c 5c 73 73 79 6e 63 5c  \s%fossil\ssync\
0c60: 73 3f 55 52 4c 3f 5c 73 3f 2d 52 7c 2d 2d 72 65  s?URL?\s?-R|--re
0c70: 70 6f 73 69 74 6f 72 79 5c 73 52 45 50 4f 53 49  pository\sREPOSI
0c80: 54 4f 52 59 3f 5c 72 5c 6e 2b 2a 2a 5c 73 55 73  TORY?\r\n+**\sUs
0c90: 61 67 65 3a 5c 73 25 66 6f 73 73 69 6c 5c 73 73  age:\s%fossil\ss
0ca0: 79 6e 63 5c 73 3f 55 52 4c 3f 5c 73 3f 2d 52 7c  ync\s?URL?\s?-R|
0cb0: 2d 2d 72 65 70 6f 73 69 74 6f 72 79 5c 73 52 45  --repository\sRE
0cc0: 50 4f 53 49 54 4f 52 59 3f 5c 73 3f 2d 2d 6f 6e  POSITORY?\s?--on
0cd0: 63 65 3f 5c 72 5c 6e 5c 73 2a 2a 5c 72 5c 6e 5c  ce?\r\n\s**\r\n\
0ce0: 73 2a 2a 5c 73 53 79 6e 63 68 72 6f 6e 69 7a 65  s**\sSynchronize
0cf0: 5c 73 74 68 65 5c 73 6c 6f 63 61 6c 5c 73 72 65  \sthe\slocal\sre
0d00: 70 6f 73 69 74 6f 72 79 5c 73 77 69 74 68 5c 73  pository\swith\s
0d10: 61 5c 73 72 65 6d 6f 74 65 5c 73 72 65 70 6f 73  a\sremote\srepos
0d20: 69 74 6f 72 79 2e 5c 73 5c 73 54 68 69 73 5c 73  itory.\s\sThis\s
0d30: 69 73 5c 72 5c 6e 5c 73 2a 2a 5c 73 74 68 65 5c  is\r\n\s**\sthe\
0d40: 73 65 71 75 69 76 61 6c 65 6e 74 5c 73 6f 66 5c  sequivalent\sof\
0d50: 73 72 75 6e 6e 69 6e 67 5c 73 62 6f 74 68 5c 73  srunning\sboth\s
0d60: 22 70 75 73 68 22 5c 73 61 6e 64 5c 73 22 70 75  "push"\sand\s"pu
0d70: 6c 6c 22 5c 73 61 74 5c 73 74 68 65 5c 73 73 61  ll"\sat\sthe\ssa
0d80: 6d 65 5c 73 74 69 6d 65 2e 5c 72 5c 6e 5c 73 2a  me\stime.\r\n\s*
0d90: 2a 5c 72 5c 6e 5c 73 2a 2a 5c 73 49 66 5c 73 61  *\r\n\s**\sIf\sa
0da0: 5c 73 75 73 65 72 2d 69 64 5c 73 61 6e 64 5c 73  \suser-id\sand\s
0db0: 70 61 73 73 77 6f 72 64 5c 73 61 72 65 5c 73 72  password\sare\sr
0dc0: 65 71 75 69 72 65 64 2c 5c 73 73 70 65 63 69 66  equired,\sspecif
0dd0: 79 5c 73 74 68 65 6d 5c 73 61 73 5c 73 66 6f 6c  y\sthem\sas\sfol
0de0: 6c 6f 77 73 3a 5c 72 5c 6e 40 40 5c 73 2d 31 34  lows:\r\n@@\s-14
0df0: 35 2c 31 30 5c 73 2b 31 35 34 2c 31 32 5c 73 40  5,10\s+154,12\s@
0e00: 40 5c 72 5c 6e 5c 73 2a 2a 5c 72 5c 6e 5c 73 2a  @\r\n\s**\r\n\s*
0e10: 2a 5c 73 5c 73 5c 73 5c 73 5c 73 68 74 74 70 3a  *\s\s\s\s\shttp:
0e20: 2f 2f 75 73 65 72 69 64 3a 70 61 73 73 77 6f 72  //userid:passwor
0e30: 64 40 77 77 77 2e 64 6f 6d 61 69 6e 2e 63 6f 6d  d@www.domain.com
0e40: 3a 31 32 33 34 2f 70 61 74 68 5c 72 5c 6e 5c 73  :1234/path\r\n\s
0e50: 2a 2a 5c 72 5c 6e 5c 73 2a 2a 5c 73 49 66 5c 73  **\r\n\s**\sIf\s
0e60: 74 68 65 5c 73 55 52 4c 5c 73 69 73 5c 73 6e 6f  the\sURL\sis\sno
0e70: 74 5c 73 73 70 65 63 69 66 69 65 64 2c 5c 73 74  t\sspecified,\st
0e80: 68 65 6e 5c 73 74 68 65 5c 73 55 52 4c 5c 73 66  hen\sthe\sURL\sf
0e90: 72 6f 6d 5c 73 74 68 65 5c 73 6d 6f 73 74 5c 73  rom\sthe\smost\s
0ea0: 72 65 63 65 6e 74 5c 73 73 75 63 63 65 73 73 66  recent\ssuccessf
0eb0: 75 6c 5c 72 5c 6e 5c 73 2a 2a 5c 73 63 6c 6f 6e  ul\r\n\s**\sclon
0ec0: 65 2c 5c 73 70 75 73 68 2c 5c 73 70 75 6c 6c 2c  e,\spush,\spull,
0ed0: 5c 73 72 65 6d 6f 74 65 2d 75 72 6c 2c 5c 73 6f  \sremote-url,\so
0ee0: 72 5c 73 73 79 6e 63 5c 73 63 6f 6d 6d 61 6e 64  r\ssync\scommand
0ef0: 5c 73 69 73 5c 73 75 73 65 64 2e 5c 72 5c 6e 2b  \sis\sused.\r\n+
0f00: 2a 2a 5c 72 5c 6e 2b 2a 2a 5c 73 49 66 5c 73 2d  **\r\n+**\sIf\s-
0f10: 2d 6f 6e 63 65 5c 73 6f 70 74 69 6f 6e 5c 73 69  -once\soption\si
0f20: 73 5c 73 73 70 65 63 69 66 69 65 64 2c 5c 73 64  s\sspecified,\sd
0f30: 6f 5c 73 6e 6f 74 5c 73 72 65 6d 65 6d 62 65 72  o\snot\sremember
0f40: 5c 73 55 52 4c 2e 5c 72 5c 6e 5c 73 2a 2a 5c 72  \sURL.\r\n\s**\r
0f50: 5c 6e 5c 73 2a 2a 5c 73 53 65 65 5c 73 61 6c 73  \n\s**\sSee\sals
0f60: 6f 3a 5c 73 5c 73 63 6c 6f 6e 65 2c 5c 73 70 75  o:\s\sclone,\spu
0f70: 73 68 2c 5c 73 70 75 6c 6c 2c 5c 73 72 65 6d 6f  sh,\spull,\sremo
0f80: 74 65 2d 75 72 6c 5c 72 5c 6e 5c 73 2a 2f 5c 72  te-url\r\n\s*/\r
0f90: 5c 6e 5c 73 76 6f 69 64 5c 73 73 79 6e 63 5f 63  \n\svoid\ssync_c
0fa0: 6d 64 28 76 6f 69 64 29 7b 5c 72 5c 6e 5c 73 5c  md(void){\r\n\s\
0fb0: 73 5c 73 70 72 6f 63 65 73 73 5f 73 79 6e 63 5f  s\sprocess_sync_
0fc0: 61 72 67 73 28 29 3b 5c 72 5c 6e 5c 72 5c 6e 3c  args();\r\n\r\n<
0fd0: 2f 76 65 72 62 61 74 69 6d 3e 0a 4a 20 72 65 73  /verbatim>.J res
0fe0: 6f 6c 75 74 69 6f 6e 20 4f 70 65 6e 0a 4b 20 32  olution Open.K 2
0ff0: 61 61 61 38 30 34 32 63 61 65 63 37 39 32 39 66  aaa8042caec7929f
1000: 34 33 32 63 65 31 64 65 33 37 62 31 30 35 36 33  432ce1de37b10563
1010: 63 37 30 64 64 30 37 0a 55 20 64 6d 69 74 72 79  c70dd07.U dmitry
1020: 0a 5a 20 66 39 62 31 37 62 61 61 64 65 31 63 34  .Z f9b17baade1c4
1030: 30 30 39 34 36 38 33 65 35 30 63 31 32 66 63 36  0094683e50c12fc6
1040: 35 64 65 0a                                      5de.