Artifact ae2cdbfb64c1e6859e3d237f4f400583bf3d2302:
File
www/cmd_all.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 61 6c 6c 3c 2f 68 32 3e 0a 0a 54 68 <h2>all</h2>..Th
0010: 65 20 3c 63 6f 64 65 3e 61 6c 6c 3c 2f 63 6f 64 e <code>all</cod
0020: 65 3e 20 63 6f 6d 6d 61 6e 64 20 77 69 6c 6c 20 e> command will
0030: 6c 65 74 20 79 6f 75 20 70 65 72 66 6f 72 6d 20 let you perform
0040: 28 73 6f 6d 65 29 20 63 6f 6d 6d 61 6e 64 73 20 (some) commands
0050: 6f 6e 0a 3c 65 6d 3e 61 6c 6c 3c 2f 65 6d 3e 20 on.<em>all</em>
0060: 6f 66 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f of your reposito
0070: 72 69 65 73 2c 20 61 6e 64 20 70 72 6f 76 69 64 ries, and provid
0080: 65 73 20 61 20 77 61 79 20 6f 66 20 66 69 6e 64 es a way of find
0090: 69 6e 67 20 61 6c 6c 0a 6f 66 20 79 6f 75 72 20 ing all.of your
00a0: 72 65 70 6f 73 69 74 6f 72 69 65 73 20 61 73 20 repositories as
00b0: 77 65 6c 6c 2e 0a 0a 54 68 65 72 65 20 61 72 65 well...There are
00c0: 20 73 6f 6d 65 20 63 6f 6d 6d 61 6e 64 73 20 79 some commands y
00d0: 6f 75 20 6d 69 67 68 74 20 65 73 70 65 63 69 61 ou might especia
00e0: 6c 6c 79 20 77 61 6e 74 20 74 6f 20 70 65 72 66 lly want to perf
00f0: 6f 72 6d 20 6f 6e 20 65 76 65 72 79 0a 72 65 70 orm on every.rep
0100: 6f 73 69 74 6f 72 79 20 79 6f 75 27 76 65 20 67 ository you've g
0110: 6f 74 2c 20 6f 6e 63 65 20 69 6e 20 61 20 77 68 ot, once in a wh
0120: 69 6c 65 2e 20 20 3c 63 6f 64 65 3e 20 66 6f 73 ile. <code> fos
0130: 73 69 6c 26 6e 62 73 70 3b 61 6c 6c 0a 3c 2f 63 sil all.</c
0140: 6f 64 65 3e 20 69 6e 63 6c 75 64 65 73 20 66 6f ode> includes fo
0150: 75 72 20 6f 66 20 74 68 65 20 6d 6f 73 74 20 6c ur of the most l
0160: 69 6b 65 6c 79 20 61 73 20 73 75 62 2d 63 6f 6d ikely as sub-com
0170: 6d 61 6e 64 73 3a 0a 5b 2e 2f 63 6d 64 5f 70 75 mands:.[./cmd_pu
0180: 6c 6c 2e 77 69 6b 69 20 7c 20 3c 63 6f 64 65 3e ll.wiki | <code>
0190: 70 75 6c 6c 3c 2f 63 6f 64 65 3e 5d 2c 0a 5b 2e pull</code>],.[.
01a0: 2f 63 6d 64 5f 70 75 73 68 2e 77 69 6b 69 20 7c /cmd_push.wiki |
01b0: 20 3c 63 6f 64 65 3e 70 75 73 68 3c 2f 63 6f 64 <code>push</cod
01c0: 65 3e 5d 2c 0a 5b 2e 2f 63 6d 64 5f 72 65 62 75 e>],.[./cmd_rebu
01d0: 69 6c 64 2e 77 69 6b 69 20 7c 20 3c 63 6f 64 65 ild.wiki | <code
01e0: 3e 72 65 62 75 69 6c 64 3c 2f 63 6f 64 65 3e 5d >rebuild</code>]
01f0: 20 61 6e 64 0a 5b 2e 2f 63 6d 64 5f 73 79 6e 63 and.[./cmd_sync
0200: 2e 77 69 6b 69 20 7c 20 3c 63 6f 64 65 3e 73 79 .wiki | <code>sy
0210: 6e 63 3c 2f 63 6f 64 65 3e 5d 2e 0a 0a 46 6f 6c nc</code>]...Fol
0220: 6c 6f 77 20 74 68 65 20 6c 69 6e 6b 73 20 74 6f low the links to
0230: 20 66 69 6e 64 20 6f 75 74 20 77 68 61 74 20 65 find out what e
0240: 61 63 68 20 6f 66 20 74 68 6f 73 65 20 64 6f 2c ach of those do,
0250: 20 61 6e 64 20 74 68 65 6e 20 61 20 6d 6f 6d 65 and then a mome
0260: 6e 74 0a 6f 66 20 74 68 6f 75 67 68 74 20 77 69 nt.of thought wi
0270: 6c 6c 20 74 65 6c 6c 20 79 6f 75 20 77 68 79 20 ll tell you why
0280: 79 6f 75 20 6d 69 67 68 74 20 77 61 6e 74 20 74 you might want t
0290: 6f 20 68 61 76 65 20 74 68 65 6d 20 61 76 61 69 o have them avai
02a0: 6c 61 62 6c 65 20 66 6f 72 0a 61 6c 6c 20 72 65 lable for.all re
02b0: 70 6f 73 69 74 6f 72 69 65 73 2e 0a 0a 43 65 72 positories...Cer
02c0: 74 61 69 6e 6c 79 20 79 6f 75 27 6c 6c 20 77 61 tainly you'll wa
02d0: 6e 74 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f nt your reposito
02e0: 72 69 65 73 20 61 6c 6c 20 72 65 62 75 69 6c 74 ries all rebuilt
02f0: 20 77 68 65 6e 20 79 6f 75 20 75 70 67 72 61 64 when you upgrad
0300: 65 0a 3c 62 3e 66 6f 73 73 69 6c 3c 2f 62 3e 20 e.<b>fossil</b>
0310: 61 66 74 65 72 20 74 68 65 72 65 20 68 61 73 20 after there has
0320: 62 65 65 6e 20 61 20 63 68 61 6e 67 65 20 69 6e been a change in
0330: 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 0a the repository.
0340: 73 74 72 75 63 74 75 72 65 2e 20 20 46 6f 72 20 structure. For
0350: 74 68 65 20 6f 74 68 65 72 73 2c 20 69 74 20 64 the others, it d
0360: 65 70 65 6e 64 73 2e 20 20 55 73 75 61 6c 6c 79 epends. Usually
0370: 20 79 6f 75 20 77 6f 75 6c 64 20 77 61 6e 74 0a you would want.
0380: 61 63 72 6f 73 73 2d 74 68 65 2d 62 6f 61 72 64 across-the-board
0390: 20 76 65 72 73 69 6f 6e 73 20 69 66 20 79 6f 75 versions if you
03a0: 27 76 65 20 62 65 65 6e 20 22 6f 66 66 20 4e 65 've been "off Ne
03b0: 74 22 20 66 6f 72 20 61 20 77 68 69 6c 65 2c 20 t" for a while,
03c0: 61 6e 64 0a 68 61 76 65 20 63 6f 6d 6d 69 74 73 and.have commits
03d0: 20 74 6f 20 6d 75 6c 74 69 70 6c 65 20 72 65 70 to multiple rep
03e0: 6f 73 69 74 6f 72 69 65 73 20 74 68 61 6e 20 79 ositories than y
03f0: 6f 75 20 6e 65 65 64 20 74 6f 20 73 68 61 72 65 ou need to share
0400: 2c 20 6f 72 20 77 61 6e 74 0a 74 6f 20 67 65 74 , or want.to get
0410: 20 74 68 65 20 72 65 70 6f 73 69 74 6f 72 79 20 the repository
0420: 63 68 61 6e 67 65 73 20 74 68 61 74 20 68 61 76 changes that hav
0430: 65 20 62 65 65 6e 20 6d 61 64 65 20 62 79 20 6f e been made by o
0440: 74 68 65 72 73 2c 20 6f 72 20 62 6f 74 68 2e 0a thers, or both..
0450: 0a 54 68 65 20 6c 61 73 74 20 73 75 62 2d 63 6f .The last sub-co
0460: 6d 6d 61 6e 64 20 70 72 6f 76 69 64 65 64 20 62 mmand provided b
0470: 79 20 3c 63 6f 64 65 3e 61 6c 6c 3c 2f 63 6f 64 y <code>all</cod
0480: 65 3e 20 69 73 20 22 3c 63 6f 64 65 3e 6c 69 73 e> is "<code>lis
0490: 74 3c 2f 63 6f 64 65 3e 2e 22 0a 0a 57 68 69 6c t</code>."..Whil
04a0: 65 20 74 68 65 20 6f 74 68 65 72 20 73 75 62 2d e the other sub-
04b0: 63 6f 6d 6d 61 6e 64 73 20 67 69 76 65 20 79 6f commands give yo
04c0: 75 20 61 20 77 61 79 20 74 6f 20 63 6f 6e 76 65 u a way to conve
04d0: 6e 69 65 6e 74 6c 79 20 74 61 6b 65 20 63 61 72 niently take car
04e0: 65 0a 6f 66 20 61 6c 6c 20 6f 66 20 79 6f 75 72 e.of all of your
04f0: 20 72 65 70 6f 73 69 74 6f 72 69 65 73 20 66 6f repositories fo
0500: 72 20 73 6f 6d 65 20 63 6f 6d 6d 6f 6e 20 74 61 r some common ta
0510: 73 6b 73 2c 20 74 68 65 0a 3c 63 6f 64 65 3e 6c sks, the.<code>l
0520: 69 73 74 3c 2f 63 6f 64 65 3e 20 70 72 6f 76 69 ist</code> provi
0530: 64 65 73 20 61 20 77 61 79 20 74 6f 20 74 61 6b des a way to tak
0540: 65 20 63 61 72 65 20 6f 66 20 61 6e 79 20 73 75 e care of any su
0550: 62 73 65 74 20 6f 66 20 79 6f 75 72 0a 72 65 70 bset of your.rep
0560: 6f 73 69 74 6f 72 69 65 73 20 69 6e 20 61 6e 79 ositories in any
0570: 20 77 61 79 20 79 6f 75 20 77 61 6e 74 2e 20 20 way you want.
0580: 49 74 20 70 72 6f 76 69 64 65 73 20 61 20 6c 69 It provides a li
0590: 73 74 20 6f 66 20 61 6c 6c 20 6f 66 20 79 6f 75 st of all of you
05a0: 72 0a 72 65 70 6f 73 69 74 6f 72 69 65 73 27 20 r.repositories'
05b0: 6c 6f 63 61 74 69 6f 6e 73 2e 20 20 3c 63 6f 64 locations. <cod
05c0: 65 3e 66 6f 73 73 69 6c 26 6e 62 73 70 3b 61 6c e>fossil al
05d0: 6c 26 6e 62 73 70 3b 6c 69 73 74 3c 2f 63 6f 64 l list</cod
05e0: 65 3e 0a 6f 75 74 70 75 74 73 20 61 20 6f 6e 65 e>.outputs a one
05f0: 2d 70 65 72 2d 6c 69 6e 65 20 6c 69 73 74 69 6e -per-line listin
0600: 67 20 6f 66 20 74 68 65 20 70 61 74 68 20 66 6f g of the path fo
0610: 72 20 65 61 63 68 20 6f 66 20 79 6f 75 72 0a 72 r each of your.r
0620: 65 70 6f 73 69 74 6f 72 69 65 73 2e 20 20 57 69 epositories. Wi
0630: 74 68 20 74 68 61 74 20 69 6e 20 68 61 6e 64 2c th that in hand,
0640: 20 79 6f 75 20 63 61 6e 20 65 61 73 69 6c 79 20 you can easily
0650: 73 63 72 69 70 74 20 6a 75 73 74 20 61 62 6f 75 script just abou
0660: 74 20 61 6e 79 0a 72 65 70 6f 73 69 74 6f 72 79 t any.repository
0670: 20 6d 61 6e 69 70 75 6c 61 74 69 6f 6e 73 20 79 manipulations y
0680: 6f 75 20 77 61 6e 74 2e 0a 0a 4f 72 2c 20 79 6f ou want...Or, yo
0690: 75 20 63 6f 75 6c 64 20 6a 75 73 74 20 6a 6f 67 u could just jog
06a0: 20 79 6f 75 72 20 6d 65 6d 6f 72 79 2e 0a 0a 54 your memory...T
06b0: 68 65 20 3c 63 6f 64 65 3e 61 6c 6c 3c 2f 63 6f he <code>all</co
06c0: 64 65 3e 20 63 6f 6d 6d 61 6e 64 20 75 73 65 73 de> command uses
06d0: 20 74 68 65 20 3c 69 3e 2e 66 6f 73 73 69 6c 3c the <i>.fossil<
06e0: 2f 69 3e 20 66 69 6c 65 20 69 6e 20 74 68 65 20 /i> file in the
06f0: 68 6f 6d 65 0a 64 69 72 65 63 74 6f 72 79 20 74 home.directory t
0700: 6f 20 66 69 6e 64 20 61 6c 6c 20 6f 66 20 79 6f o find all of yo
0710: 75 72 20 72 65 70 6f 73 69 74 6f 72 69 65 73 2c ur repositories,
0720: 20 73 6f 20 79 6f 75 20 63 61 6e 20 6d 65 73 73 so you can mess
0730: 20 69 74 20 75 70 20 62 79 0a 6d 6f 76 69 6e 67 it up by.moving
0740: 20 79 6f 75 72 20 72 65 70 6f 73 69 74 6f 72 69 your repositori
0750: 65 73 20 61 72 6f 75 6e 64 2e 20 20 54 68 69 73 es around. This
0760: 20 69 73 20 65 61 73 79 20 74 6f 20 64 6f 20 69 is easy to do i
0770: 6e 61 64 76 65 72 74 65 6e 74 6c 79 20 69 66 0a nadvertently if.
0780: 79 6f 75 20 68 61 76 65 20 61 20 63 61 76 61 6c you have a caval
0790: 69 65 72 20 61 74 74 69 74 75 64 65 20 61 62 6f ier attitude abo
07a0: 75 74 20 72 65 70 6f 73 2c 20 62 75 74 20 79 6f ut repos, but yo
07b0: 75 27 6c 6c 20 6b 6e 6f 77 20 70 72 65 74 74 79 u'll know pretty
07c0: 0a 71 75 69 63 6b 6c 79 20 74 68 61 74 20 79 6f .quickly that yo
07d0: 75 27 76 65 20 64 6f 6e 65 20 69 74 26 23 38 32 u've done itR
07e0: 31 32 3b 6d 61 6e 79 20 63 6f 6d 6d 61 6e 64 73 12;many commands
07f0: 20 79 6f 75 20 74 72 79 20 74 6f 20 75 73 65 20 you try to use
0800: 66 72 6f 6d 0a 69 6e 73 69 64 65 20 6f 66 20 61 from.inside of a
0810: 20 63 68 65 63 6b 6f 75 74 20 77 6f 6e 27 74 20 checkout won't
0820: 77 6f 72 6b 20 63 6f 72 72 65 63 74 6c 79 2e 20 work correctly.
0830: 20 54 68 65 20 3c 69 3e 2e 66 6f 73 73 69 6c 3c The <i>.fossil<
0840: 2f 69 3e 20 66 69 6c 65 20 69 73 0a 61 6e 20 3c /i> file is.an <
0850: 62 3e 73 71 6c 69 74 65 3c 2f 62 3e 20 64 62 20 b>sqlite</b> db
0860: 66 69 6c 65 20 77 68 69 63 68 20 66 6f 73 73 69 file which fossi
0870: 6c 20 75 73 65 73 20 74 6f 20 6b 65 65 70 69 6e l uses to keepin
0880: 67 20 74 72 61 63 6b 20 6f 66 0a 72 65 70 6f 73 g track of.repos
0890: 69 74 6f 72 79 20 6c 6f 63 61 74 69 6f 6e 73 2e itory locations.
08a0: 20 41 64 76 69 63 65 3a 20 69 66 20 79 6f 75 20 Advice: if you
08b0: 6d 6f 76 65 20 79 6f 75 72 20 72 65 70 6f 73 69 move your reposi
08c0: 74 6f 72 69 65 73 20 61 72 6f 75 6e 64 2c 0a 6c tories around,.l
08d0: 65 74 20 66 6f 73 73 69 6c 20 6b 6e 6f 77 20 79 et fossil know y
08e0: 6f 75 20 64 69 64 3b 0a 5b 2e 2f 63 6d 64 5f 63 ou did;.[./cmd_c
08f0: 6c 6f 73 65 2e 77 69 6b 69 20 7c 20 3c 63 6f 64 lose.wiki | <cod
0900: 65 3e 63 6c 6f 73 65 3c 2f 63 6f 64 65 3e 5d 20 e>close</code>]
0910: 74 68 65 6d 20 62 65 66 6f 72 65 20 79 6f 75 20 them before you
0920: 6d 6f 76 65 0a 74 68 65 6d 2c 20 61 6e 64 20 74 move.them, and t
0930: 68 65 6e 20 5b 2e 2f 63 6d 64 5f 6f 70 65 6e 2e hen [./cmd_open.
0940: 77 69 6b 69 20 7c 20 3c 63 6f 64 65 3e 6f 70 65 wiki | <code>ope
0950: 6e 3c 2f 63 6f 64 65 3e 5d 20 74 68 65 6d 20 66 n</code>] them f
0960: 72 6f 6d 0a 74 68 65 69 72 20 6e 65 77 20 6c 6f rom.their new lo
0970: 63 61 74 69 6f 6e 73 2e 0a 0a 53 65 65 20 61 6c cations...See al
0980: 73 6f 3a 20 5b 2e 2f 63 6d 64 5f 70 75 6c 6c 2e so: [./cmd_pull.
0990: 77 69 6b 69 20 7c 20 66 6f 73 73 69 6c 20 70 75 wiki | fossil pu
09a0: 6c 6c 5d 2c 0a 5b 2e 2f 63 6d 64 5f 70 75 73 68 ll],.[./cmd_push
09b0: 2e 77 69 6b 69 20 7c 20 66 6f 73 73 69 6c 20 70 .wiki | fossil p
09c0: 75 73 68 5d 2c 0a 5b 2e 2f 63 6d 64 5f 72 65 62 ush],.[./cmd_reb
09d0: 75 69 6c 64 2e 77 69 6b 69 20 7c 20 66 6f 73 73 uild.wiki | foss
09e0: 69 6c 20 72 65 62 75 69 6c 64 5d 2c 0a 5b 2e 2f il rebuild],.[./
09f0: 63 6d 64 5f 73 79 6e 63 2e 77 69 6b 69 20 7c 20 cmd_sync.wiki |
0a00: 66 6f 73 73 69 6c 20 73 79 6e 63 5d 2c 0a 5b 2e fossil sync],.[.
0a10: 2f 63 6d 64 5f 6f 70 65 6e 2e 77 69 6b 69 20 7c /cmd_open.wiki |
0a20: 20 66 6f 73 73 69 6c 20 6f 70 65 6e 5d 2c 0a 5b fossil open],.[
0a30: 2e 2f 63 6d 64 5f 63 6c 6f 73 65 2e 77 69 6b 69 ./cmd_close.wiki
0a40: 20 7c 20 66 6f 73 73 69 6c 20 63 6c 6f 73 65 5d | fossil close]
0a50: 2c 0a 5b 2e 2f 72 65 66 65 72 65 6e 63 65 2e 77 ,.[./reference.w
0a60: 69 6b 69 20 7c 20 52 65 66 65 72 65 6e 63 65 5d iki | Reference]
0a70: 2c 0a 5b 68 74 74 70 3a 2f 2f 77 77 77 2e 73 71 ,.[http://www.sq
0a80: 6c 69 74 65 2e 6f 72 67 20 7c 20 3c 62 3e 53 51 lite.org | <b>SQ
0a90: 4c 69 74 65 3c 2f 62 3e 5d 0a Lite</b>].