Hex Artifact Content
Not logged in

Artifact c7cfffb36444eaaa62f62d33711f7e4ec7e9332a:

File www/cmd_update.wiki part of check-in [1eb067d456] - Adjust some wikilinks, clean up main ref page, add "new" command. by kejoki on 2008-12-12 21:55:46.

0000: 3c 68 32 3e 75 70 64 61 74 65 3c 2f 68 32 3e 0a  <h2>update</h2>.
0010: 0a 57 68 61 74 20 64 6f 20 79 6f 75 20 64 6f 20  .What do you do 
0020: 69 66 20 79 6f 75 20 68 61 76 65 20 63 68 61 6e  if you have chan
0030: 67 65 73 20 6f 75 74 20 6f 6e 20 61 20 72 65 70  ges out on a rep
0040: 6f 73 69 74 6f 72 79 20 61 6e 64 0a 79 6f 75 20  ository and.you 
0050: 77 61 6e 74 20 74 68 65 6d 20 6d 65 72 67 65 64  want them merged
0060: 20 77 69 74 68 20 79 6f 75 72 20 63 68 65 63 6b   with your check
0070: 6f 75 74 3f 0a 0a 59 6f 75 20 75 73 65 20 74 68  out?..You use th
0080: 65 20 3c 63 6f 64 65 3e 75 70 64 61 74 65 3c 2f  e <code>update</
0090: 63 6f 64 65 3e 20 63 6f 6d 6d 61 6e 64 2e 0a 0a  code> command...
00a0: 3c 62 3e 66 6f 73 73 69 6c 3c 2f 62 3e 20 63 61  <b>fossil</b> ca
00b0: 6e 20 5b 2e 2f 61 62 6f 75 74 5f 63 68 65 63 6b  n [./about_check
00c0: 6f 75 74 2e 77 69 6b 69 20 7c 20 6f 76 65 72 77  out.wiki | overw
00d0: 72 69 74 65 5d 20 61 6e 79 0a 63 68 61 6e 67 65  rite] any.change
00e0: 73 20 79 6f 75 27 76 65 20 6d 61 64 65 20 74 6f  s you've made to
00f0: 20 79 6f 75 72 20 63 68 65 63 6b 6f 75 74 2c 20   your checkout, 
0100: 6f 72 20 69 74 20 63 61 6e 0a 5b 2e 2f 61 62 6f  or it can.[./abo
0110: 75 74 5f 6d 65 72 67 65 2e 77 69 6b 69 20 7c 20  ut_merge.wiki | 
0120: 6d 65 72 67 65 5d 20 77 68 61 74 65 76 65 72 20  merge] whatever 
0130: 63 68 61 6e 67 65 73 20 68 61 76 65 20 6f 63 63  changes have occ
0140: 75 72 72 65 64 0a 69 6e 20 74 68 65 20 72 65 70  urred.in the rep
0150: 6f 20 69 6e 74 6f 20 79 6f 75 72 20 63 68 65 63  o into your chec
0160: 6b 6f 75 74 2e 0a 0a 55 70 64 61 74 65 20 3c 65  kout...Update <e
0170: 6d 3e 6d 65 72 67 65 73 3c 2f 65 6d 3e 20 63 68  m>merges</em> ch
0180: 61 6e 67 65 73 20 66 72 6f 6d 20 74 68 65 20 72  anges from the r
0190: 65 70 6f 73 69 74 6f 72 79 20 69 6e 74 6f 20 79  epository into y
01a0: 6f 75 72 20 63 68 65 63 6b 6f 75 74 2e 0a 0a 3c  our checkout...<
01b0: 62 3e 66 6f 73 73 69 6c 3c 2f 62 3e 20 75 73 65  b>fossil</b> use
01c0: 73 20 61 20 73 69 6d 70 6c 65 20 63 6f 6e 66 6c  s a simple confl
01d0: 69 63 74 20 72 65 73 6f 6c 75 74 69 6f 6e 20 73  ict resolution s
01e0: 74 72 61 74 65 67 79 20 66 6f 72 20 6d 65 72 67  trategy for merg
01f0: 65 73 3a 0a 74 68 65 20 6c 61 74 65 73 74 20 63  es:.the latest c
0200: 68 61 6e 67 65 20 77 69 6e 73 2e 0a 0a 4c 6f 63  hange wins...Loc
0210: 61 6c 20 69 6e 74 72 61 6e 65 74 20 3c 63 6f 64  al intranet <cod
0220: 65 3e 5b 2e 2f 63 6d 64 5f 63 6f 6d 6d 69 74 2e  e>[./cmd_commit.
0230: 77 69 6b 69 20 7c 20 63 6f 6d 6d 69 74 5d 3c 2f  wiki | commit]</
0240: 63 6f 64 65 3e 73 0a 28 62 79 20 73 6f 6d 65 6f  code>s.(by someo
0250: 6e 65 20 65 6c 73 65 29 0a 6f 72 20 4e 65 74 20  ne else).or Net 
0260: 3c 63 6f 64 65 3e 5b 2e 2f 63 6d 64 5f 70 75 6c  <code>[./cmd_pul
0270: 6c 2e 77 69 6b 69 20 7c 20 70 75 6c 6c 5d 3c 2f  l.wiki | pull]</
0280: 63 6f 64 65 3e 73 20 66 72 6f 6d 20 61 20 73 65  code>s from a se
0290: 72 76 65 72 0a 77 69 6c 6c 20 75 73 75 61 6c 6c  rver.will usuall
02a0: 79 20 72 65 71 75 69 72 65 20 61 20 3c 63 6f 64  y require a <cod
02b0: 65 3e 66 6f 73 73 69 6c 26 6e 62 73 70 3b 75 70  e>fossil&nbsp;up
02c0: 64 61 74 65 3c 2f 63 6f 64 65 3e 20 61 66 74 65  date</code> afte
02d0: 72 77 61 72 64 2e 0a 0a 4c 6f 63 61 6c 20 63 6f  rward...Local co
02e0: 6d 6d 69 74 73 20 61 72 65 20 6c 69 6b 65 6c 79  mmits are likely
02f0: 20 74 6f 20 62 65 20 6d 61 64 65 20 77 69 74 68   to be made with
0300: 0a 5b 2e 2f 63 6d 64 5f 73 65 74 74 69 6e 67 73  .[./cmd_settings
0310: 2e 77 69 6b 69 23 61 75 74 6f 73 79 6e 63 20 7c  .wiki#autosync |
0320: 20 61 75 74 6f 6d 61 74 69 63 20 73 79 6e 63 69   automatic synci
0330: 6e 67 5d 0a 73 65 74 20 74 6f 20 22 6f 6e 22 2c  ng].set to "on",
0340: 20 68 6f 77 65 76 65 72 2c 20 73 6f 20 69 66 20   however, so if 
0350: 79 6f 75 20 64 6f 6e 27 74 20 75 73 65 20 3c 62  you don't use <b
0360: 3e 66 6f 73 73 69 6c 3c 2f 62 3e 20 66 6f 72 20  >fossil</b> for 
0370: 4e 65 74 2d 77 69 64 65 0a 70 72 6f 6a 65 63 74  Net-wide.project
0380: 73 20 79 6f 75 20 6d 61 79 20 6e 65 76 65 72 20  s you may never 
0390: 68 61 76 65 20 74 6f 20 75 73 65 20 3c 63 6f 64  have to use <cod
03a0: 65 3e 75 70 64 61 74 65 3c 2f 63 6f 64 65 3e 2e  e>update</code>.
03b0: 0a 0a 53 65 65 20 61 6c 73 6f 3a 20 5b 2e 2f 63  ..See also: [./c
03c0: 6d 64 5f 70 75 6c 6c 2e 77 69 6b 69 20 7c 20 66  md_pull.wiki | f
03d0: 6f 73 73 69 6c 20 70 75 6c 6c 5d 2c 0a 5b 2e 2f  ossil pull],.[./
03e0: 63 6d 64 5f 63 6f 6d 6d 69 74 2e 77 69 6b 69 20  cmd_commit.wiki 
03f0: 7c 20 66 6f 73 73 69 6c 20 63 6f 6d 6d 69 74 5d  | fossil commit]
0400: 2c 0a 5b 2e 2f 63 6d 64 5f 73 65 74 74 69 6e 67  ,.[./cmd_setting
0410: 73 2e 77 69 6b 69 23 61 75 74 6f 73 79 6e 63 20  s.wiki#autosync 
0420: 7c 20 66 6f 73 73 69 6c 20 73 65 74 74 69 6e 67  | fossil setting
0430: 5d 20 28 61 75 74 6f 73 79 6e 63 29 2c 0a 5b 2e  ] (autosync),.[.
0440: 2f 61 62 6f 75 74 5f 63 68 65 63 6b 6f 75 74 2e  /about_checkout.
0450: 77 69 6b 69 20 7c 20 3c 69 3e 63 68 65 63 6b 6f  wiki | <i>checko
0460: 75 74 73 3c 2f 69 3e 5d 2c 0a 5b 2e 2f 61 62 6f  uts</i>],.[./abo
0470: 75 74 5f 6d 65 72 67 65 2e 77 69 6b 69 20 7c 20  ut_merge.wiki | 
0480: 3c 69 3e 6d 65 72 67 69 6e 67 3c 2f 69 3e 5d 2c  <i>merging</i>],
0490: 0a 5b 2e 2f 72 65 66 65 72 65 6e 63 65 2e 77 69  .[./reference.wi
04a0: 6b 69 20 7c 20 52 65 66 65 72 65 6e 63 65 5d 0a  ki | Reference].