Hex Artifact Content
Not logged in

Artifact 4abbbbdcddcdb207f30f8ccc074e36d1029561d6:

Wiki page [Import CVS Repositories] by anonymous on 2007-12-04 20:37:31.

0000: 44 20 32 30 30 37 2d 31 32 2d 30 34 54 32 30 3a  D 2007-12-04T20:
0010: 33 37 3a 33 31 0a 4c 20 49 6d 70 6f 72 74 5c 73  37:31.L Import\s
0020: 43 56 53 5c 73 52 65 70 6f 73 69 74 6f 72 69 65  CVS\sRepositorie
0030: 73 0a 50 20 65 35 62 33 34 34 66 36 62 32 36 64  s.P e5b344f6b26d
0040: 66 66 61 61 61 61 61 30 63 34 39 39 31 62 33 39  ffaaaaa0c4991b39
0050: 64 38 34 65 36 33 37 32 62 31 65 39 0a 55 20 61  d84e6372b1e9.U a
0060: 6e 6f 6e 79 6d 6f 75 73 0a 57 20 34 30 30 33 0a  nonymous.W 4003.
0070: 53 70 69 72 69 74 75 61 6c 20 61 6e 63 65 73 74  Spiritual ancest
0080: 6f 72 3a 20 5b 68 74 74 70 3a 2f 2f 63 76 73 32  or: [http://cvs2
0090: 73 76 6e 2e 74 69 67 72 69 73 2e 6f 72 67 2f 7c  svn.tigris.org/|
00a0: 63 76 73 32 73 76 6e 5d 2e 0d 0a 0d 0a 53 69 6d  cvs2svn].....Sim
00b0: 69 6c 61 72 69 74 69 65 73 3a 0d 0a 20 20 2a 20  ilarities:..  * 
00c0: 20 55 73 69 6e 67 20 69 64 65 6e 74 69 63 61 6c   Using identical
00d0: 20 68 69 67 68 6c 65 76 65 6c 20 61 72 63 68 69   highlevel archi
00e0: 74 65 63 74 75 72 65 20 28 70 61 73 73 2d 62 61  tecture (pass-ba
00f0: 73 65 64 29 0d 0a 20 20 2a 20 20 55 73 69 6e 67  sed)..  *  Using
0100: 20 73 6f 6d 65 20 73 70 65 63 69 66 69 63 20 61   some specific a
0110: 6c 67 6f 72 69 74 68 6d 73 20 28 67 72 61 70 68  lgorithms (graph
0120: 20 74 72 61 76 65 72 73 61 6c 29 2e 0d 0a 0d 0a   traversal).....
0130: 44 69 66 66 65 72 65 6e 63 65 73 3a 0d 0a 20 20  Differences:..  
0140: 2a 20 20 4e 6f 74 20 75 73 69 6e 67 20 61 6e 79  *  Not using any
0150: 20 63 6f 64 65 20 28 44 69 66 66 65 72 65 6e 74   code (Different
0160: 20 6c 61 6e 67 75 61 67 65 73 20 66 6f 72 20 6f   languages for o
0170: 6e 65 20 74 68 69 6e 67 2c 20 5b 68 74 74 70 3a  ne thing, [http:
0180: 2f 2f 77 77 77 2e 70 79 74 68 6f 6e 2e 6f 72 67  //www.python.org
0190: 2f 7c 50 79 74 68 6f 6e 5d 20 74 68 65 72 65 2c  /|Python] there,
01a0: 20 5b 68 74 74 70 3a 2f 2f 77 77 77 2e 74 63 6c   [http://www.tcl
01b0: 2e 74 6b 2f 7c 54 63 6c 5d 68 65 72 65 2e 29 2e  .tk/|Tcl]here.).
01c0: 0d 0a 20 20 2a 20 20 50 65 72 73 69 73 74 65 6e  ..  *  Persisten
01d0: 74 20 73 74 61 74 65 20 63 6f 6d 70 6c 65 74 65  t state complete
01e0: 6c 79 20 64 69 66 66 65 72 65 6e 74 2c 20 75 73  ly different, us
01f0: 69 6e 67 20 5b 68 74 74 70 3a 2f 2f 77 77 77 2e  ing [http://www.
0200: 73 71 6c 69 74 65 2e 6f 72 67 2f 7c 73 71 6c 69  sqlite.org/|sqli
0210: 74 65 5d 20 64 61 74 61 62 61 73 65 20 66 6f 72  te] database for
0220: 20 61 6c 6c 20 74 68 69 6e 67 73 2e 0d 0a 0d 0a   all things.....
0230: 53 74 61 74 75 73 3a 0d 0a 20 20 2a 20 20 50 61  Status:..  *  Pa
0240: 73 73 20 43 6f 6c 6c 41 72 3a 20 43 6f 6c 6c 65  ss CollAr: Colle
0250: 63 74 20 61 72 63 68 69 76 65 73 20 2d 20 6f 6b  ct archives - ok
0260: 2e 0d 0a 20 20 2a 20 20 50 61 73 73 20 43 6f 6c  ...  *  Pass Col
0270: 6c 52 65 76 3a 20 43 6f 6c 6c 65 63 74 20 72 65  lRev: Collect re
0280: 76 69 73 69 6f 6e 73 2c 20 74 61 67 73 2c 20 62  visions, tags, b
0290: 72 61 6e 63 68 65 73 20 28 66 69 6c 65 20 6c 65  ranches (file le
02a0: 76 65 6c 29 20 2d 20 6f 6b 2e 0d 0a 20 20 2a 20  vel) - ok...  * 
02b0: 20 50 61 73 73 20 43 6f 6c 6c 53 79 6d 3a 20 43   Pass CollSym: C
02c0: 6f 6c 6c 61 74 65 20 73 79 6d 62 6f 6c 20 28 70  ollate symbol (p
02d0: 72 6f 6a 65 63 74 20 6c 65 76 65 6c 29 20 66 72  roject level) fr
02e0: 6f 6d 20 74 68 65 20 66 69 6c 65 20 6c 65 76 65  om the file leve
02f0: 6c 20 64 61 74 61 20 2d 20 6f 6b 2e 0d 0a 20 20  l data - ok...  
0300: 2a 20 20 50 61 73 73 20 46 69 6c 74 65 72 53 79  *  Pass FilterSy
0310: 6d 3a 20 46 69 6c 74 65 72 20 73 79 6d 62 6f 6c  m: Filter symbol
0320: 73 2c 20 65 78 63 6c 75 64 65 20 73 79 6d 62 6f  s, exclude symbo
0330: 6c 73 20 61 6e 64 20 6c 69 6e 65 73 20 6f 66 20  ls and lines of 
0340: 64 65 76 65 6c 6f 70 6d 65 6e 74 20 2d 20 6f 6b  development - ok
0350: 2e 0d 0a 20 20 2a 20 20 50 61 73 73 20 49 6e 69  ...  *  Pass Ini
0360: 74 43 73 65 74 73 3a 20 43 72 65 61 74 65 20 69  tCsets: Create i
0370: 6e 69 74 69 61 6c 20 63 68 61 6e 67 65 73 65 74  nitial changeset
0380: 73 20 2d 20 6f 6b 2e 20 3c 62 3e 4d 65 6d 6f 72  s - ok. <b>Memor
0390: 79 20 48 6f 67 2c 20 53 6c 6f 77 20 63 6f 6d 6d  y Hog, Slow comm
03a0: 69 74 3c 2f 62 3e 0d 0a 20 20 2a 20 20 50 61 73  it</b>..  *  Pas
03b0: 73 20 43 73 65 74 44 65 70 73 3a 20 43 6f 6d 70  s CsetDeps: Comp
03c0: 75 74 65 20 63 68 61 6e 67 65 73 65 74 20 64 65  ute changeset de
03d0: 70 65 6e 64 65 6e 63 69 65 73 20 66 72 6f 6d 20  pendencies from 
03e0: 72 65 76 69 73 69 6f 6e 20 64 65 70 65 6e 64 65  revision depende
03f0: 6e 63 69 65 73 20 2d 20 6f 6b 2e 0d 0a 20 20 2a  ncies - ok...  *
0400: 20 20 50 61 73 73 20 42 72 65 61 6b 52 43 79 63    Pass BreakRCyc
0410: 6c 65 3a 20 42 72 65 61 6b 20 63 79 63 6c 65 73  le: Break cycles
0420: 20 61 6d 6f 6e 67 20 72 65 76 69 73 69 6f 6e 20   among revision 
0430: 63 68 61 6e 67 65 73 65 74 73 20 2d 20 6f 6b 2e  changesets - ok.
0440: 0d 0a 20 20 2a 20 20 50 61 73 73 20 52 65 76 54  ..  *  Pass RevT
0450: 6f 70 53 6f 72 74 3a 20 20 54 6f 70 6f 6c 6f 67  opSort:  Topolog
0460: 69 63 61 6c 6c 79 20 73 6f 72 74 20 72 65 76 69  ically sort revi
0470: 73 69 6f 6e 20 63 68 61 6e 67 65 73 65 74 73 20  sion changesets 
0480: 2d 20 6f 6b 2e 0d 0a 20 20 2a 20 20 50 61 73 73  - ok...  *  Pass
0490: 20 42 72 65 61 6b 53 43 79 63 6c 65 3a 20 42 72   BreakSCycle: Br
04a0: 65 61 6b 20 63 79 63 6c 65 73 20 61 6d 6f 6e 67  eak cycles among
04b0: 20 73 79 6d 62 6f 6c 20 63 68 61 6e 67 65 73 65   symbol changese
04c0: 74 73 20 2d 20 6f 6b 2e 0d 0a 20 20 2a 20 20 50  ts - ok...  *  P
04d0: 61 73 73 20 42 72 65 61 6b 41 43 79 63 6c 65 3a  ass BreakACycle:
04e0: 20 42 72 65 61 6b 20 63 79 63 6c 65 73 20 6f 76   Break cycles ov
04f0: 65 72 20 61 6c 6c 20 63 68 61 6e 67 65 73 65 74  er all changeset
0500: 73 20 2d 20 3c 62 3e 4d 61 79 20 73 74 69 6c 6c  s - <b>May still
0510: 20 63 68 61 6e 67 65 20 74 68 65 20 6f 72 64 65   change the orde
0520: 72 20 6f 66 20 72 65 76 69 73 69 6f 6e 20 63 68  r of revision ch
0530: 61 6e 67 65 73 65 74 73 20 6f 76 65 72 20 74 68  angesets over th
0540: 65 20 72 65 73 75 6c 74 20 6f 66 20 70 61 73 73  e result of pass
0550: 20 37 2e 3c 2f 62 3e 0d 0a 20 20 2a 20 20 50 61   7.</b>..  *  Pa
0560: 73 73 20 41 54 6f 70 53 6f 72 74 3a 20 53 68 6f  ss ATopSort: Sho
0570: 75 6c 64 20 62 65 20 6f 6b 2e 0d 0a 0d 0a 50 61  uld be ok.....Pa
0580: 73 73 65 73 20 74 6f 20 64 6f 3a 0d 0a 20 20 2a  sses to do:..  *
0590: 20 20 50 75 74 20 63 68 61 6e 67 65 73 65 74 20    Put changeset 
05a0: 6f 72 64 65 72 20 66 72 6f 6d 20 74 68 65 20 74  order from the t
05b0: 6f 70 2e 73 6f 72 74 20 70 61 73 73 65 73 20 61  op.sort passes a
05c0: 6e 64 20 74 72 65 65 20 6f 66 20 73 79 6d 62 6f  nd tree of symbo
05d0: 6c 73 20 66 72 6f 6d 20 74 68 65 20 63 6f 6c 6c  ls from the coll
05e0: 7c 46 69 6c 74 65 72 53 79 6d 20 70 61 73 73 65  |FilterSym passe
05f0: 73 20 74 6f 67 65 74 68 65 72 20 69 6e 74 6f 20  s together into 
0600: 61 20 74 72 65 65 20 6f 66 20 63 68 61 6e 67 65  a tree of change
0610: 73 65 74 73 2e 20 4e 6f 74 65 20 74 68 61 74 20  sets. Note that 
0620: 69 74 20 6d 69 67 68 74 20 6e 6f 74 20 62 65 20  it might not be 
0630: 61 20 74 72 65 65 20 69 66 20 74 68 65 72 65 20  a tree if there 
0640: 69 73 20 61 6e 20 4e 54 44 42 20 61 72 6f 75 6e  is an NTDB aroun
0650: 64 2e 0d 0a 20 20 2a 20 20 50 65 72 66 6f 72 6d  d...  *  Perform
0660: 20 74 68 65 20 61 63 74 75 61 6c 20 69 6d 70 6f   the actual impo
0670: 72 74 2e 0d 0a 0d 0a 4e 6f 74 65 73 20 72 65 67  rt.....Notes reg
0680: 61 72 64 69 6e 67 20 74 68 65 20 61 63 74 75 61  arding the actua
0690: 6c 20 69 6d 70 6f 72 74 3a 0d 0a 3c 75 6c 3e 0d  l import:..<ul>.
06a0: 0a 3c 6c 69 3e 63 76 73 32 73 76 6e 20 69 73 20  .<li>cvs2svn is 
06b0: 65 69 74 68 65 72 20 73 6c 6f 77 2c 20 6f 72 20  either slow, or 
06c0: 68 75 6e 67 72 79 20 66 6f 72 20 64 69 73 6b 73  hungry for disks
06d0: 70 61 63 65 2e 20 54 68 65 20 72 65 61 73 6f 6e  pace. The reason
06e0: 3a 20 49 74 20 69 73 20 69 6d 70 6f 72 74 69 6e  : It is importin
06f0: 67 20 63 68 61 6e 67 65 73 65 74 20 62 79 20 63  g changeset by c
0700: 68 61 6e 67 65 73 65 74 20 61 6e 64 20 73 6f 20  hangeset and so 
0710: 68 61 73 20 74 6f 20 65 69 74 68 65 72 20 72 65  has to either re
0720: 67 65 6e 65 72 61 74 65 20 74 68 65 20 6e 65 65  generate the nee
0730: 64 65 64 20 72 65 76 69 73 69 6f 6e 73 20 6f 66  ded revisions of
0740: 20 74 68 65 20 66 69 6c 65 73 20 6f 6e 2d 64 65   the files on-de
0750: 6d 61 6e 64 20 6f 76 65 72 20 61 6e 64 20 6f 76  mand over and ov
0760: 65 72 2c 20 6f 72 20 69 74 20 63 61 63 68 65 73  er, or it caches
0770: 20 74 68 65 20 6e 65 65 64 65 64 20 72 65 76 69   the needed revi
0780: 73 69 6f 6e 73 20 77 68 65 6e 20 63 72 65 61 74  sions when creat
0790: 65 64 20 75 6e 74 69 6c 20 74 68 65 20 6c 61 73  ed until the las
07a0: 74 20 75 73 65 72 20 69 73 20 67 6f 6e 65 2e 0d  t user is gone..
07b0: 0a 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 57 65 20 63  .</li>..<li>We c
07c0: 61 6e 20 64 6f 20 62 65 74 74 65 72 2c 20 69 66  an do better, if
07d0: 20 77 65 20 67 65 74 20 68 65 6c 70 20 66 72 6f   we get help fro
07e0: 6d 20 66 6f 73 73 69 6c 2e 20 57 65 20 77 6f 75  m fossil. We wou
07f0: 6c 64 20 6e 65 65 64 20 63 6f 6d 6d 61 6e 64 73  ld need commands
0800: 20 74 6f 20 70 65 72 66 6f 72 6d 20 74 68 65 20   to perform the 
0810: 66 6f 6c 6c 6f 77 69 6e 67 20 61 63 74 69 6f 6e  following action
0820: 73 3a 0d 0a 3c 75 6c 3e 0d 0a 3c 6c 69 3e 20 49  s:..<ul>..<li> I
0830: 6d 70 6f 72 74 20 61 20 66 69 6c 65 20 61 73 20  mport a file as 
0840: 62 6c 6f 62 2c 20 72 65 74 75 72 6e 20 69 74 73  blob, return its
0850: 20 69 6e 74 65 72 6e 61 6c 20 69 64 2e 0d 0a 3c   internal id...<
0860: 2f 6c 69 3e 0d 0a 3c 6c 69 3e 20 44 65 6c 74 69  /li>..<li> Delti
0870: 66 79 20 61 20 6b 6e 6f 77 6e 20 66 69 6c 65 20  fy a known file 
0880: 72 65 73 70 65 63 74 69 76 65 20 74 6f 20 61 20  respective to a 
0890: 73 65 63 6f 6e 64 20 6b 6e 6f 77 6e 20 66 69 6c  second known fil
08a0: 65 2e 0d 0a 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 20  e...</li>..<li> 
08b0: 47 65 6e 65 72 61 74 65 20 61 20 6d 61 6e 69 66  Generate a manif
08c0: 65 73 74 20 66 69 6c 65 20 66 6f 72 20 61 20 6c  est file for a l
08d0: 69 73 74 20 6f 66 20 66 69 6c 65 73 20 28 70 61  ist of files (pa
08e0: 74 68 73 2c 20 69 64 73 29 2c 20 70 61 72 65 6e  ths, ids), paren
08f0: 74 20 6d 61 6e 69 66 65 73 74 20 72 65 66 65 72  t manifest refer
0900: 65 6e 63 65 73 2c 20 75 73 65 72 2c 20 74 69 6d  ences, user, tim
0910: 65 73 74 61 6d 70 2c 20 6c 6f 67 20 6d 65 73 73  estamp, log mess
0920: 61 67 65 2e 20 43 6f 75 6c 64 20 62 65 20 73 69  age. Could be si
0930: 67 6e 65 64 20 6f 72 20 6e 6f 74 2e 0d 0a 3c 2f  gned or not...</
0940: 6c 69 3e 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 62 72 3e  li>..</ul>..<br>
0950: 0d 0a 57 69 74 68 20 74 68 65 73 65 20 61 63 74  ..With these act
0960: 69 6f 6e 73 20 28 70 6f 73 73 69 62 6c 65 20 69  ions (possible i
0970: 6e 20 63 6f 6d 62 69 6e 61 74 69 6f 6e 29 20 77  n combination) w
0980: 65 20 63 61 6e 20 69 6d 70 6f 72 74 20 74 68 65  e can import the
0990: 20 61 72 63 68 69 76 65 20 66 69 6c 65 73 20 66   archive files f
09a0: 69 72 73 74 2c 20 6e 65 65 64 69 6e 67 20 6f 6e  irst, needing on
09b0: 6c 79 20 73 70 61 63 65 20 66 6f 72 20 74 68 65  ly space for the
09c0: 20 72 65 76 69 73 69 6f 6e 73 20 6f 66 20 61 20   revisions of a 
09d0: 73 69 6e 67 6c 65 20 66 69 6c 65 20 28 62 6f 75  single file (bou
09e0: 6e 64 65 64 20 62 79 20 74 68 65 20 6c 61 72 67  nded by the larg
09f0: 65 73 74 20 66 69 6c 65 20 69 6e 20 74 65 72 6d  est file in term
0a00: 73 20 6f 66 20 73 69 7a 65 20 61 6e 64 20 68 69  s of size and hi
0a10: 73 74 6f 72 79 29 2c 20 77 69 74 68 20 74 68 65  story), with the
0a20: 69 72 20 64 65 6c 74 61 2d 6c 69 6e 6b 73 20 6d  ir delta-links m
0a30: 69 72 72 6f 72 69 6e 67 20 74 68 65 20 52 43 53  irroring the RCS
0a40: 20 73 74 72 75 63 74 75 72 65 2e 20 41 66 74 65   structure. Afte
0a50: 72 20 74 68 61 74 20 77 65 20 63 61 6e 20 69 6e  r that we can in
0a60: 64 65 70 65 6e 64 65 6e 74 6c 79 20 67 65 6e 65  dependently gene
0a70: 72 61 74 65 2c 20 69 6d 70 6f 72 74 2c 20 61 6e  rate, import, an
0a80: 64 20 64 65 6c 74 69 66 79 20 74 68 65 20 6d 61  d deltify the ma
0a90: 6e 69 66 65 73 74 73 20 66 6f 72 20 63 68 61 6e  nifests for chan
0aa0: 67 65 73 65 74 73 2e 20 74 6f 20 66 69 6e 61 6c  gesets. to final
0ab0: 69 7a 65 20 77 65 20 73 69 6d 70 6c 79 20 27 72  ize we simply 'r
0ac0: 65 62 75 69 6c 64 27 20 74 68 65 20 72 65 70 6f  ebuild' the repo
0ad0: 73 69 74 6f 72 79 2e 20 54 68 69 73 20 73 68 6f  sitory. This sho
0ae0: 75 6c 64 20 62 65 20 66 61 73 74 20 77 69 74 68  uld be fast with
0af0: 6f 75 74 20 6e 65 65 64 69 6e 67 20 6d 75 63 68  out needing much
0b00: 20 74 65 6d 70 6f 72 61 72 79 20 64 69 73 6b 20   temporary disk 
0b10: 73 70 61 63 65 20 65 69 74 68 65 72 2e 0d 0a 3c  space either...<
0b20: 62 72 3e 0d 0a 43 75 72 72 65 6e 74 6c 79 20 49  br>..Currently I
0b30: 20 61 6d 20 74 68 69 6e 6b 69 6e 67 20 61 62 6f   am thinking abo
0b40: 75 74 20 77 61 6e 74 69 6e 67 20 61 20 63 6f 6d  ut wanting a com
0b50: 6d 61 6e 64 0d 0a 3c 70 72 65 3e 0d 0a 66 6f 73  mand..<pre>..fos
0b60: 73 69 6c 20 69 6d 70 6f 72 74 2d 66 69 6c 65 73  sil import-files
0b70: 20 53 50 45 43 46 49 4c 45 0d 0a 3c 2f 70 72 65   SPECFILE..</pre
0b80: 3e 0d 0a 77 68 69 63 68 20 69 6d 70 6f 72 74 73  >..which imports
0b90: 20 61 6e 64 20 64 65 6c 74 69 66 69 65 73 20 66   and deltifies f
0ba0: 69 6c 65 73 20 61 73 20 62 6c 6f 62 20 70 65 72  iles as blob per
0bb0: 20 74 68 65 20 53 50 45 43 46 49 4c 45 2c 20 72   the SPECFILE, r
0bc0: 65 74 75 72 6e 69 6e 67 20 6f 6e 20 73 74 64 6f  eturning on stdo
0bd0: 75 74 20 74 68 65 20 61 73 73 6f 63 69 61 74 65  ut the associate
0be0: 64 20 6f 66 20 70 61 74 68 73 20 61 6e 64 20 69  d of paths and i
0bf0: 6e 74 65 72 6e 61 6c 20 69 64 73 2e 20 45 78 61  nternal ids. Exa
0c00: 6d 70 6c 65 20 53 50 45 43 46 49 4c 45 3a 0d 0a  mple SPECFILE:..
0c10: 3c 70 72 65 3e 0d 0a 46 20 70 61 74 68 31 0d 0a  <pre>..F path1..
0c20: 44 20 70 61 74 68 32 20 70 61 74 68 31 0d 0a 2e  D path2 path1...
0c30: 2e 2e 0d 0a 3c 2f 70 72 65 3e 0d 0a 54 68 65 20  ....</pre>..The 
0c40: 27 46 27 20 63 61 72 64 20 74 65 6c 6c 73 20 69  'F' card tells i
0c50: 74 20 74 6f 20 69 6d 70 6f 72 74 20 27 70 61 74  t to import 'pat
0c60: 68 31 27 20 61 73 20 69 73 2e 20 54 68 65 20 27  h1' as is. The '
0c70: 44 27 20 63 61 72 64 20 74 68 65 6e 20 74 65 6c  D' card then tel
0c80: 6c 73 20 69 74 20 74 6f 20 69 6d 70 6f 72 74 20  ls it to import 
0c90: 27 70 61 74 68 32 27 20 61 73 20 69 73 20 61 6e  'path2' as is an
0ca0: 64 20 74 68 65 6e 20 64 65 6c 74 69 66 79 20 27  d then deltify '
0cb0: 70 61 74 68 31 27 20 69 6e 20 74 65 72 6d 73 20  path1' in terms 
0cc0: 6f 66 20 27 70 61 74 68 32 27 2e 20 41 6e 64 20  of 'path2'. And 
0cd0: 73 6f 20 6f 6e 2e 0d 0a 3c 62 72 3e 0d 0a 54 6f  so on...<br>..To
0ce0: 20 69 6d 70 6f 72 74 20 61 6e 20 52 43 53 20 61   import an RCS a
0cf0: 72 63 68 69 76 65 20 77 65 20 6e 6f 77 20 6a 75  rchive we now ju
0d00: 73 74 20 68 61 76 65 20 74 6f 20 67 65 6e 65 72  st have to gener
0d10: 61 74 65 20 74 68 65 20 66 75 6c 6c 20 72 65 76  ate the full rev
0d20: 69 73 69 6f 6e 73 20 69 6e 20 73 6f 6d 65 20 74  isions in some t
0d30: 65 6d 70 64 69 72 2c 20 74 68 65 6e 20 63 72 65  empdir, then cre
0d40: 61 74 65 20 61 20 53 50 45 43 20 73 68 6f 77 69  ate a SPEC showi
0d50: 6e 67 20 74 68 65 20 64 65 6c 74 61 2d 6c 69 6e  ng the delta-lin
0d60: 6b 73 20 61 6e 64 20 6c 65 74 20 66 6f 73 73 69  ks and let fossi
0d70: 6c 20 68 61 76 65 20 74 68 69 73 2e 20 54 68 65  l have this. The
0d80: 20 72 65 73 75 6c 74 69 6e 67 20 69 64 73 20 74   resulting ids t
0d90: 68 65 6e 20 67 6f 20 69 6e 74 6f 20 74 68 65 20  hen go into the 
0da0: 69 6d 70 6f 72 74 65 72 20 73 74 61 74 65 20 66  importer state f
0db0: 6f 72 20 77 68 65 6e 20 77 65 20 67 65 6e 65 72  or when we gener
0dc0: 61 74 65 20 74 68 65 20 6d 61 6e 69 66 65 73 74  ate the manifest
0dd0: 73 2e 0d 0a 3c 62 72 3e 0d 0a 54 6f 20 69 6d 70  s...<br>..To imp
0de0: 6f 72 74 20 6d 61 6e 69 66 65 73 74 73 20 77 65  ort manifests we
0df0: 20 6e 65 65 64 20 73 65 63 6f 6e 64 20 63 6f 6d   need second com
0e00: 6d 61 6e 64 2c 20 77 68 69 63 68 20 67 65 6e 65  mand, which gene
0e10: 72 61 74 65 73 20 69 74 20 66 72 6f 6d 20 63 68  rates it from ch
0e20: 61 6e 67 65 73 65 74 20 64 61 74 61 2c 20 61 6e  angeset data, an
0e30: 64 20 69 6d 70 6f 72 74 73 20 69 74 20 74 6f 6f  d imports it too
0e40: 2e 0d 0a 3c 70 72 65 3e 0d 0a 66 6f 73 73 69 6c  ...<pre>..fossil
0e50: 20 69 6d 70 6f 72 74 2d 6d 61 6e 69 66 65 73 74   import-manifest
0e60: 20 75 73 65 72 20 74 69 6d 65 73 74 61 6d 70 20   user timestamp 
0e70: 4d 45 53 53 41 47 45 46 49 4c 45 20 46 49 4c 45  MESSAGEFILE FILE
0e80: 46 49 4c 45 20 70 61 72 65 6e 74 2e 2e 2e 0d 0a  FILE parent.....
0e90: 3c 2f 70 72 65 3e 0d 0a 54 68 65 20 27 6d 65 73  </pre>..The 'mes
0ea0: 73 61 67 65 66 69 6c 65 27 20 63 6f 6e 74 61 69  sagefile' contai
0eb0: 6e 73 20 74 68 65 20 6c 6f 67 20 6d 65 73 73 61  ns the log messa
0ec0: 67 65 2c 20 74 68 65 20 27 66 69 6c 65 66 69 6c  ge, the 'filefil
0ed0: 65 27 20 6c 69 73 74 73 20 74 68 65 20 72 65 76  e' lists the rev
0ee0: 69 73 69 6f 6e 73 20 69 6e 20 74 68 65 20 6d 61  isions in the ma
0ef0: 6e 69 66 65 73 74 20 62 79 20 69 64 2c 20 61 6e  nifest by id, an
0f00: 64 20 77 69 74 68 20 70 61 74 68 20 69 6e 20 74  d with path in t
0f10: 68 65 20 77 6f 72 6b 73 70 61 63 65 2e 20 54 68  he workspace. Th
0f20: 65 20 70 61 72 65 6e 74 73 20 61 72 65 20 74 68  e parents are th
0f30: 65 20 69 64 73 20 6f 66 20 74 68 65 20 70 61 72  e ids of the par
0f40: 65 6e 74 20 6d 61 6e 69 66 65 73 74 73 2e 20 54  ent manifests. T
0f50: 68 65 20 72 65 73 75 6c 74 20 6f 66 20 74 68 65  he result of the
0f60: 20 63 6f 6d 6d 61 6e 64 20 69 73 20 74 68 65 20   command is the 
0f70: 69 64 20 6f 66 20 74 68 65 20 6e 65 77 20 6d 61  id of the new ma
0f80: 6e 69 66 65 73 74 2e 0d 0a 3c 62 72 3e 0d 0a 4e  nifest...<br>..N
0f90: 6f 74 65 3a 20 57 65 20 68 61 76 65 20 61 6c 72  ote: We have alr
0fa0: 65 61 64 79 20 63 6f 6d 6d 61 6e 64 73 20 66 6f  eady commands fo
0fb0: 72 20 74 68 65 20 70 75 74 20 61 6e 64 20 64 65  r the put and de
0fc0: 6c 74 69 66 79 20 6f 70 65 72 61 74 69 6f 6e 73  ltify operations
0fd0: 2c 20 61 6c 62 65 69 74 20 75 6e 64 6f 63 75 6d  , albeit undocum
0fe0: 65 6e 74 65 64 2c 20 69 6e 20 74 68 65 20 73 65  ented, in the se
0ff0: 74 20 6f 66 20 74 65 73 74 20 63 6f 6d 6d 61 6e  t of test comman
1000: 64 73 2e 0d 0a 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c  ds...</li>..</ul
1010: 3e 0d 0a 0a 5a 20 33 33 62 63 34 61 62 37 61 36  >...Z 33bc4ab7a6
1020: 37 39 39 66 33 30 65 33 34 35 64 63 30 39 39 66  799f30e345dc099f
1030: 32 66 65 39 65 32 0a                             2fe9e2.